Skip to content

Commit

Permalink
De-cleverfy code.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniGuardiola committed Sep 2, 2024
1 parent f82b413 commit 4db2b35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/src/tabs/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ export const TabListWrapper = styled.div`
}
}
--direction-factor: 1;
--direction-origin-x: left;
--indicator-start: var( --indicator-left );
&:dir( rtl ) {
--direction-factor: -1;
--direction-origin-x: right;
--indicator-start: var( --indicator-right );
}
&::after {
content: '';
position: absolute;
pointer-events: none;
transform-origin: calc( ( 1 - var( --direction-factor ) ) * 50% ) 0%;
transform-origin: var( --direction-origin-x ) top;
// Windows high contrast mode.
outline: 2px solid transparent;
Expand Down

0 comments on commit 4db2b35

Please sign in to comment.