i have several tiddler’s with “icon” “color” “url” fields.
now, i am going to make a list of them. the only problem is the icon color showed in the list alway grap the last list icon’s color even i have different color on each icons.
<$list filter="[tag[work_bookmarks]]">
<$transclude $tiddler="icon-template" >
<$fill $name="color">
{{!!color}}
</$fill>
</$transclude>
<$link />
<$transclude tiddler="url_template" />
<br>
</$list>
“icon-template” is show below:
<style>
.my-icon svg {
width: auto;
height: 1em;
fill: <$slot $name="color"/>;
}
</style>
<span class="my-icon" ><$transclude $tiddler={{!!icon}}/></span>
“url_template” is like this below:
<a href={{!!url}}> {{!!title}} </a>