Skip to content

fix(react): honor prefers-reduced-motion in the shared stylesheet - #1892

Open
ra-co88 wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
ra-co88:fix/prefers-reduced-motion
Open

fix(react): honor prefers-reduced-motion in the shared stylesheet#1892
ra-co88 wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
ra-co88:fix/prefers-reduced-motion

Conversation

@ra-co88

@ra-co88 ra-co88 commented Aug 30, 2026

Copy link
Copy Markdown

What

The shared stylesheet now honors prefers-reduced-motion: reduce: transition and animation durations collapse to 0.01ms and smooth scrolling is disabled, per the standard accessibility pattern.

Why

Users who set the OS-level reduced-motion preference were still getting full transitions and smooth scroll — the stylesheet never consulted the media query.

What changed

One media block in packages/react/src/styles/globals.css. No API surface change.

Test plan

CSS-only change; verified by toggling the OS preference and observing the shared UI (e2e hook available if maintainers want it recorded — happy to add the one-liner).

@ra-co88

ra-co88 commented Aug 30, 2026

Copy link
Copy Markdown
Author

Heads-up on the red E2E (cloud 13of16) check here: it's failing on main itself (e.g. the Version Packages runs), so it's pre-existing rather than from this PR. It's the cap-eviction scenario tripping over workerd resetting session Durable Objects mid-initialize when the test opens its burst of sessions — diagnosis and a proposed fix in #1895.

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.

2 participants