Make WordPress Core


Ignore:
Timestamp:
02/21/2018 11:03:57 PM (7 years ago)
Author:
afercia
Message:

Accessibility: Change the terms "Quick Edit" link to a button.

For better accessibility and semantics, user interface controls that perform an
action should be buttons. Links should exclusively be used for navigation.
See #38677 / [42725].

Fixes #43382.

File:
1 edited

Legend:

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

    r42565 r42727  
    456456            );
    457457            $actions['inline hide-if-no-js'] = sprintf(
    458                 '<a href="#" class="editinline aria-button-if-js" aria-label="%s">%s</a>',
     458                '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>',
    459459                /* translators: %s: taxonomy term name */
    460460                esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $tag->name ) ),
Note: See TracChangeset for help on using the changeset viewer.