Make WordPress Core


Ignore:
Timestamp:
04/29/2018 05:03:56 PM (4 years ago)
Author:
afercia
Message:

Accessibility: Improve the Themes Installer navigation buttons accessibility.

  • really disables buttons when they look disabled (when navigation is at the first or last theme)
  • when navigation is at the first or last theme, moves focus to the other navigation button, to avoid a focus loss
  • improves the buttons visually hidden accessibility text

Props walbo, afercia.
Fixes #36627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/theme-install.php

    r42875 r43020  
    310310        <div class="wp-full-overlay-header">
    311311            <button class="close-full-overlay"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button>
    312             <button class="previous-theme"><span class="screen-reader-text"><?php _ex( 'Previous', 'Button label for a theme' ); ?></span></button>
    313             <button class="next-theme"><span class="screen-reader-text"><?php _ex( 'Next', 'Button label for a theme' ); ?></span></button>
     312            <button class="previous-theme"><span class="screen-reader-text"><?php _e( 'Previous theme' ); ?></span></button>
     313            <button class="next-theme"><span class="screen-reader-text"><?php _e( 'Next theme' ); ?></span></button>
    314314            <# if ( data.installed ) { #>
    315315                <a class="button button-primary activate" href="{{ data.activate_url }}"><?php _e( 'Activate' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.