Unify and fix accessibility of the various Pagination components #58133
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
Description
The editor uses a few user interfaces where pagination buttons are in place. For example:
While theoretically these pagination are very similar and should work in a very similar way, they are all different and use different components.
From an accessibility perspective, there are a few issues. Most notably:
I'd tend to think these pagination tools should work and look the same way throughout the whole user interface.
It's also a good opportunity to fix the most relevant accessibility issuses and abstract some code.
Screenshots:
Dataviews pagination:
Patterns explorer pagination:
Global styles revisions pagination:
NEW: Pages pagination: note: as far as I can tell this is the only case where the buttons do not trigger a focus loss because they use
arira-disabled
instead ofdisabled
. Tooltips work as well. The implementation of the current page indicator is arguable though as it's a mix of translatable strings and labeling / value of the<select>
element.Step-by-step reproduction instructions
disabled
HTML attribute.Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: