Repository navigation
Fix QuickGrid paginator page-change announcements - #70017
ilonatommy merged 2 commits into
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Runtime evidence for browser focus retention and actual screen-reader announcements remains unavailable, so final human validation is needed.
No open issues 🎉
What changed in this PR
This PR makes QuickGrid paginator page-status changes available for polite, complete screen-reader announcements without intentionally changing focus or pagination behavior.
Changes:
- Adds
aria-live="polite"andaria-atomic="true"to both anchor- and button-based page-status regions. - Adds browser tests for status updates, retained focus, and default/custom summaries.
- Adds an interactivity-ready marker and custom summary to the shared test page.
| File | Description |
|---|---|
| src/Components/test/testassets/Components.TestServer/RazorComponents/Pages/QuickGrid/QuickGridInteractive.razor | Adds an interactivity marker and custom-summary scenario. |
| src/Components/test/E2ETest/Tests/QuickGridInteractiveTest.cs | Tests live-region attributes and focus retention with anchor navigation. |
| src/Components/test/E2ETest/Tests/QuickGridInteractiveCompatTest.cs | Tests equivalent behavior with button navigation. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Pagination/Paginator.razor | Adds polite, atomic live regions to both navigation variants. |
Review effort: Balanced
dariatiurina
left a comment
There was a problem hiding this comment.
Thank you for your work! ❤️
|
✅ No documentation PR was created. Confidence that documentation is needed: 8% No docs needed: bug fix adding aria-live/aria-atomic to paginator page status; no public API or documented behavior changes. Documentation surfaces considered
|
|
/backport to release/11.0 |
|
Started backporting to |
Co-authored-by: Soňa Nemečkayová <[email protected]>
Add polite, atomic announcements for QuickGrid paginator page changes.
Description
The Paginator updates its visible page status after navigation but does not notify screen readers of the change.
Add
aria-live="polite"andaria-atomic="true"to the page-status text so assistive technology can announce the complete updated status, such as “Page 2 of 3”, without moving keyboard focus.This applies to both anchor- and button-based navigation, including paginators with custom summaries. Visual appearance and pagination behavior remain unchanged.
Fixes dotnet/aspnetcore-scenario-tests#153.