I'm migrating from semantic-ui and found a difference that works in an unexpected way to me. When using nested lists where an item is a link, that is a a tag, icons are not colored. When using a div they are colored. When applying to the first level (not nested), it works with both div and a.
I fixed it for me now by adding one more .icon selector to the icon to make it more specific (see workaround below).
There is a jsfiddle showing the issue.
a for items and add colored icons to itThe icons should be rendered in their defined color.
The icons are rendered in grey.
https://jsfiddle.net/medc42zu/1/

2.8.7 (using the LESS package)
I added this to site/elements/icon.overrides (the same as default, added one more .icon):
each(@colors, {
@color: replace(@key, '@', '');
@c: @colors[@@color][color];
@l: @colors[@@color][light];
i.@{color}.icon.icon.icon.icon.icon {
color: @c;
}
& when (@variationIconInverted) {
i.inverted.@{color}.icon.icon.icon.icon.icon {
color: @l;
}
i.inverted.bordered.@{color}.icon.icon.icon.icon.icon,
i.inverted.circular.@{color}.icon.icon.icon.icon.icon {
background-color: @c;
color: @white;
}
}
})
Your fix is correct, would you like to create the PR on your own as well?
Yes sure – wasn't sure about this fix being correct, thanks
Yes sure – wasn't sure about this fix being correct, thanks
Just add the .icon specificity inside icon.less instead of icon.overrides
we had a similiar PR before #438
Ah nice, thanks for the pointers. I did it this way. Is there an easy way to quickly test it?
Thanks. Well, I just looked at your PR, this jsfiddle idea with overriding seems better :-)
Thanks for your guidance and this so quickly! should this be closed now that the pr is merged (it sounds like it from the pr template, but didn't happen through github)
We are closing related tickets once we release the next version