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(tag): ensure tag keeps pill shape with single character #5053

Merged
merged 3 commits into from
Jan 15, 2020

Conversation

tw15egan
Copy link
Member

Closes #5009

Adds in a min-width so that a single character in a tag still maintains a pill shape. Added justify-content: center to keep all items aligned in the center.

Changelog

New

  • min-width of 32px on all tags

Testing / Reviewing

Change a tag to a single digit and ensure the text is center-aligned and the tag is pill-shaped

@netlify
Copy link

netlify bot commented Jan 15, 2020

Deploy preview for the-carbon-components ready!

Built with commit 9e5ee9f

https://deploy-preview-5053--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Jan 15, 2020

Deploy preview for carbon-components-react ready!

Built with commit 9e5ee9f

https://deploy-preview-5053--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Jan 15, 2020

Deploy preview for carbon-elements ready!

Built with commit 9e5ee9f

https://deploy-preview-5053--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Jan 15, 2020

Deploy preview for the-carbon-components ready!

Built with commit 07d48f7

https://deploy-preview-5053--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Jan 15, 2020

Deploy preview for carbon-elements failed.

Built with commit 07d48f7

https://app.netlify.com/sites/carbon-elements/deploys/5e1f7047514b1f00085e7862

@netlify
Copy link

netlify bot commented Jan 15, 2020

Deploy preview for carbon-components-react failed.

Built with commit 07d48f7

https://app.netlify.com/sites/carbon-components-react/deploys/5e1f7047a0553600078e3db9

Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 looks perfect!

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 - Thanks @tw15egan!

@asudoh asudoh merged commit e49944d into carbon-design-system:master Jan 15, 2020
@tw15egan tw15egan deleted the tag-single-digit branch April 28, 2021 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tag component doesn't look like a tag when there is only one character
3 participants