Open afercia opened 7 months ago
Noting that the Font Library modal also includes a pagination implementation, also discussed in https://github.com/WordPress/gutenberg/pull/59591.
Related to this issue, I suggested adding the Pagination
component.
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