-
Notifications
You must be signed in to change notification settings - Fork 77
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(tab-nav): justify centered tab-titles
evenly to extend across the width of tab-nav
#7047
fix(tab-nav): justify centered tab-titles
evenly to extend across the width of tab-nav
#7047
Conversation
tab-titles
evenly to extend across the width of tab-nav
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.
👍
Will this trigger a screenshot failure? If not can we add a test for it?
Yeah, I think because I had too many tabs in the screenshot setup to cover all prop variations, it wasn't obvious tabs fail to spread to the whole width. That's how it got missed. I'll modify one now. |
@@ -233,6 +232,21 @@ export const centeredBorderedClosable_TestOnly = (): string => html` | |||
</calcite-tabs> | |||
`; | |||
|
|||
export const centeredTabsAreEvenlyJustifiedAcrossNavWidth_TestOnly = (): string => html` |
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.
👍
Related Issue: #7025
Summary
Follow-up to fix to #7026.
Centered
tabs
should spread thetab-titles
evenly to extend across the entire width oftab-nav
, as opposed toinline tab-titles
that only justify against the start oftab-nav
width.Added coverage for both
centeredTabsAreEvenlyJustifiedAcrossNavWidth
andinlineTabsJustifyAgainstTheStartOfTheNavWidth
.