[Pagination]: improve order of select labeling for screen readers #16538
Labels
component: pagination
proposal: open
This request has gone through triaging. We're determining whether we take this on or not.
role: design ✏️
role: dev 🤖
type: a11y ♿
type: enhancement 💡
Acceptance criteria
From Michael Gower as part of omnibus website doc issue #3238
Pagination a11y issues
Labeling
Other dev improvements to consider
There are more holistic changes that could be made, but this would be a pretty easy one to do.
aria-describedby
is more elegant and also better supports internationalization.<label for="cds-pagination-select-id-5-right" class="cds--label cdes--visually hidden">Page number, of 6 pages</label>
<span class"cds--pagination__text">of 6 pages</span>
The speech output with Jaws is much smoother, IMO.
I've made a small recording of current and improved screen reader behavior. If combined with the above suggestion on labeling changes, this would result in real improvement.
The chunk of text after the first input ("1 to 10 of 103 items" in the image above) should be tested as a live region. The advantages of this: when a user incremented the prior or next pages, or when a user changed the number of records shown OR potentially when the filtering was altered, this would be announced by the screen reader. Could be VERY useful.
The text was updated successfully, but these errors were encountered: