-
Notifications
You must be signed in to change notification settings - Fork 280
fix(ui5-tab-container): prevent selection indicator on text-only tabs from overlapping bottom border #12584
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
base: main
Are you sure you want to change the base?
Conversation
selection indicator of text only tabs shows above the bottom border Fixes: #12538
|
🚀 Deployed on https://pr-12584--ui5-webcomponents-preview.netlify.app |
Please consider: The selection indicator for text-only tabs appears above the bottom border. |
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.
Please consider, this is a bit long, but it's exactly the allowed limit of 100 characters:
fix(ui5-tab-container): prevent selection indicator on text-only tabs from overlapping bottom border
| .ui5-tab-strip-item--selected .ui5-tab-strip-item-icon-outer::after { | ||
| bottom: -0.9375rem; | ||
| } |
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.
this is not needed
| .ui5-tab-strip-item--selected.ui5-tab-strip-item--mixedMode .ui5-tab-strip-itemContent::after { | ||
| left: var(--_ui5_tc_headeritem_padding); | ||
| right: var(--_ui5_tc_headeritem_padding); | ||
| } |
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.
/* selection indicator */
.ui5-tab-strip-item--selected.ui5-tab-strip-item--textOnly::after,
.ui5-tab-strip-item--selected.ui5-tab-strip-item--mixedMode::after,
.ui5-tab-strip-item--selected .ui5-tab-strip-item-icon-outer::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
border-radius: var(--_ui5_tc_headerItemContent_border_radius);
background-color: var(--sapTab_ForegroundColor);
height: var(--sapTab_Selected_Indicator_Dimension);
}
/* selection indicator offset in text only and mixed modes */
.ui5-tab-strip-item--selected.ui5-tab-strip-item--textOnly::after,
.ui5-tab-strip-item--selected.ui5-tab-strip-item--mixedMode::after {
left: var(--_ui5_tc_headeritem_padding);
right: var(--_ui5_tc_headeritem_padding);
}
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.
Better to have the "underline" on the whole item so we do not have to adjust it with magical px.
… from overlapping bottom border Address review comments
…container-selection-border
…i5-webcomponents into ui5-tab-container-selection-border
The selection indicator for text-only tabs appears above the bottom border.
Fixes: #12538