-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Improve Tabs indicator animation and related utils #64926
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
Changes from 1 commit
f5a833a
42080a4
7377fc0
405c258
4726e53
6835665
1e444af
7861921
55dd870
d03622b
c347fad
59797e4
f82b413
4db2b35
e36a506
b57955b
bc62400
3f6a381
522d816
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,24 +34,25 @@ export const TabListWrapper = styled.div` | |
| position: absolute; | ||
| pointer-events: none; | ||
|
|
||
| // Windows high contrast mode. | ||
| outline: 2px solid transparent; | ||
| outline-offset: -1px; | ||
| } | ||
| &:not( [aria-orientation='vertical'] ) { | ||
| --direction-factor: 1; | ||
| --indicator-start: var( --indicator-left ); | ||
| &:dir( rtl ) { | ||
| --direction-factor: -1; | ||
| --indicator-start: var( --indicator-right ); | ||
| } | ||
| transform-origin: calc( ( 1 - var( --direction-factor ) ) * 50% ) 0%; | ||
|
||
|
|
||
| // Windows high contrast mode. | ||
| outline: 2px solid transparent; | ||
| outline-offset: -1px; | ||
| } | ||
| &:not( [aria-orientation='vertical'] ) { | ||
| &::after { | ||
| bottom: 0; | ||
| height: 0; | ||
| /* Using a large value to avoid antialiasing rounding issues | ||
| when scaling in the transform, see: https://stackoverflow.com/a/52159123 */ | ||
| width: 100px; | ||
| transform-origin: calc( ( 1 - var( --direction-factor ) ) * 50% ) 0%; | ||
| transform: translateX( | ||
| calc( | ||
| var( --indicator-start ) * var( --direction-factor ) * | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.