Skip to content

Commit

Permalink
fix(core/tabs): tabs border-bottom line should use pseudo element to …
Browse files Browse the repository at this point in the history
…render correctly
  • Loading branch information
travor20814 committed Jun 19, 2023
1 parent 93b02ad commit 0e3e74a
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions packages/core/src/tabs/_tabs-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,19 @@ $tab-padding: 8px 0 !default;
grid-auto-flow: column;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid palette.color(border);
margin-bottom: $margin-bottom;
position: relative;

&::after {
content: '';
position: absolute;
z-index: 0;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background-color: palette.color(border);
}
}

&--overflow {
Expand Down Expand Up @@ -80,7 +91,17 @@ $tab-padding: 8px 0 !default;

&--active {
color: palette.color(primary);
border-bottom: 2px solid palette.color(primary);

&::after {
content: '';
position: absolute;
z-index: 1;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background-color: palette.color(primary);
}
}

&:hover:enabled {
Expand Down

0 comments on commit 0e3e74a

Please sign in to comment.