Make WordPress Core


Ignore:
Timestamp:
03/13/2019 11:36:45 PM (6 years ago)
Author:
afercia
Message:

Accessibility: Improve the password form buttons accessibility.

  • makes the "Cancel" button always visible: this allows to generate a new password also on small screens
  • moves focus back to the Generate Password button when closing the form
  • changes the password reset show/hide button from a clickable <span> element to a real <button> element
  • improves the CSS

Props janak007, afercia.
Fixes #42853.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r44756 r44895  
    619619            </span>
    620620            <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    621                 <span class="dashicons dashicons-hidden"></span>
     621                <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
    622622                <span class="text"><?php _e( 'Hide' ); ?></span>
    623623            </button>
    624624            <button type="button" class="button wp-cancel-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change' ); ?>">
     625                <span class="dashicons dashicons-no" aria-hidden="true"></span>
    625626                <span class="text"><?php _e( 'Cancel' ); ?></span>
    626627            </button>
Note: See TracChangeset for help on using the changeset viewer.