Skip to content

Accessibility audit and quick wins (v32) - #45

Merged
maidulcu merged 2 commits into
mainfrom
feature/accessibility-baseline
Nov 10, 2026
Merged

maidulcu merged 2 commits into
mainfrom
feature/accessibility-baseline

Conversation

@maidulcu

@maidulcu maidulcu commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What

Focused accessibility audit (axe-core on every screen and pop-up, plus a manual pass at desktop and 812×375 ?touch=1) with the quick wins fixed. Full table and a schools-readable summary: docs/accessibility.md.

Fixed

  • Esc now closes Play Together, account, My worlds, What's new, report and the adventure gate
  • Pop-ups are named dialogs: focus moves in, Tab stays inside, focus returns to the opener (new src/a11y.js)
  • 3 px visible focus ring
  • HUD text gets a dark backing (hint, toast, armor, mode badge, level, hotbar numbers) → at least 4.5:1 over a white sky
  • 44 px touch targets on touch devices (buttons, tabs, fields, sliders, hotbar slots, ✕)
  • Selected colour chip and "Survival only" tag contrast
  • Hearts change shape (♥/♡); health, air and food are spoken; toasts/hints are live regions
  • prefers-reduced-motion: no fades, no quest-card zoom, softer damage flash, no confetti
  • Labels for placeholder-only fields; keyboard-scrollable quest and recipe lists

Not fixed (listed as follow-ups in the doc)

Pinch-zoom is disabled (axe meta-viewport), keyboard access to inventory/hotbar slots, text-size setting, screen-reader play, key remapping. #quest-tracker untouched (other session).

Checks

SMOKE_CHANNEL=chrome node tests/smoke.mjs passes. sw.js VERSION bumped to v32 and a11y.js precached. No What's new entry (nothing a player would read as a feature). Not deployed.

🤖 Generated with Claude Code

maidul-devops and others added 2 commits November 10, 2026 21:09
Esc closes menu pop-ups, focus moves into and back out of dialogs, visible focus ring,
44px touch targets on phones, HUD contrast backing, reduced motion, spoken health/air/food,
labels. Report in docs/accessibility.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@maidulcu
maidulcu merged commit 8369795 into main Nov 10, 2026
1 check passed
@maidulcu
maidulcu deleted the feature/accessibility-baseline branch November 10, 2026 16:12
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