Skip to content

Commit 5b7c8cf

Browse files
Use .screen-reader-text class instead of an alt attribute for overlay button labels on Themes screen.
props bramd. fixes #26603 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@27119 602fd350-edb4-49c9-b593-d223f7449a82
1 parent cb8654e commit 5b7c8cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/wp-admin/themes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@
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">

0 commit comments

Comments
 (0)