Make WordPress Core


Ignore:
Timestamp:
07/29/2015 11:39:54 PM (10 years ago)
Author:
helen
Message:

Menu customizer: More clearly separate search results from available items.

Available items now fade from view while you're searching, and there is an explicit way to clear search results. No results gives a better message, though still brief this time around.

props valendesigns, designsimply, DH-Shredder, helen.
fixes #32710.

File:
1 edited

Legend:

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

    r33493 r33511  
    218218
    219219        if ( empty( $items ) ) {
    220             wp_send_json_error( array( 'message' => __( 'No menu items found.' ) ) );
     220            wp_send_json_error( array( 'message' => __( 'No results found.' ) ) );
    221221        } else {
    222222            wp_send_json_success( array( 'items' => $items ) );
     
    719719                    <p class="screen-reader-text" id="menu-items-search-desc"><?php _e( 'The search results will be updated as you type.' ); ?></p>
    720720                    <span class="spinner"></span>
     721                    <span class="clear-results"><span class="screen-reader-text"><?php _e( 'Clear Results' ); ?></span></span>
    721722                </div>
    722723                <ul class="accordion-section-content" data-type="search"></ul>
Note: See TracChangeset for help on using the changeset viewer.