[wp-trac] [WordPress Trac] #54260: Add accessible labels to pagination links
WordPress Trac
noreply at wordpress.org
Tue Sep 24 15:42:49 UTC 2024
#54260: Add accessible labels to pagination links
---------------------------+----------------------------
Reporter: michaelbourne | Owner: joedolson
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: accessibility
---------------------------+----------------------------
Comment (by joedolson):
On discussion, we're leaning towards changing the `aria-label` on the
`nav` element to "Posts pagination" to provide the context here. The
options for changing the link text themselves are already sufficient, so
it doesn't make sense to add additional options there.
Adding a filter to allow extenders to modify these arguments does make
sense to me, though - it would be nice to be able to change how a theme
presents these links without needing to extend a child of every template
using it.
You can already do that using the `paginate_links_output` filter, but it's
labor intensive, since that requires you to either parse the HTML or
rebuild it; filtering the arguments is much better for just tweaking how
it works.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54260#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list