Skip to content

Fix QuickGrid paginator page-change announcements - #70017

Merged
ilonatommy merged 2 commits into
mainfrom
snemeckayova/quickgrid-paginaton-page-change-announcements-
Oct 26, 2026
Merged

ilonatommy merged 2 commits into
mainfrom
snemeckayova/quickgrid-paginaton-page-change-announcements-

Conversation

@snemeckayova

@snemeckayova snemeckayova commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

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" and aria-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.

@github-actions github-actions Bot added the area-blazor Includes: Blazor, Razor Components label Oct 23, 2026
@snemeckayova snemeckayova self-assigned this Oct 23, 2026
@snemeckayova
snemeckayova marked this pull request as ready for review October 26, 2026 07:52
@snemeckayova
snemeckayova requested a review from a team as a code owner October 26, 2026 07:53
Copilot AI balanced review requested due to automatic review settings October 26, 2026 07:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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" and aria-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 dariatiurina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your work! ❤️

@ilonatommy
ilonatommy enabled auto-merge (squash) October 26, 2026 08:18
@ilonatommy
ilonatommy merged commit 766e225 into main Oct 26, 2026
33 checks passed
@ilonatommy
ilonatommy deleted the snemeckayova/quickgrid-paginaton-page-change-announcements- branch October 26, 2026 12:44
@github-actions

Copy link
Copy Markdown
Contributor

✅ 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

  • Conceptual article: Not required — Accessibility markup fix in QuickGrid paginator; no new API, option, or default.
  • Migration guidance: Not required — No user action needed when upgrading.
  • Breaking change: Not required — No compatibility impact; visuals and pagination behavior unchanged.

@ilonatommy

Copy link
Copy Markdown
Member

/backport to release/11.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 4, 2026
wtgodbe pushed a commit that referenced this pull request Nov 6, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — b50da3a9 Deployed Oct 26, 2026 by ilonatommy via conclusion #102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components feature-accessibility This issue has accessibility impact feature-blazor-quickgrid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants