-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first draft for ux icons support #195
base: main
Are you sure you want to change the base?
Conversation
Big 👍 for splitting |
icons: | ||
# used for the action_collapsebutton components | ||
collapse: fas fa-chevron-down | ||
collapse: "fa6-solid:chevron-down" | ||
# used for the password-reset template | ||
mail: far fa-envelope | ||
mail: "fa6-regular:envelope" | ||
# used for the 404/500/... error page | ||
back: fas fa-long-arrow-alt-left | ||
back: "fa6-solid:left-long" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still keep the icons
config part in the future, or just during the temporary "deprecated" period?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep it during the deprecation period. I want to try to make this PR completely BC safe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the other hand, this is a tiny layer on top of the UX icons later, that helps managing and downloading them.
Not sure yet ...
return $this->iconRenderer->renderIcon($icon, ['class' => 'icon']); | ||
} | ||
|
||
@trigger_error('Support for webfonts is deprecated. Switch to UX icons. Using twig function tabler_icon("' . $name . '") is deprecated.', \E_USER_DEPRECATED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trigger_error('Support for webfonts is deprecated. Switch to UX icons. Using twig function tabler_icon("' . $name . '") is deprecated.', \E_USER_DEPRECATED); | |
@trigger_error('Using twig function tabler_icon("' . $name . '") without an iconify identifier is deprecated, see https://github.com/kevinpapst/TablerBundle/pull/195.', \E_USER_DEPRECATED); |
Description
This is a first draft for UX icons integration.
It supports both Fontawesome webfont and UX icons.
It ships a command that can convert current webfont configuration and download all icons configured at
tabler.icons
, and it even supports converting old FA5 to FA6 names (the webfont supported both versions, iconify only the new names).The
tabler_icon()
Twig functions works as before and supports both implementations.The
|tabler_icon
Twig filter will still work with webfonts, but not with UX icons.The biggest issues I see:
Closes #194
Types of changes
Checklist