[wp-trac] [WordPress Trac] #50516: Use ARIA button class on plugin and theme auto-updates action links
WordPress Trac
noreply at wordpress.org
Tue Jun 30 22:37:51 UTC 2020
#50516: Use ARIA button class on plugin and theme auto-updates action links
-----------------------------+-------------------------
Reporter: audrasjb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Upgrade/Install | Version:
Severity: normal | Keywords: needs-patch
Focuses: accessibility |
-----------------------------+-------------------------
This ticket is a follow-up to #50512 which raises 4 independent issues
related to plugin and theme auto-updates feature.
Props should go to @ryokuhi who summarized the issue.
----
Currently, Enable / Disable controls are links. According to the
[https://developer.wordpress.org/coding-standards/wordpress-coding-
standards/accessibility/#semantics-for-controls accessibility coding
standards (see the third row in the table)]:
- the control should be a link when JavaScript is not available and a
button the rest of the time.
According to the current implementation, instead:
- when JavaScript is off, the links work because they have a working href
attribute;
- when JavaScript is on, the links behave like buttons, but they’re still
perceived as links.
A partial solution would be to add the CSS class aria-button-if-js, that
adds a role=button for these cases; this doesn't make the link-as-button
work through spacebar as expected, though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50516>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list