[wp-trac] [WordPress Trac] #50561: Links Widget display: Image alt text and link name are redundant for screen readers

WordPress Trac noreply at wordpress.org
Mon Jul 6 21:32:36 UTC 2020


#50561: Links Widget display: Image alt text and link name are redundant for screen
readers
-------------------------+------------------------------
 Reporter:  eatingrules  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Widgets      |     Version:  trunk
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |     Focuses:  accessibility
-------------------------+------------------------------
Changes (by eatingrules):

 * keywords:   => has-patch


Comment:

 After discussing with a couple of folks, it seems that adding `aria-
 hidden="true"` to the <img> tag is the simplest and cleanest solution.
 This way a screen reader will simply skip the image, and the duplicate alt
 text isn't an issue.

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


More information about the wp-trac mailing list