-
Notifications
You must be signed in to change notification settings - Fork 1.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
fix(Icons): story icons no longer shrink to fit container #12568
Conversation
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
This reverts commit 661628e.
✅ Deploy Preview for carbon-components-react ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -6,7 +6,7 @@ | |||
// | |||
.demo-icon-example { | |||
display: flex; | |||
width: 10rem; | |||
width: 15rem; |
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.
Would it also be helpful to set a min-width
on the svg
?
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.
@tw15egan that's a good call. better safe than sorry. 👍🏽
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.
@tw15egan pushed an update. lmk if you think I should revert the original width to 10rem.
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.
Nah, can't hurt to have both. Thanks for fixing this!
The current icons story has a bug where the icons are much smaller than their actual sizes: https://react.carbondesignsystem.com/?path=/story/elements-icons--default this is because the wrapper has a set width, so the svgs are shrinking to fit that width.
Changelog
Testing / Reviewing