Active
Project:
Font Awesome Iconpicker
Version:
3.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
20 Aug 2024 at 17:23 UTC
Updated:
8 Sep 2025 at 17:10 UTC
Jump to comment: Most recent
Font Awesome documentation says we can opt to specify styles (solid, brands, regular, etc). This is especially useful to us because we can use it to limit which icons we support.
Font Awesome Icons offers the option of choosing which partial file configurations will be used to limit the icons loaded.
Font Awesome Iconpicker does not limit the available icons based on the selected styles.
You will still see Brand icons in the list.
Font Awesome Iconpicker says it fully supports integration with Font Awesome Icons. The configuration noted above limits the icons loaded into the system. Font Awesome Iconpicker should respect that configured limit.
Comments
Comment #2
jcandan commentedSo far as I can see on a cursory review, the set of Icons determined to be available are hard-coded here and here (Not sure why it is listed twice, and each list is different).
I imagine we could refactor this to a single place. Then ensure that place gets the list from configuration. There may also probably need to be a mapping from the above configuration to the
iconSourceoptions listed at the vanila-icon-picker NPM package docs.Comment #3
d34dman commentedComment #4
d34dman commentedOh dear, this one is quite tricky to resolve without introducing a breaking change.
The defaults in the JavaScript file will likely need to remain as they are
The list option in the JavaScript is currently used as a fallback when no configuration is provided from the Drupal side. I realize this might not have been the best design choice on my part, but changing it now would unfortunately cause a breaking change. So for the time being, it's safer to leave it as is.
The use case is further complicated by the lack of a hard dependency on Font Awesome
Because this module doesn't strictly depend on the Drupal Font Awesome module, I'm left unsure how to properly handle certain scenarios:
To ensure proper compatibility with Font Awesome in such cases, I would effectively need to introduce a breaking change in how this module behaves.
So (takes a deep breath), to be more precise, the claim that fontawesome_iconpicker is compatible with other modules really ought to be revised to set clearer expectations. In reality, the only compatibility it has ever offered is that icons selected through fontawesome_iconpicker can still be rendered by any library made available through other modules.