Skip to content

Commit

Permalink
fix(a11y/theme): disable transitions if user prefers reduced motion
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Aug 9, 2023
1 parent 436e99a commit fc5092f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/client/theme-default/styles/base.css
@@ -1,3 +1,17 @@
@media (prefers-reduced-motion: reduce) {
*,
::before,
::after {
animation-delay: -1ms !important;
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
background-attachment: initial !important;
scroll-behavior: auto !important;
transition-duration: 0s !important;
transition-delay: 0s !important;
}
}

*,
::before,
::after {
Expand Down

0 comments on commit fc5092f

Please sign in to comment.