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

WordPress Trac noreply at wordpress.org
Fri Oct 28 13:08:14 UTC 2022


#54260: Add accessible labels to pagination links
---------------------------+-----------------------------
 Reporter:  michaelbourne  |       Owner:  (none)
     Type:  enhancement    |      Status:  reopened
 Priority:  normal         |   Milestone:  Future Release
Component:  General        |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  accessibility
---------------------------+-----------------------------

Comment (by afercia):

 Worth reminding that providing an accessible name (via the aria-label)
 that is different and, in a way, unexpected compared to the visible text
 does impact speech recognition users. For example:

 - As a sighted speech recognition user, I see a link with text `2`.
 - Based on that, I'd try to issue a voice command like `Click 2`.
 - The command would likely fail because the link accessible name (the name
 the speech recognition software perceives) would be `Page 2`.

 In general, hidden labels/text (whether it's an aria-label or visually
 hidden text) may help blind screen reader users but they may be misleading
 or even an actual barrier for sighted users. It's always best to show
 visible text. If more context is needed, we should just add ''visible''
 text.

 Reference:
 **Success Criterion 2.5.3 Label in Name**
 https://www.w3.org/TR/WCAG21/#label-in-name

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


More information about the wp-trac mailing list