Skip to content

Commit b5e3830

Browse files
committed
style(a11y): add prefers-reduced-motion media query
Disables animations and transitions for users who have requested reduced motion, improving accessibility compliance.
1 parent 203371b commit b5e3830

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

app/styles/globals.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,17 @@ body {
143143
}
144144
}
145145

146+
@media (prefers-reduced-motion: reduce) {
147+
*,
148+
*::before,
149+
*::after {
150+
animation-duration: 0.01ms !important;
151+
animation-iteration-count: 1 !important;
152+
transition-duration: 0.01ms !important;
153+
scroll-behavior: auto !important;
154+
}
155+
}
156+
146157
@layer utilities {
147158
/* Scrollbar utilities */
148159
.scrollbar-hide::-webkit-scrollbar {

0 commit comments

Comments
 (0)