WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/10/2016 09:21:09 PM (4 years ago)
Author:
afercia
Message:

Accessibility: Customizer, make the menu items "clear search results" a button.

For Web standards and accessibility, always prefer native controls instead of
span or div elements.

Fixes #36903.

File:
1 edited

Legend:

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

    r37491 r37679  
    762762                    <p class="screen-reader-text" id="menu-items-search-desc"><?php _e( 'The search results will be updated as you type.' ); ?></p>
    763763                    <span class="spinner"></span>
    764                     <span class="clear-results"><span class="screen-reader-text"><?php _e( 'Clear Results' ); ?></span></span>
    765764                </div>
     765                <button type="button" class="clear-results"><span class="screen-reader-text"><?php _e( 'Clear Results' ); ?></span></button>
    766766                <ul class="accordion-section-content" data-type="search"></ul>
    767767            </div>
Note: See TracChangeset for help on using the changeset viewer.