[wp-trac] [WordPress Trac] #43137: Media widgets: Improve the image and gallery previews accessibility
WordPress Trac
noreply at wordpress.org
Sat Feb 23 18:31:11 UTC 2019
#43137: Media widgets: Improve the image and gallery previews accessibility
---------------------------------------+----------------------------
Reporter: afercia | Owner: afercia
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.2
Component: Widgets | Version: 4.9
Severity: normal | Resolution: fixed
Keywords: has-screenshots has-patch | Focuses: accessibility
---------------------------------------+----------------------------
Changes (by afercia):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"44767" 44767]:
{{{
#!CommitTicketReference repository="" revision="44767"
Accessibility: Improve the image and gallery widgets preview
accessibility.
In an authoring context, the image `alt` attribute purpose is different
from the one for the front end. For example, screen reader users need to
know what the selected image is, even when the original `alt` value is
empty.
This change introduces a new pattern for the `alt` text in an authoring
context:
- uses the `alt` text if not empty
- when there's no `alt` text, informs users the image has no alternative
text and provides a reference to the image filename
Also, makes the gallery media widget preview an unordered list to make
screen readers announce the number of images automatically.
Fixes #43137.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43137#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list