Make WordPress Core


Ignore:
Timestamp:
05/27/2024 06:39:53 PM (4 months ago)
Author:
joedolson
Message:

Toolbar: Accessibility: Fix keyboard focus order of search form.

Change the priority of the search form & remove float so that the visual position of the form matches it's positioning in the DOM.

This sets the priority of the search form to an arbitrarily high value of 9999 to ensure it will generally be last in the DOM.

Props joedolson, sabernhardt, audrasjb.
Fixes #60685.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-admin-bar.php

    r57765 r58215  
    649649        // User-related, aligned right.
    650650        add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 );
    651         add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 4 );
    652651        add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 7 );
    653652        add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 8 );
     653        add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 9999 );
    654654
    655655        // Site-related.
Note: See TracChangeset for help on using the changeset viewer.