-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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(tabs): truncate container tab header text with ellipses #5035
fix(tabs): truncate container tab header text with ellipses #5035
Conversation
Deploy preview for the-carbon-components ready! Built with commit 13f598c https://deploy-preview-5035--the-carbon-components.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 13f598c |
Deploy preview for carbon-components-react ready! Built with commit 13f598c https://deploy-preview-5035--carbon-components-react.netlify.com |
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.
🎉 perfect!
645921a
to
f1090b0
Compare
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 great! 👍
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 good to me!
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.
Thanks @emyarod for jumping in!
Closes #5016
This PR adds ellipses for overflow text in container tab headers and mobile tabs. Instead of making the anchor a flex item we keep the inherited inline-block display value and set the line height based on the anchor height and vertical padding to center the text. An alternative approach would be to wrap the text in the anchor in another element
Changelog
New
Changed
Testing / Reviewing
Ensure that the tab variants appear correct, especially with longer tab labels