fix(web): add prefers-reduced-motion media query for accessibility
This commit is contained in:
parent
0036e6af10
commit
2d0a47be92
@ -186,6 +186,16 @@ body {
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Respect user motion preference */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Screen-reader only utility */
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user