[wp-trac] [WordPress Trac] #43137: Media widgets: Improve the image and gallery previews accessibility
WordPress Trac
noreply at wordpress.org
Sun Jan 21 15:12:07 UTC 2018
#43137: Media widgets: Improve the image and gallery previews accessibility
---------------------------------------+------------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 4.9
Severity: normal | Resolution:
Keywords: has-screenshots has-patch | Focuses: accessibility
---------------------------------------+------------------------------
Changes (by afercia):
* keywords: has-screenshots => has-screenshots has-patch
Comment:
[attachment:43137.diff] is a first pass:
- refactors the previews templates
- when the images have no alternative text, uses an aria-label attribute
`Current image has no alternative text. The file name is: %s`
- makes the gallery preview an unordered list
- when the gallery has more than 6 images, hides the last image to
assistive technologies with `aria-hidden="true"` and expands the "more
images" text with an aria-label attribute. Instead of, for example "+3"
assistive technologies will announce "Additional images added to this
gallery: 3"
- removes an unused `describedById` variable in the gallery template
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43137#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list