Skip to content

Give QuickGrid paginator navigation an accessible name - #70002

Merged
ilonatommy merged 5 commits into
mainfrom
snemeckayova/paginator-navigation-accessible-name
Oct 29, 2026
Merged

ilonatommy merged 5 commits into
mainfrom
snemeckayova/paginator-navigation-accessible-name

Conversation

@snemeckayova

Copy link
Copy Markdown
Contributor

Name Paginator navigation landmarks and support application-supplied names.

Description

Paginator currently renders a navigation landmark without an accessible name,
making it difficult to distinguish from other navigation regions on a page.

This change:

  • Adds the default accessible name "Pagination" to the shared navigation element.
  • Adds an AdditionalAttributes parameter so applications can supply a custom
    aria-label or aria-labelledby, including localized names or names that
    distinguish paginators for different grids.
  • Documents the new parameter and records it in PublicAPI.Unshipped.txt.
  • Adds browser regression coverage for default names, custom summaries,
    aria-label overrides, and aria-labelledby in both link and compatibility
    button modes, plus default naming in static server rendering.

Pagination behavior, control labels, styling, and layout remain unchanged.

Fixes dotnet/aspnetcore-scenario-tests#152

@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 08:04
@snemeckayova
snemeckayova requested a review from a team as a code owner October 26, 2026 08:04
@snemeckayova
snemeckayova requested review from dariatiurina and ilonatommy and a balanced review from Copilot October 26, 2026 08:04

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

No blocking defects were identified, but browser validation remains unverified and the available review evidence does not establish readiness for automated approval.

No open issues 🎉

What changed in this PR

This PR gives QuickGrid paginator navigation landmarks a default accessible name and lets applications provide localized or grid-specific names.

Changes:

  • Adds the default navigation label “Pagination” and an AdditionalAttributes parameter for application overrides.
  • Documents and records the new public parameter.
  • Adds accessible-name assertions for link navigation, compatibility button mode, and static server rendering.
File Description
src/​Components/​test/​testassets/​Components.TestServer/​RazorComponents/​Pages/​QuickGrid/​QuickGridInteractive.razor Adds custom-summary and application-supplied naming scenarios.
src/​Components/​test/​E2ETest/​Tests/​QuickGridNoInteractivityTest.cs Checks the default accessible name in static rendering.
src/​Components/​test/​E2ETest/​Tests/​QuickGridInteractiveTest.cs Checks default and overridden names in link mode.
src/​Components/​test/​E2ETest/​Tests/​QuickGridInteractiveCompatTest.cs Checks the same naming scenarios in compatibility mode.
src/​Components/​QuickGrid/​Microsoft.AspNetCore.Components.QuickGrid/​src/​PublicAPI.Unshipped.txt Records the new parameter’s public accessors.
src/​Components/​QuickGrid/​Microsoft.AspNetCore.Components.QuickGrid/​src/​Pagination/​Paginator.razor.cs Declares and documents AdditionalAttributes.
src/​Components/​QuickGrid/​Microsoft.AspNetCore.Components.QuickGrid/​src/​Pagination/​Paginator.razor Applies the default label and supplied attributes to the navigation element.

Review effort: Balanced

@dotnet dotnet deleted a comment from github-actions Bot Oct 26, 2026
@dotnet dotnet deleted a comment from github-actions Bot Oct 26, 2026
snemeckayova and others added 3 commits October 27, 2026 11:04
Consolidate naming scenarios into one test per navigation mode and reuse the existing paginator for heading-based naming via a test button.

Co-authored-by: Copilot App <[email protected]>
Preserve accessible-name coverage alongside upstream page-change announcements, custom summary and interactive readiness.
@ilonatommy ilonatommy added feature-accessibility This issue has accessibility impact feature-blazor-quickgrid labels Oct 29, 2026
@ilonatommy
ilonatommy merged commit 7621c1a into main Oct 29, 2026
45 of 46 checks passed
@ilonatommy
ilonatommy deleted the snemeckayova/paginator-navigation-accessible-name branch October 29, 2026 16:38
@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)

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Documentation appears necessary, but a draft PR could not be created.

Confidence that documentation is needed: 85%

Drafted a docs update to the QuickGrid article describing the Paginator default accessible name and how to override it via aria-label or aria-labelledby (12.0 scoped).

Documentation surfaces considered

  • Conceptual article: Required — New public Paginator.AdditionalAttributes (PublicAPI.Unshipped.txt) and default "Pagination" accessible name on the nav element.
  • Migration guidance: Not required — Additive; no upgrade action needed.
  • Breaking change: Not required — No incompatible change; additive parameter and an added default aria-label.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 94752d5c Deployed Oct 29, 2026 by ilonatommy via conclusion #124
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