-
-
Notifications
You must be signed in to change notification settings - Fork 373
[Icons] Document icon_sets
configuration
#2938
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -628,6 +628,21 @@ Full Configuration | |||||||
# Whether to ignore errors when an icon is not found | ||||||||
ignore_not_found: false | ||||||||
|
||||||||
# Icon sets configuration, array of prefix => icon set configuration | ||||||||
icon_sets: | ||||||||
# Icon set for "flags", can be used like this: ux_icon('flags:fr') | ||||||||
flags: | ||||||||
It can either be mapped to a local directory... | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤦🏻 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in #2939, thanks! |
||||||||
path: '%kernel.project_dir%/assets/images/flags' | ||||||||
... or to an existing icon set identifier | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in #2939, thanks! |
||||||||
alias: 'lucide' | ||||||||
|
||||||||
# Override the default attributes (default_icon_attributes) for this icon set | ||||||||
icon_attributes: | ||||||||
class: 'flag' # Replace the default class | ||||||||
stroke: 'none' # Add a new attribute | ||||||||
fill: false # Use "false" to remove a default attribute | ||||||||
|
||||||||
Learn more | ||||||||
---------- | ||||||||
|
||||||||
|
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.
I didn't add any "added in 2.20", this version is pretty old right now