Add comprehensive prefers-reduced-motion support for accessibility#13
Merged
Add comprehensive prefers-reduced-motion support for accessibility#13
Conversation
…mentation Co-authored-by: fellyph <330792+fellyph@users.noreply.github.com>
Co-authored-by: fellyph <330792+fellyph@users.noreply.github.com>
Co-authored-by: fellyph <330792+fellyph@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for prefers-reduced-motion media query
Add comprehensive prefers-reduced-motion support for accessibility
Nov 22, 2025
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.
prefers-reduced-motionimplementation in style.cssprefers-reduced-motionfunctionalitySummary of Changes:
This PR adds comprehensive
prefers-reduced-motionsupport to respect users' operating system preferences for reduced animations, improving accessibility for users who experience motion sickness or vestibular disorders.1. Enhanced CSS Implementation (
src/style.css)[data-parallax]selector to disable parallax effects when reduced motion is preferredclip-path: none !importantto disable reveal animations (circle-reveal, curtain-reveal)filter: none !importantto disable blur effects (blur-in)2. Build Configuration Fixed
webpack.config.jsto properly build mainsrc/index.jsentry point--experimental-modulesflag from npm scripts (was incompatible with WordPress dependencies)build/index.js,build/index.css, andbuild/style-index.cssas expected by the PHP plugin file3. Test Coverage (
tests/reduced-motion.spec.ts)4. Documentation
docs/REDUCED-MOTION.mdwith comprehensive accessibility documentationREADME.mdto highlight accessibility featureTechnical Details:
@media (prefers-reduced-motion: reduce)CSS media query[data-scroll-anim]or[data-parallax]attributesAll linting, formatting, and type checking passes successfully ✅
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.