Repository navigation
feat(playground): add accessibility and keyboard test coverage - #232
Merged
truthixify merged 1 commit intoNov 23, 2026
Merged
truthixify merged 1 commit into
truthixify merged 1 commit into
Conversation
Label the cryptographic inputs, associate field errors with aria-invalid and aria-describedby, and announce results and copy actions through live regions. Move focus to the active panel heading on step changes, add reduced-motion and narrow-width reflow styles, and make the permalink and demo-key actions keyboard operable. Add axe and keyboard-only Playwright tests covering all four steps at 200% zoom and mobile width, with no serious or critical violations.
|
@Moonwalker-rgb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Closes #220
What changed
<label for>associations, and each field has an error slot wired througharia-describedby.aria-invalid, moves focus to it, and preserves the user's input. Global failures focus and announce the result region.role="status"/role="alert", and a shared polite live region announces copy actions and step resets.aria-current="step"andaria-controls, and activating a step moves focus to its panel heading. Panels are labelled regions.Tests
New
scripts/playground/tests/a11y.spec.tsadds 10 Playwright tests:aria-currenton step changes.aria-invalid, live announcement, and input preservation for derive and scan errors.No axe rules are excluded: the markup and palette were fixed instead. Any future exception should be documented here before it is added.
Verification
pnpm run test:playground— 12 passed (10 new + 2 existing smoke tests)npx tsc -p tsconfig.jsonpnpm install --frozen-lockfile --ignore-scriptsvalidates the new@axe-core/playwrightdev dependency