-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
feat(icon): allow viewBox to be configured when registering icons #16320
Conversation
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.
This was something I had been holding off on because I wanted it to be part of cdk-svg
, but it's probably going to be a while before we can really do that, so we might as well do it here
This has been a long-standing feature request that has recently popped up again. Allows consumers to specify a `viewBox` for icons and icon sets when they're being registered. Fixes angular#2981. Fixes angular#16293.
550bbc7
to
f378393
Compare
Reworked based on the feedback @jelbourn. |
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.
LGTM
Also would be nice to use the viewBox attribute of the symbol If already set. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This has been a long-standing feature request that has recently popped up again. Allows consumers to specify a
viewBox
for icons and icon sets when they're being registered.Fixes #2981.
Fixes #16293.