Make WordPress Core

Changeset 58215


Ignore:
Timestamp:
05/27/2024 06:39:53 PM (5 weeks 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.

Location:
trunk/src/wp-includes
Files:
2 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.
  • trunk/src/wp-includes/css/admin-bar.css

    r57792 r58215  
    127127#wpadminbar .ab-empty-item {
    128128    outline: none;
    129 }
    130 
    131 #wpadminbar .quicklinks .ab-top-secondary > li {
    132     float: right;
    133129}
    134130
     
    10391035    }
    10401036
    1041     #wpadminbar #wp-admin-bar-my-account {
    1042         float: right;
    1043     }
    1044 
    10451037    .network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
    10461038        margin-right: 0;
Note: See TracChangeset for help on using the changeset viewer.