Repository navigation
fix(web): reduced motion, skip link and live campaign status (#35, #4, #33) - #167
Open
RupeshMaster wants to merge 4 commits into
Open
RupeshMaster wants to merge 4 commits into
RupeshMaster wants to merge 4 commits into
Conversation
Under `prefers-reduced-motion: reduce`, animations and transitions finish immediately and smooth scrolling is turned off. This covers the landing orbs, reveal/fade-up entrances, skeleton shimmer, pulse dots and rings, the story pulse, hover/sidebar transitions and in-page anchor scrolling. Focus outlines are not animated and are unchanged. Closes CodewithJha#35
The landing's first focusable element is now a "Skip to content" link, visually hidden until it receives keyboard focus, that jumps past the sticky nav to the existing <main id="top">. <main> takes tabindex=-1 so focus moves with the jump. No layout or brand changes. Closes CodewithJha#4
The campaign page updated its running / finished / violation state visually only. A visually hidden role="status" aria-live="polite" region in the header now carries the same state as text, so assistive technology announces it when the campaign finishes or finds a break. No visual change. Closes CodewithJha#33
|
@RupeshMaster is attempting to deploy a commit to the priyanshu's projects Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
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.
Summary
Three small Hosted UI accessibility fixes, one commit each. Closes #35, closes #4, closes #33. No layout, spacing or brand changes.
@media (prefers-reduced-motion: reduce)block at the end ofglobals.cssmakes animations and transitions finish immediately and turns smooth scrolling off (html,.landing). It applies to every element, so it covers the landing orbs (orb-drift),.reveal/fade-upentrances,skeleton-shimmer,pulse-ringand pulse dots,story-pulse,preview-settle, and hover / sidebar transitions. Focus outlines are not animated and are unchanged.<main id="top">.<main>takestabIndex={-1}so focus moves with the jump, and the outline that would wrap the whole page on that programmatic focus is suppressed.role="status" aria-live="polite"region with the same state the chips show: "Campaign running: searching for a break." → "Campaign finished: break found, verified violation." (or "Campaign status: Completed." / "Failed.").#35 and #33 are assigned to @CodewithJha with no activity since September, so I went ahead; if you already have work in progress on them, feel free to close this. Happy to split this into three PRs if you prefer.
Type of change
Checklist
Fixes #N) or Discussion when applicableuv run pytest tests/unit -q) — none added; the three behaviors were checked in a browser (see test plan)Test plan
uv run --locked ruff check→ all checks passeduv run pytest tests/unit tests/integration tests/reliability -q→ 848 passed (no Python changes). Python 3.12 only; 3.11 is left for CI.examples/openai_support_agent,mutiny --help,mutiny init,mutiny runwithMUTINY_SAMPLE_OFFLINE=1and emptyOPENAI_API_KEY/FEATHERLESS_API_KEY→ violation found, regression saved.npm ci,npm run lint,npx tsc --noEmit,npm testandnpm run build. Run on Node 26, not CI's Node 20.tests/unit/test_package_release.pypassed as part of the unit run;./scripts/verify_release_artifacts.shnot run.Manual checks, measured in headless Chromium against a local API and
next dev:#top, focus lands onMAIN#topwith no outline; the next Tab stop is the first control inside<main>.prefers-reduced-motion: no-preference,.landing-orbrunsorb-driftfor 12s infinitely,.reveal0.6s,.btntransitions 0.2s, scroll-behavior issmooth. Withreduce: durations are 1e-05s, iteration count 1, scroll-behaviorauto, and.revealcontent ends fully visible (opacity 1).Not done: a pass with a real screen reader (VoiceOver / NVDA), and no automated web tests were added for these three.
Notes