Repository navigation
Give QuickGrid paginator navigation an accessible name - #70002
Conversation
There was a problem hiding this comment.
🔵 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
AdditionalAttributesparameter 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
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]>
…ttps://github.com/dotnet/aspnetcore into snemeckayova/paginator-navigation-accessible-name
Preserve accessible-name coverage alongside upstream page-change announcements, custom summary and interactive readiness.
|
/backport to release/11.0 |
|
Started backporting to |
|
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
|
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:
aria-label or aria-labelledby, including localized names or names that
distinguish paginators for different grids.
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