WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/10/2020 06:16:06 AM (17 months 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-plugins-list-table.php

    r48377 r48418  
    10771077
    10781078                    $html[] = sprintf(
    1079                         '<a href="%s" class="toggle-auto-update" data-wp-action="%s">',
     1079                        '<a href="%s" class="toggle-auto-update aria-button-if-js" data-wp-action="%s">',
    10801080                        wp_nonce_url( $url, 'updates' ),
    10811081                        $action
Note: See TracChangeset for help on using the changeset viewer.