-
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(tag): ensure tag keeps pill shape with single character #5053
fix(tag): ensure tag keeps pill shape with single character #5053
Conversation
Deploy preview for the-carbon-components ready! Built with commit 9e5ee9f https://deploy-preview-5053--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react ready! Built with commit 9e5ee9f https://deploy-preview-5053--carbon-components-react.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 9e5ee9f |
Deploy preview for the-carbon-components ready! Built with commit 07d48f7 https://deploy-preview-5053--the-carbon-components.netlify.com |
Deploy preview for carbon-elements failed. Built with commit 07d48f7 https://app.netlify.com/sites/carbon-elements/deploys/5e1f7047514b1f00085e7862 |
Deploy preview for carbon-components-react failed. Built with commit 07d48f7 https://app.netlify.com/sites/carbon-components-react/deploys/5e1f7047a0553600078e3db9 |
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.
🎉 looks perfect!
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.
LGTM 👍 - Thanks @tw15egan!
Closes #5009
Adds in a
min-width
so that a single character in a tag still maintains a pill shape. Addedjustify-content: center
to keep all items aligned in the center.Changelog
New
min-width
of 32px on all tagsTesting / Reviewing
Change a tag to a single digit and ensure the text is center-aligned and the tag is pill-shaped