Make WordPress Core


Ignore:
Timestamp:
10/01/2017 01:47:29 PM (7 years ago)
Author:
afercia
Message:

Accessibility: Improve the Theme Details modal accessibility.

  • sets the modal content to role="document" to make screen readers switch back to browse mode
  • standardizes the Themes screen and Customizer modals interaction
  • Themes screen modal: sets initial focus on the modal overlay instead of the primary button, avoiding to "skip" content for keyboard and screen reader users

Fixes #42055.

File:
1 edited

Legend:

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

    r41648 r41658  
    633633    <script type="text/html" id="tmpl-customize-themes-details-view">
    634634        <div class="theme-backdrop"></div>
    635         <div class="theme-wrap wp-clearfix">
     635        <div class="theme-wrap wp-clearfix" role="document">
    636636            <div class="theme-header">
    637637                <button type="button" class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
Note: See TracChangeset for help on using the changeset viewer.