Skip to content
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

A role specifically for pagination #1669

Closed
prlbr opened this issue Dec 25, 2021 · 4 comments
Closed

A role specifically for pagination #1669

prlbr opened this issue Dec 25, 2021 · 4 comments

Comments

@prlbr
Copy link

prlbr commented Dec 25, 2021

While preparing a pagination feature for the search results of my search module I discovered that accessibility guides consistently recommend or demand wrapping the links/buttons in a HTML <nav> element with aria-label="pagination".

However, my search module can be used on websites in arbitrary human languages. This means that I or a community effort would have to translate aria-label="pagination" for numerous languages. Any other developer will have to do the same. And honestly I didn't even know how to translate “pagination” into my own mother tongue before looking that up.

Since pagination is such a typical feature of websites I propose introducing a pagination role, which screen readers could announce in whatever language their user desires. This would be in analogy to the roles search and searchbox which I already use in my search module.

@Malvoz
Copy link

Malvoz commented Jan 3, 2022

There's a related WICG discourse thread: https://discourse.wicg.io/t/nav-type-attribute-proposal/2241.

@jnurthen
Copy link
Member

jnurthen commented Jan 6, 2022

Closing at this time. Please follow up on the WICG thread referenced above and reopen once there is consensus.

@jnurthen jnurthen closed this as completed Jan 6, 2022
@prlbr
Copy link
Author

prlbr commented Jan 7, 2022

Please follow up on the WICG thread referenced above and reopen once there is consensus.

I won't. The WICG thread has been inactive for over 4 years and is/was a significantly broader proposal than mine here. I have no interest in getting involved with it. No offense.

@jnurthen
Copy link
Member

jnurthen commented Jan 7, 2022

@prlbr totally understand but adding a new role is a considerable ask.

The consensus in the linked thread seemed to be moving towards this being an attribute of a nav rather than its own role. I'd be much more open to this - we are already fighting role overload and don't want to add even more without considerable benefit.

Another approach could be making the dpub doc-pagelist role more widely supported by AT - this would seem to be exactly the concept you are needing https://www.w3.org/TR/dpub-aria-1.0/#doc-pagelist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants