Skip to content

Commit

Permalink
feat(tabs): add fade to default tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
divya-281 committed Sep 23, 2024
1 parent 7e532cf commit 26df613
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions packages/styles/scss/components/tabs/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,29 @@
.#{$prefix}--tab--overflow-nav-button--next::before {
position: absolute;
z-index: 1;
background: linear-gradient(
to right,
rgba(255, 255, 255, 0),
$background
);
block-size: 100%;
content: '';
inline-size: $spacing-03;
inset-inline-start: -$spacing-03;
}

&:not(.#{$prefix}--tabs--contained) {
.#{$prefix}--tab--overflow-nav-button--next::before {
background: linear-gradient(
to right,
rgba(255, 255, 255, 0),
$background
);
}
.#{$prefix}--tab--overflow-nav-button--previous::before {
background: linear-gradient(
to left,
rgba(255, 255, 255, 0),
$background
);
}
}

.#{$prefix}--tab--overflow-nav-button--previous {
position: absolute;
z-index: 1;
Expand All @@ -184,7 +196,6 @@
.#{$prefix}--tab--overflow-nav-button--previous::before {
position: absolute;
z-index: 1;
background: linear-gradient(to left, rgba(255, 255, 255, 0), $background);
block-size: 100%;
content: '';
inline-size: $spacing-03;
Expand Down

0 comments on commit 26df613

Please sign in to comment.