-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Icon]: Icons are only able to be square, but there are some which are rectangular #428
Comments
I think, that in that case, we should change the icon in Figma. cc @aguscruiz? |
We should allow for different aspect ratios, this already happens with the flag icons. There are some cases where we'll need to break that square format |
How about we read the aspect ration at ingestion time, and enforce that in css? Then the consumer only needs to specify the |
That said, what about custom icons? We won't know the aspect ratio there. Additionally (and it may not be a concern) it means clients would need to pull in a list of aspect ratios for all icons (even if they only use a couple of icons). Maybe we should just make it possible to override the aspect-ratio? |
For custom icons, I think exposing the
I don't think this is the case. If it's baked into a meta file with icon names as keys, the Icon component could automatically set the aspect ratio, yes? |
Exactly - but that meta file would get pulled in (with the aspect ratio of all the icons) even if you only used a few of them. |
Grasping at straws a bit here, but could it calculate it via the |
It could, but then we'd need to download the SVG twice (once as the background image, once via a fetch to read it), so we'd be depending on the caching strategy people have setup |
E.g.
payment-stripe-color
.The text was updated successfully, but these errors were encountered: