Make WordPress Core

Ticket #26603: 26603-1.patch

File 26603-1.patch, 1.0 KB (added by bramd, 12 years ago)

Label buttons using a hidden <span> instead of an alt attribute.

  • src/wp-admin/themes.php

     
    312312        <div class="theme-backdrop"></div>
    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">
    320320                        <div class="theme-screenshots">