Add: prefers-reduced-motion support for WCAG compliance#75
Open
amareshsm wants to merge 1 commit intoknadh:masterfrom
Open
Add: prefers-reduced-motion support for WCAG compliance#75amareshsm wants to merge 1 commit intoknadh:masterfrom
amareshsm wants to merge 1 commit intoknadh:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This addresses WCAG 2.1 Success Criterion 2.3.3 (Animation from Interactions)
Global wildcard - covers all current and future components in one block, avoiding per-component misses.
0.01msdurations - avoids breaking JS animation/transition events while effectively removing motion.animation-iteration-count: 1- stops infinite loops (spinners, skeletons) under reduced motion.scroll-behavior: auto- disables smooth scrolling to prevent motion sickness.All components with motion are covered automatically:
Animations: .spinner (continuous rotation), .skeleton (shimmer effect)
Transitions: dialog, [popover], .toast, button, form inputs, sidebar, accordion, tabs, tooltip, table rows
reference:
https://css-tricks.com/nuking-motion-with-prefers-reduced-motion
https://web.dev/articles/prefers-reduced-motion