[wp-trac] [WordPress Trac] #46124: Allow setting custom image alt text in custom header image

WordPress Trac noreply at wordpress.org
Fri Aug 30 14:24:08 UTC 2019


#46124: Allow setting custom image alt text in custom header image
-------------------------------------+----------------------------
 Reporter:  webmandesign             |       Owner:  audrasjb
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  5.3
Component:  Media                    |     Version:  5.0.3
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  accessibility
-------------------------------------+----------------------------
Changes (by afercia):

 * keywords:  has-patch needs-refresh 2nd-opinion needs-design-feedback =>
     has-patch needs-refresh


Comment:

 Discussed during today's accessibility bug-scrub. Agree the UI is
 misleading users because:
 - when inserting the header image, the UI shows the alt text field with
 the text set by the user
 - but then, the alt text that is actually printed out in the markup is the
 site name

 Considered two options:
 - just let the header image take the alt text from the media library: no
 need for a new UI
 - the above + a new UI to override the alt text from the Media Library so
 that users have the ability to set a custom alt text without changing the
 “global” one

 The first option would be a good first step and doesn't need design.

 The second option could be implemented at a later stage and would need
 design for a new UI. Will split in a separate ticket so going to remove
 the `needs-design-feedback` keyword.

 Also, users should be allowed to set an empty alt text `alt=""`. Not sure
 there should be a fallback to the site name.

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


More information about the wp-trac mailing list