[wp-trac] [WordPress Trac] #54260: Add accessible labels to pagination links

WordPress Trac noreply at wordpress.org
Wed Oct 20 22:56:39 UTC 2021


#54260: Add accessible labels to pagination links
---------------------------+------------------------------
 Reporter:  michaelbourne  |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  5.8.1
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  accessibility
---------------------------+------------------------------

Comment (by sabernhardt):

 Hi, and thanks for the report!

 In ticket:24709, the `before_page_number` and `after_page_number`
 arguments were created so themes could add non-visual text to each of the
 page links.

 [https://github.com/WordPress/wordpress-
 develop/blob/d428a5b632f5fd927828f2b4294a16f884e2c8b8/src/wp-
 content/themes/twentytwentyone/inc/template-tags.php#L225-L256 Twenty
 Twenty-One example]

 If ARIA labels are included automatically, they should not override the
 context provided in these two arguments. (It might be worth using the
 label attributes as a fallback.)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54260#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list