Make WordPress Core


Ignore:
Timestamp:
04/06/2014 07:27:40 PM (13 years ago)
Author:
ocean90
Message:

Header images: Improve accessibility of Randomize buttons.

props ehg.
see #27598, #21785.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r27947 r27970  
    772772                <script type="text/template" id="tmpl-header-choice">
    773773                        <# if (data.random) { #>
    774 
    775                         <div class="placeholder random">
    776                                 <div class="inner">
    777                                         <button type="button"><span class="dashicons dashicons-randomize dice"></span>
    778                                         <# if ( data.type === 'uploaded' ) { #>
    779                                                 <?php _e( 'Randomize uploaded headers' ); ?>
    780                                         <# } else if ( data.type === 'default' ) { #>
    781                                                 <?php _e( 'Randomize suggested headers' ); ?>
    782                                         <# } #>
     774                                        <button type="button" class="button display-options random">
     775                                                <span class="dashicons dashicons-randomize dice"></span>
     776                                                <# if ( data.type === 'uploaded' ) { #>
     777                                                        <?php _e( 'Randomize uploaded headers' ); ?>
     778                                                <# } else if ( data.type === 'default' ) { #>
     779                                                        <?php _e( 'Randomize suggested headers' ); ?>
     780                                                <# } #>
    783781                                        </button>
    784                                 </div>
    785                         </div>
    786782
    787783                        <# } else { #>
Note: See TracChangeset for help on using the changeset viewer.