Make WordPress Core


Ignore:
Timestamp:
07/10/2020 06:16:06 AM (5 years ago)
Author:
whyisjake
Message:

Upgrade/Install: Use ARIA button class on plugin and theme auto-updates action links

According to the [accesability guidelines](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/accessibility/#semantics-for-controls), the control should be a link when JavaScript is not available and a button the rest of the time.

In addition, handlers were added for spacebar usage, and some changes to the a11y speak verbiage.

Fixes #50516.
Props ryokuhi, audrasjb, afercia, whyisjake/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php

    r48109 r48418  
    745745
    746746        $html[] = sprintf(
    747             '<a href="%s" class="toggle-auto-update" data-wp-action="%s">',
     747            '<a href="%s" class="toggle-auto-update aria-button-if-js" data-wp-action="%s">',
    748748            wp_nonce_url( $url, 'updates' ),
    749749            $action
Note: See TracChangeset for help on using the changeset viewer.