Actually, I checked this again and that assessment of the problem doesn’t seem to be accurate. It seems like any slugs that have some of the same words as another will not work despite not using partial.
I believe this component is for adding icons to category badges. That is, wherever you see the category appear in things like topic lists, title bar, etc. where it normally has a square with the category color and the category name.
Whereas the icons shown in the #howto category are simply using the built-in Category Logo Image setting found in the settings when editing a category.
It probably has been brought up before, but we can’t change a category color when the category style is none anymore, this notice is rendered instead:
You can’t select colors because you have a category style of none.
Currently, we need to change the style to something else, change the color, and reset the style to none.
On another subject, I assume we still need core changes to be able to replace categories and tag icons in the sidebar to follow what’s set in these theme components, right?
great component, thank you so much for it. I implemented it and it works on any category for me - except one… I put in the correct slug, partial and exact. No icon. Hm.
I think there are some bugs with matching. I have a category commblog, and I could not assign an icon to a commblog-review category. I ended up working around it by calling it community-blog-review instead. (The match / partial config didn’t seem to help, but maybe I was doing that wrong.)
Honestly, ideally, instead of the kind of klunky table-based config, it’d be really nice if this could be set on the actual config page for each category. I understand that’s probably not possible (or at least, not easy!) with a theme component, though.
That is indeed not possible with a theme component. However, it’s in our plans to add icon support to tags and categories in core in the near future, quite possibly some time in 2023.