Skip to content

feat(a11y): respect reduced-motion preferences#2805

Open
ramiy wants to merge 2 commits into
algolia:mainfrom
ramiy:reduced-motion
Open

feat(a11y): respect reduced-motion preferences#2805
ramiy wants to merge 2 commits into
algolia:mainfrom
ramiy:reduced-motion

Conversation

@ramiy

@ramiy ramiy commented Nov 23, 2025

Copy link
Copy Markdown
Contributor

This is an accessibility fix, it adds styling to respect reduced-motion.

All the places with transition or animation should have @media (prefers-reduced-motion: reduce) that resets the duration and delay to 0.

This PR also deletes existing reduced-motion rules. Why? Because they removed all the styling. Reduced motion should not reset styles, and not remove transitions/animations, it should simply display motion-free experience (no delay and no duration).

Testing

To activate reduced motion go to Settings > Accessibility > Motion

78b6670f-cb66-4e10-8bab-11cf64700ee1

@netlify

netlify Bot commented Nov 23, 2025

Copy link
Copy Markdown

‼️ Deploy request for docsearch rejected.

Name Link
🔨 Latest commit 205c45f

@netlify

netlify Bot commented Nov 23, 2025

Copy link
Copy Markdown

Deploy Preview for docsearch-demo failed.

Name Link
🔨 Latest commit 356eaee
🔍 Latest deploy log https://app.netlify.com/projects/docsearch-demo/deploys/69ac12641937bb0008ff6881

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.

1 participant