[wp-trac] [WordPress Trac] #48355: Media: add semantic indication for the buttons group active state
WordPress Trac
noreply at wordpress.org
Thu Oct 17 13:33:42 UTC 2019
#48355: Media: add semantic indication for the buttons group active state
-------------------------------------+-------------------------------------
Reporter: afercia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-screenshots has- | Focuses: ui, accessibility,
patch | javascript
-------------------------------------+-------------------------------------
Changes (by afercia):
* keywords: has-screenshots => has-screenshots has-patch
Comment:
[attachment:"48355.diff"] adds the `aria-pressed` attribute to the media
buttons group. This way, buttons in a group are announced as "toggle
button" (the announcement may vary depending on the screen reader):
[[Image(http://cldup.com/VX_ci-Vie0.png)]]
And the active button is announced as "selected":
[[Image(http://cldup.com/jCSfblLfef.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48355#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list