Skip to content

Commit fc5092f

Browse files
committedAug 9, 2023
fix(a11y/theme): disable transitions if user prefers reduced motion
1 parent 436e99a commit fc5092f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎src/client/theme-default/styles/base.css

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
@media (prefers-reduced-motion: reduce) {
2+
*,
3+
::before,
4+
::after {
5+
animation-delay: -1ms !important;
6+
animation-duration: 1ms !important;
7+
animation-iteration-count: 1 !important;
8+
background-attachment: initial !important;
9+
scroll-behavior: auto !important;
10+
transition-duration: 0s !important;
11+
transition-delay: 0s !important;
12+
}
13+
}
14+
115
*,
216
::before,
317
::after {

0 commit comments

Comments
 (0)
Please sign in to comment.