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.
Built from https://develop.svn.wordpress.org/trunk@58215


git-svn-id: http://core.svn.wordpress.org/trunk@57678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
joedolson 2024-05-27 18:41:15 +00:00
parent f07a796aab
commit e7afd14793
6 changed files with 4 additions and 20 deletions

View File

@ -648,9 +648,9 @@ class WP_Admin_Bar {
public function add_menus() { public function add_menus() {
// User-related, aligned right. // User-related, aligned right.
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 ); 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_my_account_item', 7 );
add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 8 ); 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. // Site-related.
add_action( 'admin_bar_menu', 'wp_admin_bar_sidebar_toggle', 0 ); add_action( 'admin_bar_menu', 'wp_admin_bar_sidebar_toggle', 0 );

View File

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

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.6-alpha-58214'; $wp_version = '6.6-alpha-58215';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.