[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:29:25 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 | Keywords: has-screenshots
Focuses: ui, accessibility, javascript |
-------------------------------------------+-----------------------------
In the media views, there are a few places where "buttons groups" are
used. For example: the alignment setting, the video preload setting, the
"Insert from URL' media settings:
[[Image(http://cldup.com/7-ntuHXNvn.png)]]
The active button gets an `.active` CSS class, which changes the visual
and makes the button look active.
However, there's no semantic indication at all of the button state.
Assistive technologies and any other software won't have a clue what the
active setting value is.
The `aria-pressed` state would help in this case. Although, according to
the ARIA recommendation, it should be used on buttons that "require a full
press-and-release cycle to change their value", it's the only ARIA
attribute that can be used on buttons to communicate their active state.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48355>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list