Skip to content

fix: respect prefers-reduced-motion for accessibility (#258) - #337

Open
windy202508 wants to merge 1 commit into
MergeFi:mainfrom
windy202508:fix/prefers-reduced-motion-258
Open

fix: respect prefers-reduced-motion for accessibility (#258)#337
windy202508 wants to merge 1 commit into
MergeFi:mainfrom
windy202508:fix/prefers-reduced-motion-258

Conversation

@windy202508

Copy link
Copy Markdown

Summary

Fixes #258

Adds 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.

Changes

  • Added prefers-reduced-motion: reduce media query in globals.css
  • Forces transition-duration and animation-duration to 0.01ms with !important
  • Sets animation-iteration-count to 1
  • Disables smooth scroll-behavior
  • Applies to all elements via universal selector

Accessibility Impact

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

Testing

  1. Enable Reduce motion in your OS accessibility settings
  2. Visit the app
  3. Verify that hover effects and transitions are disabled
  4. Disable Reduce motion and verify animations return

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
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

@realWindyTree is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App-wide transitions and hover animations never respect prefers-reduced-motion

2 participants