Skip to content

Commit

Permalink
TabPanel: Standardize reduced motion handling using media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
SainathPoojary committed Jan 2, 2025
1 parent f9a5c9b commit bdb3f8d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/components/src/tab-panel/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
border-radius: 0;

// Animation
transition: all 0.1s linear;
@include reduce-motion("transition");
@media not (prefers-reduced-motion) {
transition: all 0.1s linear;
}
}

// Active.
Expand All @@ -68,8 +69,9 @@
border-radius: $radius-small;

// Animation
transition: all 0.1s linear;
@include reduce-motion("transition");
@media not (prefers-reduced-motion) {
transition: all 0.1s linear;
}
}

&:focus-visible::before {
Expand Down

0 comments on commit bdb3f8d

Please sign in to comment.