Repository navigation
Label the auth forms, reach the upload box by keyboard, pause the site's demo clips - #396
Merged
Merged
Conversation
The sign-in, reset-password and must-change-password forms had each label beside its input with no htmlFor/id, so the inputs had no accessible name (a screen reader heard "edit text" for Name, Email and Password alike). Their error banners appeared silently. The new-project upload box hid its file input with display:none, so Tab never reached it. - Each label now has htmlFor and its input the matching id. - Login's banner is role="alert" for an error and "status" for a notice; must-change-password's the same; reset-password's always-rendered banner is a live region (assertive for an error, polite otherwise). - The upload input is sr-only, and the dashed box shows an outline while it has focus. ui-a11y-guards.test.ts reads the pages and checks each of these; the axe run in e2e/a11y.spec.ts covers signed-in screens only. Signed-off-by: dillonstreator <dillonstreator@gmail.com>
The hero, the clip strip and the feature tabs autoplay muted clips on a loop, and the tabs advance on their own; only prefers-reduced-motion stopped them (WCAG 2.2.2 asks for a pause control on anything that moves for more than five seconds). loop-video.tsx keeps one per-page "paused" switch next to the reduced- motion query, and useReducedMotion() answers true for either, so every LoopVideo and the tabs' auto-advance stop through the paths they already had. MotionToggle (a pressed/unpressed button, the same Pause and Play icons as the pipeline film) sits under the hero, beside the clip strip's source and under the feature panel; pausing one pauses all. Russian strings added; the pseudo-locale fills itself. ui-a11y-guards.test.ts checks the switch reaches the hook and that each section renders the button. Signed-off-by: dillonstreator <dillonstreator@gmail.com>
Signed-off-by: dillonstreator <dillonstreator@gmail.com>
The auth forms' eight labels now name their inputs. Signed-off-by: dillonstreator <dillonstreator@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
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.
Fixes A11Y-001, A11Y-003, A11Y-005 and part of A11Y-006 (the auth error banners) from the 2026-11-28 audit. Companion to #393, #394 and #395. The branches are independent.
What was wrong
<label>sat next to its input with nohtmlFor/id. The inputs had no accessible name, so Name, Email and Password all read as an unnamed edit field.display: none, so Tab never reached it.prefers-reduced-motionstopped them, and there was no pause control (WCAG 2.2.2).What changed
Login.tsx,ResetPassword.tsx,MustChangePassword.tsx:htmlFor/idpair.role="alert"for an error androle="status"otherwise.NewProject.tsx: the file input issr-onlyinstead ofhidden, and the dashed box shows an accent outline while the input has focus.website/components/loop-video.tsx:useReducedMotion()now returns true for reduced motion or paused, so everyLoopVideoand the tabs' auto-advance stop through the code paths they already had.MotionToggleis a pressed/unpressed button using the Pause and Play icons from the pipeline film. It is placed under the hero, beside the clip strip's source and under the feature panel. Pausing any one pauses all of them.noLabelWithoutControlbaseline drops from 21 to 13.How it was tested
apps/server/test/ui-a11y-guards.test.tsreads the pages and checks that:htmlFormatches the next input'sid;sr-onlywith a focus outline;useReducedMotionand every section renders the toggle.The web app has no component test runner, and the axe e2e (
e2e/a11y.spec.ts) needs a running stack and covers signed-in screens only, so these checks read the source. They fail onorigin/main.Local gate, with
ANTHROPIC_*unset:pnpm -r typecheck,biome ci(0 errors),pnpm guards,docs:check, andi18n:checkfor server and web.pnpm i18n:check,pnpm typecheckandpnpm buildpass.origin/mainon this machine because of the local ffmpeg build.Not run here: the Playwright axe suite, because it needs the app running.
Needs manual verification
/login: each field is announced with its label, and a wrong password is announced./new: Tab reaches the upload box, its outline shows, and Space/Enter opens the file picker.pnpm --filter @reelsaw/web e2eagainst a stack to confirm the axe baseline is unchanged.For the reviewer to decide
Left out
ProgressBarrole="progressbar"needs an accessible name at every call site, or axe'saria-progressbar-namefails. A live region for pipeline stage completion needs copy decisions. I left both.