Skip to content

UI: add focus management, dynamic accessible labels, and controls links to guided exercise buttons (#212) - #213

Draft
Swissystem7 wants to merge 1 commit into
masterfrom
factory/laptop-agy-exercise-a11y
Draft

Swissystem7 wants to merge 1 commit into
masterfrom
factory/laptop-agy-exercise-a11y

Conversation

@Swissystem7

Copy link
Copy Markdown
Owner

Closes #212

Summary of Changes

  • Focus Handoff: Clicking #applyHint disables itself and now hands keyboard focus to #resetExercise; clicking #resetExercise hands focus back to #applyHint. Neither click drops focus to <body> anymore.
  • Dynamic Accessible Labels: aria-label on both buttons is synchronized with title on every render (hint applied / default / custom weights), matching the pattern used in #radar and #fragility.
  • Accessible Controls & Description: Both buttons declare aria-controls="exerciseSummary exerciseChecks" and aria-describedby="exerciseSummary".
  • Checks List Name: #exerciseChecks gets an aria-label so the self-check list is announced with a name.
  • No-Data State: When no exercise data is available for the active layer, both disabled buttons receive explicit titles and labels instead of keeping stale text.
  • Test Coverage: New test in test/demo.test.js asserts the markup, label sync, no-data titles, and that each handler focuses its counterpart. 186 tests passing; 56 lines changed, within the 400-line PR budget.

🤖 Generated with Claude Code

…ks to guided exercise buttons (#212)

Closes #212

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

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.

UI: add focus management, dynamic accessible labels, and controls links to guided exercise buttons

2 participants