You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For our standard icon collections (-icons, -icons-tnt, -icons-business-suite), we support two versions of each icon and based on the theme family set, we display the one or the other. This is not yet possible for custom icon SVGs that are registered, but recently requested.
Proposed Solution
Enhancing registerIconLoader to provide the necessary versioned info and getIconCollectionByTheme, getIconCollectionByTheme in config/Icons.ts to the auto switch.
Proposed Alternatives
No response
Organization
SAC
Additional Context
No response
Priority
None
Privacy Policy
I’m not disclosing any internal or sensitive information.
The text was updated successfully, but these errors were encountered:
The PR aims to add support for registering versioned/theme dependent custom icon collections.
Previously, one could register an icon collection (f.e. "my-icons") with the use of `registerIconLoader` and use it with the Icon web component.
However, there is no API to register theme dependant version of the same icon, so that whenever the theme is changed the used SVGs are auto-switched behind the scenes.
Now. `registerIconLoader` can be used to register additional second version (won't fail in case of multiple versions, but at the end the separation is "legacy" vs "sap_horizon" theme families) and use the newly supported field "themeFamily" to define in which themeFamily the icon collection should be used. If "themeFamily" is not present, by default it means in all themes (sap_belize_*, sap_fiori_3_*) other than "sap_horizon" theme families.
Fixes: #7312
Feature Request Description
For our standard icon collections (-icons, -icons-tnt, -icons-business-suite), we support two versions of each icon and based on the theme family set, we display the one or the other. This is not yet possible for custom icon SVGs that are registered, but recently requested.
Proposed Solution
Enhancing
registerIconLoader
to provide the necessary versioned info andgetIconCollectionByTheme
,getIconCollectionByTheme
inconfig/Icons.ts
to the auto switch.Proposed Alternatives
No response
Organization
SAC
Additional Context
No response
Priority
None
Privacy Policy
The text was updated successfully, but these errors were encountered: