a11y(slippage): announce updates - #715
Merged
mikewheeleer merged 2 commits intoJul 30, 2026
Merged
Conversation
Add a polite ARIA live region to announce slippage (quote) success and failure results to screen readers, with a 300 ms debounce to prevent spamming during rapid successive requests. Closes StableRoute-Org#659
Fabluchy
force-pushed
the
a11y/slippage-91-live
branch
from
July 30, 2026 13:40
3b0c04b to
bbd1af6
Compare
Fix Tooltip prop mismatch in Slippage.tsx (status/message -> content). Wrap onSubmit in useCallback and add announce to executeQuoteRequest deps in Client.tsx.
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.
What
Add a polite ARIA live region to announce slippage (quote) success and failure results to screen readers, with a 300 ms debounce to prevent spamming during rapid successive requests.
Changes
src/app/quote/Client.tsx: AddedslippageAnnouncementstate and a visually hidden<div aria-live="polite" aria-atomic="true">live region that announces quote results to screen readers. Debounced at 300ms to avoid spamming on rapid updates. Cleared on each new form submission.src/app/quote/page.test.tsx: Added 4 new tests covering success announcement, failure announcement, clearing on new submission, and single live region assertion. Fixed 3 pre-existing tests to use scoped queries.Test results
Full suite: 1204 tests, 71 suites — all pass
Edge cases covered
Closes #659