Menus: Hide the "Remove selected item" from Menus screen when no item is selected.

This changeset removes the "Remove selected item" from the classic Navigation Menus screen when no item is selected, and makes it non focusable from assistive technologies.

Plus, this changeset fixes a small unrelated coding standard issue in `nav-menus.css`.

Props kebbet, joedolson, audrasjb.
Fixes #56942.

Built from https://develop.svn.wordpress.org/trunk@55109


git-svn-id: http://core.svn.wordpress.org/trunk@54642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-01-20 22:06:13 +00:00
parent 73f6748ea4
commit c58a08d9df
5 changed files with 7 additions and 11 deletions

View File

@ -170,7 +170,7 @@ label.bulk-select-button:focus-within {
color: #0a4b78;
}
input.bulk-select-switcher:focus + .bulk-select-button-label{
input.bulk-select-switcher:focus + .bulk-select-button-label {
color: #0a4b78;
}
@ -192,9 +192,7 @@ input.bulk-select-switcher:focus + .bulk-select-button-label{
}
.bulk-actions input.menu-items-delete.disabled {
cursor: default;
color: #a7aaad;
box-shadow: none;
display: none;
}
.menu-settings {

File diff suppressed because one or more lines are too long

View File

@ -169,7 +169,7 @@ label.bulk-select-button:focus-within {
color: #0a4b78;
}
input.bulk-select-switcher:focus + .bulk-select-button-label{
input.bulk-select-switcher:focus + .bulk-select-button-label {
color: #0a4b78;
}
@ -191,9 +191,7 @@ input.bulk-select-switcher:focus + .bulk-select-button-label{
}
.bulk-actions input.menu-items-delete.disabled {
cursor: default;
color: #a7aaad;
box-shadow: none;
display: none;
}
.menu-settings {

File diff suppressed because one or more lines are too long

View File

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