Context
While working on XWIKI-15069: Make Tags use IconThemes (see PR #5161), with @MichaelHamann we found out that our IconSet’s tag is actually just a self-mapped Silk compatibility entry, pointing to Silk’s literal “XML tag” glyph. It’s not the label-shaped icon we thought it would be. Silk does have one for this, tag_blue, it’s just not exposed under any generic name that could also work for FontAwesome (FA) or the iconSet.
Problem
tag is overloaded:
- it’s the natural name for the “label” concept (used by Tags and
livetable.css); - it’s a legacy Silk self-mapping, guaranteeing that requesting
tagunder the Silk theme gives back Silk’s own icon.
Solutions
- Add a new IconSet entry for the “label” concept (e.g.
label), mapped to FA’stagand Silk’stag_blue. This solution leaves the existingtaguntouched. - Repoint Silk’s
tagmapping totag_blue, turningtaginto a real, theme-independent IconSet entry. This breaks the “every Silk name maps to itself” assumption.
Proposal
Apply solution 2 and repurpose the tag icon name.
Explanation
+1 for solution 2 from me because:
tagis genuinely the concept’s name in XWiki.- The only known usages of Silk’s
tag_XXXicons are the two spots just fixed in #5161 and only one inlivetable.css, so the backwards-compatibility risk looks low. There’s no use oftagitself currently in XS. This mapping is actually quite bad so I doubt a lot of customizations relied on it (HTML tag in Silk vs label-like tag in FA).
Conclusion
Do you agree that the IconSet should be expanded to properly cover this “label” concept?
Do you agree with solution 2 or would you rather keep tag untouched and introduce a new name like label instead (solution 1)?
I’ll close this topic in a week if it doesn’t spur a large discussion.
Thank you for your interest in the topic! I’m looking forward to your answers ![]()
Lucas C.