Skip to content

Commit

Permalink
fix(tabstrip): correct scrollable overlay in rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
zhpenkov committed Jan 22, 2025
1 parent dc935b9 commit ebf3ceb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 26 deletions.
23 changes: 10 additions & 13 deletions packages/default/scss/tabstrip/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,16 @@
}

// RTL
.k-rtl,
[dir="rtl"] {
&.k-tabstrip-scrollable-overlay {
&.k-tabstrip-top,
&.k-tabstrip-bottom {
.k-tabstrip-items-wrapper {
&::before {
background: linear-gradient(270deg, $kendo-tabstrip-scroll-overlay);
}

&::after {
background: linear-gradient(90deg, $kendo-tabstrip-scroll-overlay);
}
:is(.k-rtl .k-tabstrip-scrollable-overlay, [dir="rtl"] .k-tabstrip-scrollable-overlay, .k-tabstrip-scrollable-overlay.k-rtl, .k-tabstrip-scrollable-overlay[dir="rtl"] ) {
&.k-tabstrip-top,
&.k-tabstrip-bottom {
.k-tabstrip-items-wrapper {
&::before {
background: linear-gradient(270deg, $kendo-tabstrip-scroll-overlay);
}

&::after {
background: linear-gradient(90deg, $kendo-tabstrip-scroll-overlay);
}
}
}
Expand Down
23 changes: 10 additions & 13 deletions packages/fluent/scss/tabstrip/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,16 @@
}

// RTL
.k-rtl,
[dir="rtl"] {
&.k-tabstrip-scrollable-overlay {
&.k-tabstrip-top,
&.k-tabstrip-bottom {
.k-tabstrip-items-wrapper {
&::before {
background: linear-gradient(270deg, $kendo-tabstrip-scroll-overlay);
}

&::after {
background: linear-gradient(90deg, $kendo-tabstrip-scroll-overlay);
}
:is(.k-rtl .k-tabstrip-scrollable-overlay, [dir="rtl"] .k-tabstrip-scrollable-overlay, .k-tabstrip-scrollable-overlay.k-rtl, .k-tabstrip-scrollable-overlay[dir="rtl"] ) {
&.k-tabstrip-top,
&.k-tabstrip-bottom {
.k-tabstrip-items-wrapper {
&::before {
background: linear-gradient(270deg, $kendo-tabstrip-scroll-overlay);
}

&::after {
background: linear-gradient(90deg, $kendo-tabstrip-scroll-overlay);
}
}
}
Expand Down

0 comments on commit ebf3ceb

Please sign in to comment.