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.

git-svn-id: https://develop.svn.wordpress.org/trunk@58215 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Dolson 2024-05-27 18:39:53 +00:00
parent 9a3ab81615
commit b20f48ba81
2 changed files with 1 additions and 9 deletions

View File

@ -648,9 +648,9 @@ class WP_Admin_Bar {
public function add_menus() {
// User-related, aligned right.
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 );
add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 4 );
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 7 );
add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 8 );
add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 9999 );
// Site-related.
add_action( 'admin_bar_menu', 'wp_admin_bar_sidebar_toggle', 0 );

View File

@ -128,10 +128,6 @@ html:lang(he-il) .rtl #wpadminbar * {
outline: none;
}
#wpadminbar .quicklinks .ab-top-secondary > li {
float: right;
}
#wpadminbar .quicklinks a,
#wpadminbar .quicklinks .ab-empty-item,
#wpadminbar .shortlink-input {
@ -1038,10 +1034,6 @@ html:lang(he-il) .rtl #wpadminbar * {
position: static;
}
#wpadminbar #wp-admin-bar-my-account {
float: right;
}
.network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
margin-right: 0;
}