WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/03/2019 12:09:31 PM (10 months ago)
Author:
afercia
Message:

Accessibility: Media: Add more headings in the Media Modal.

Headings are the predominant mechanism for screen reader users to find information in a page. They also help all users to better identify the main sections of user interfaces.

  • adds three new headings within the media modal
  • improves plural form translation for "item selected" by using wp.i18n
  • horizontally centers the media modal menu in the responsive view

Props kjellr, karmatosed, melchoyce, afercia.
See #47149.
Fixes #47610.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r46373 r46375  
    179179    <script type="text/html" id="tmpl-media-frame">
    180180        <div class="media-frame-title" id="media-frame-title"></div>
     181        <h2 class="media-frame-menu-heading"><?php _e( 'Media Types' ); ?></h2>
    181182        <button type="button" class="button button-link media-frame-menu-toggle" aria-expanded="false">
    182183            <?php _e( 'Media Types' ); ?>
     
    188189            <div class="media-frame-content"></div>
    189190        </div>
     191        <h2 class="media-frame-actions-heading screen-reader-text"><?php _e( 'Available actions' ); ?></h2>
    190192        <div class="media-frame-toolbar"></div>
    191193        <div class="media-frame-uploader"></div>
Note: See TracChangeset for help on using the changeset viewer.