fix: respect prefers-reduced-motion for accessibility (#258) - #337
Open
windy202508 wants to merge 1 commit into
Open
fix: respect prefers-reduced-motion for accessibility (#258)#337windy202508 wants to merge 1 commit into
windy202508 wants to merge 1 commit into
Conversation
Add a @media (prefers-reduced-motion: reduce) block in globals.css that disables transitions and animations globally for users who have opted out of motion at the OS/browser level. Fixes MergeFi#258 Changes: - Added prefers-reduced-motion media query in globals.css - Forces transition-duration and animation-duration to 0.01ms - Sets animation-iteration-count to 1 - Disables smooth scroll-behavior - Applies to all elements via universal selector with !important This ensures visitors with vestibular disorders and motion sensitivity get a reduced-motion experience across the entire app, including: - BountyCard hover-lift animations - Theme/dark-mode transitions - Navbar dropdown fades
|
@realWindyTree is attempting to deploy a commit to the chonilius' projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Summary
Fixes #258
Adds a
@media (prefers-reduced-motion: reduce)block inglobals.cssthat disables transitions and animations globally for users who have opted out of motion at the OS/browser level.Changes
prefers-reduced-motion: reducemedia query inglobals.csstransition-durationandanimation-durationto0.01mswith!importantanimation-iteration-countto1scroll-behaviorAccessibility Impact
This ensures visitors with vestibular disorders and motion sensitivity get a reduced-motion experience across the entire app, including:
Testing
Reduce motionin your OS accessibility settingsReduce motionand verify animations return