Skip to content

Commit

Permalink
Transition chevron only on selected and not on hover or focus-visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniGuardiola committed Oct 4, 2024
1 parent ece5efc commit 07069c8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/components/src/tabs/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,7 @@ export const TabChevron = styled( Icon )`
// indicator that's being animated at the same time.
@media not ( prefers-reduced-motion ) {
[data-select-on-move='true']
[role='tab']:is(
[aria-selected='true'],
[data-focus-visible],
:hover
)
[role='tab']:is( [aria-selected='true'], )
& {
transition: opacity 0.3s ease-in;
}
Expand Down

0 comments on commit 07069c8

Please sign in to comment.