- Issue created by @pdureau
- π«π·France celdia
Yes, I confirm that. It's a real protype to have an idea of how to manage an icon sets. Also tested and compatible with most of Design System (Bootstrap, DSFR, USWDS, Material...)
- π«π·France pdureau Paris
Hello iconset team,
We have proposed a MR for this core issue: β¨ Add an icon management API Active
With an API containing:
- iconpack plugin type with its plugin manager >> kind of equivalent to your iconset plugin
- extractor plugin type with its plugin manager, its PHP attribute notation & an icon finder service >> kind of equivalent to your icon handler plugin
- icon() Twig function & ui_icon render element (renamed icon) >> equivalent to yours
- path, svg & svg_sprite extractors >> I guess kind of similar to image & svg handlers
We would love to have your opinion on this MR. Is the proposal good enough to build the next version of iconset module on it?
Leveraging this API, iconset can still propose from its current API:
- the
svg_font
handler - the
iconset_selector
form element - the integration with the field API (type, formatter, widget)
- the integration with the menu API
- the integration with Ckeditor5
- maybe more...
- Assigned to lemming
- πΊπΈUnited States lemming
Thank you for the kind words and the work to get a consistent icon management system for Drupal Core.
I apologize for the extended time it took to respond. I have been working on other focuses, and needed a break from Drupal. I had a few plans for some feature improvements that I'll focus on targeting with the Drupal 11.1 release.
One big one was the ability to override icons in themes. So a module could define an edit icon for use with functionality and provide a default icon, but themes could change the icon display to fit the theme aesthetic.
I'm a bit behind maintaining and building some modules, so it might take me a little bit of time to get caught up, but this is on my list.
Thanks again!
- π«π·France pdureau Paris
I have been working on other focuses, and needed a break from Drupal.
I hope you have rested and feel better.
I had a few plans for some feature improvements that I'll focus on targeting with the Drupal 11.1 release.
Great :) Tell us if you have questions.
One big one was the ability to override icons in themes. So a module could define an edit icon for use with functionality and provide a default icon, but themes could change the icon display to fit the theme aesthetic.
I woudl love to use such a feature.