WordPress.org

Make WordPress Core

Changeset 27875


Ignore:
Timestamp:
03/31/2014 08:51:06 PM (8 years ago)
Author:
nacin
Message:

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

Merges [27119] to the 3.8 branch.

props bramd.
fixes #26603.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

  • branches/3.8/src/wp-admin/themes.php

    r27013 r27875  
    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.