Skip to content

Commit

Permalink
[docs-infra] Hide the SkipLink button if user prefers reduced motion (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DerTimonius authored Aug 24, 2023
1 parent 15c81a8 commit d8e06a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/modules/components/SkipLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ const StyledLink = styled(MuiLink)(({ theme }) => ({
}),
},
'@media (prefers-reduced-motion: reduce)': {
top: theme.spacing(2),
transition: theme.transitions.create('opacity'),
opacity: 0,
'&:focus': {
top: theme.spacing(2),
opacity: 1,
transition: theme.transitions.create('opacity'),
},
Expand Down

0 comments on commit d8e06a7

Please sign in to comment.