Search: icon metadata

Created on 4 September 2025, 14 days ago

Problem/Motivation

Slack discussion: https://drupal.slack.com/archives/C03MFN4D40J/p1756987375171399?thread_t...

When searching in icons pack documentation like https://icons.getbootstrap.com/, https://fontawesome.com/search?o=r, there are metadata associated with icons, so that it is not a perfect word match.

Searching "vehicle" could give you truck or car icons. Currently you need to search "truck" or "car". And asking site builders or contributors to know exactly the icon machine name is not great for UX.

I personally always go on documentation page like https://icons.getbootstrap.com/ to search for the icons I want to use which requires the user to leave the website (in another tab of course).

So I think there will be a bigger subject about search in icons.

Search metadata are outside the icons https://github.com/twbs/icons/blob/main/docs/content/icons/0-circle-fill..., and I guess handled differently per icon pack.

Proposed resolution

Maybe add a new entry on the icon pack definition to have another plugin type which will be able to metadata extraction and inject into icon definitions?

Remaining tasks

- define API
- define UI changes

User interface changes

To determine.

API changes

To determine.

Data model changes

There should be no stored data outside of new data extracted on the fly and put in plugin definition cache.

Feature request
Status

Active

Version

1.1

Component

User interface

Created by

🇫🇷France Grimreaper France 🇫🇷

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024