Skip to content
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

Merged
merged 5 commits into from
Nov 9, 2022

Conversation

jnm2377
Copy link
Contributor

@jnm2377 jnm2377 commented Nov 8, 2022

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

  • increase wrapper width

Testing / Reviewing

  • go to icons story example > icons should now be the correct size
  • note: unsure if this story has a VRT, so tests may break bc of the visual change

@jnm2377 jnm2377 requested a review from a team as a code owner November 8, 2022 01:24
@jnm2377 jnm2377 closed this Nov 8, 2022
@netlify
Copy link

netlify bot commented Nov 8, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 6de4a0b
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/636bc0225eaa170008eeb850
😎 Deploy Preview https://deploy-preview-12568--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 8, 2022

Deploy Preview for carbon-components-react ready!

Name Link
🔨 Latest commit 6de4a0b
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/636bc022dedcde0008784633
😎 Deploy Preview https://deploy-preview-12568--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jnm2377 jnm2377 reopened this Nov 8, 2022
@@ -6,7 +6,7 @@
//
.demo-icon-example {
display: flex;
width: 10rem;
width: 15rem;
Copy link
Collaborator

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?

Copy link
Contributor Author

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. 👍🏽

Copy link
Contributor Author

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.

Copy link
Collaborator

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!

@kodiakhq kodiakhq bot merged commit d45b5aa into carbon-design-system:main Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants