Make WordPress Core

Changeset 27119 for trunk


Ignore:
Timestamp:
02/07/2014 05:32:31 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Use .screen-reader-text class instead of an alt attribute for overlay button labels on Themes screen.

props bramd.
fixes #26603 for trunk.

File:
1 edited

Legend:

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

    r27012 r27119  
    313313    <div class="theme-wrap">
    314314        <div class="theme-header">
    315             <button alt="<?php _e( 'Show previous theme' ); ?>" class="left dashicons dashicons-no"></button>
    316             <button alt="<?php _e( 'Show next theme' ); ?>" class="right dashicons dashicons-no"></button>
    317             <button alt="<?php _e( 'Close overlay' ); ?>" class="close dashicons dashicons-no"></button>
     315            <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
     316            <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
     317            <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close overlay' ); ?></span></button>
    318318        </div>
    319319        <div class="theme-about">
Note: See TracChangeset for help on using the changeset viewer.