WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/09/2020 06:03:57 PM (5 months ago)
Author:
TimothyBlynJacobs
Message:

App Passwords: Further accessibility improvements.

  • Add a label to the readonly password input.
  • Handle focus loss after revoking app passwords.
  • Handle focus loss after dismissing notices.
  • Mark app name as aria-required.
  • Use aria-label for detailed revoke button text instead of title.
  • Use -1 for tabindex instead of 0.

Props alexstine, afercia, sabernhardt, audrasjb, joedolson, TimothyBlynJacobs.
Fixes #51580.

File:
1 edited

Legend:

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

    r49321 r49549  
    118118            array(
    119119                /* translators: %s: the application password's given name. */
    120                 'title' => sprintf( __( 'Revoke "%s"' ), $item['name'] ),
     120                'aria-label' => sprintf( __( 'Revoke "%s"' ), $item['name'] ),
    121121            )
    122122        );
     
    235235                case 'revoke':
    236236                    printf(
    237                         '<input type="submit" class="button delete" value="%1$s" title="%2$s">',
     237                        '<input type="submit" class="button delete" value="%1$s" aria-label="%2$s">',
    238238                        esc_attr( __( 'Revoke' ) ),
    239239                        /* translators: %s: the application password's given name. */
Note: See TracChangeset for help on using the changeset viewer.