-
Notifications
You must be signed in to change notification settings - Fork 256
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
Use rem
units for Icons
#1613
Comments
I want to add context that I'm not sure if it's still an issue, but before, the download time of Maybe how we package icons as a whole could be redone (#1561). |
I see that the official Carbon icon package is apologetically large: carbon-design-system/carbon#6602. It makes sense to include copies of the few SVGs used by the provided components without adding Looking at packaging options, I looked into unplugin-icons for Iconify. I see the full Carbon icon set is provided by Iconify and there's a Svelte implementation: https://icon-sets.iconify.design/carbon/4k/. Perhaps consumers of
Folks with certain enterprise restrictions should be able to determine which would work best for them, and we can help document the pros and cons of each option. With that said, this ticket can focus on utilizing |
Currently, our set of interaction icons have their dimensions defined by SVG attributes
width
andheight
that render as pixel units. This does not scale up when adjustinghtml { font-size: 100% }
in the browser to different percentages.I propose the following:
/src/icons
and consume fromcarbon-icons-svelte
rem
units corresponding towidth
andheight
The text was updated successfully, but these errors were encountered: