Skip to content

fix(web): respect prefers-reduced-motion in scroll, spinners and skeletons - #228

Open
bashir347 wants to merge 1 commit into
Yormee-103:mainfrom
bashir347:trae/agent-y5PCp8
Open

bashir347 wants to merge 1 commit into
Yormee-103:mainfrom
bashir347:trae/agent-y5PCp8

Conversation

@bashir347

Copy link
Copy Markdown

Closes #50

What

  • Add a global @media (prefers-reduced-motion: reduce) block in web/app/globals.css: scroll-behavior: auto and neutralised animations/transitions.
  • Root loading state (web/app/loading.tsx) shows visible "Loading…" text + role="status".
  • Skeleton blocks (activity/dashboard/history/statement) get role="status" + aria-label; decorative blocks aria-hidden.
  • Remove a pre-existing duplicate import in PayClient.tsx that broke npm run build.

Why a global rule

Covers every current/future animation in one place; per-element motion-reduce: utilities would miss decorative transitions.

Verification

  • npm run lint and npm run build pass in web/.
  • DevTools > Rendering > Emulate "prefers-reduced-motion: reduce": nav no longer scrolls smoothly, spinner/skeletons do not animate, loading text still shown. Without emulation, behaviour is unchanged.

Co-authored-by: traeagent <traeagent@users.noreply.github.com>
@vercel

vercel Bot commented Nov 28, 2026

Copy link
Copy Markdown

@bashir347 is attempting to deploy a commit to the yormee-103's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

Respect prefers-reduced-motion (smooth scroll, spinners, skeleton pulses)

1 participant