Skip to content

Announce help updates through an ARIA live region - #721

Open
DeveloperEmmy wants to merge 6 commits into
StableRoute-Org:mainfrom
DeveloperEmmy:main
Open

Announce help updates through an ARIA live region#721
DeveloperEmmy wants to merge 6 commits into
StableRoute-Org:mainfrom
DeveloperEmmy:main

Conversation

@DeveloperEmmy

@DeveloperEmmy DeveloperEmmy commented Jul 31, 2026

Copy link
Copy Markdown

Closes #677

Closes #674

Closes #665

Closes #614

Summary

Related Issue

Type Of Change

  • Bug fix
  • Feature
  • Documentation
  • Refactor or maintenance

Testing

  • npm run lint
  • npm test
  • npm run build

Contributor Checklist

  • Branch name follows type/area-slug where possible.
  • Tests were added or updated for new UI or behaviour.
  • Documentation was updated for visible or API-facing changes.
  • Accessibility was considered according to the Accessibility Conformance Statement (keyboard, screen-reader, color contrast, and reduced motion).
  • No unrelated CI workflow changes are included.

Notes For Reviewers


💬 Join the StableRoute Discord for questions, reviews, and faster merges.

DeveloperEmmy and others added 6 commits July 30, 2026 11:03
Introduce a short delay to form announcements and make failure messages explicit. Pass 150ms to useFormAnnouncement so in-progress text is announced after a small debounce, and announce a failure message when requests fail. Improve accessibility of the live region by adding role="status" and aria-atomic="true". Update tests to use fake timers, advance the clock, adjust the live-region selector to target the form, rename the failure test to reflect the new behavior, and add a new test that verifies rapid submissions coalesce into the latest announcement.
Replace repeated button clicks with fireEvent.submit on the form (via getAmountInput().closest('form')!) to more accurately simulate form submissions. Update the assertion to use getByRole('alert') and toHaveTextContent(/must differ/i) so the test verifies the accessible alert region instead of matching plain text. This clarifies intent and improves accessibility-focused test assertions; existing Request ID assertion remains unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant