Skip to content

fix(material-experimental/mdc-paginator): add screen reader announcement for current range when navigating between pages #23285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/material-experimental/mdc-paginator/paginator.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</div>

<div class="mat-mdc-paginator-range-actions">
<div class="mat-mdc-paginator-range-label">
<div class="mat-mdc-paginator-range-label" aria-live="polite">
Copy link
Member

Choose a reason for hiding this comment

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

One question here: what would happen if the user landed on a page with a bunch of paginators? Would their range labels all be queued up and announced on init or is this only going to fire when the text changes?

Copy link
Member

Choose a reason for hiding this comment

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

With the native aria-live they should be queued up.

{{_intl.getRangeLabel(pageIndex, pageSize, length)}}
</div>

Expand Down