Accessibility: Remove title attributes from the Menus screen.

Also, adds missing labels and improves the existing ones. 
Updates the "custom links" labels and inputs in the Customizer too.
Introduces a generic, reusable, `.wp-initial-focus` CSS class to be used for
the sole purpose of setting the initial focus.
"Quick Search": uniform the attached events and avoids new AJAX requests to
be triggered when the pressed key doesn't change the searched term.

Fixes #35374.
Built from https://develop.svn.wordpress.org/trunk@36379


git-svn-id: http://core.svn.wordpress.org/trunk@36346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia
2016-01-22 14:26:27 +00:00
parent 6699b761e1
commit 450cbb3e81
12 changed files with 88 additions and 134 deletions

View File

@@ -61,10 +61,6 @@ ul.add-menu-item-tabs li {
position: relative;
}
.blank-slate .menu-name {
height: 2em;
}
.blank-slate .menu-settings {
border: none;
margin-top: 0;
@@ -179,7 +175,10 @@ ul.add-menu-item-tabs li {
}
#nav-menu-header .menu-name-label {
margin-top: 4px;
display: inline-block;
vertical-align: middle;
margin-left: 7px;
font-style: italic;
}
.nav-menus-php #post-body div.updated,
@@ -248,27 +247,13 @@ ul.add-menu-item-tabs li {
border-left: 1px solid #ccc;
}
#wpbody .open-label {
display: block;
float:right;
}
#wpbody .open-label span {
padding-left: 10px;
}
.js .input-with-default-title {
color: #a0a5aa;
font-style: italic;
}
#menu-management .inside {
padding: 0 10px;
}
/* Add Menu Item Boxes */
.postbox .howto input,
.accordion-container .howto input {
.customlinkdiv .menu-item-textbox {
width: 180px;
float: left;
}
@@ -277,10 +262,6 @@ ul.add-menu-item-tabs li {
margin: 0;
}
.customlinkdiv .howto input {
width: 180px;
}
.customlinkdiv p {
margin-top: 0
}
@@ -355,6 +336,7 @@ ul.add-menu-item-tabs li {
/* Create Menu */
#menu-name {
width: 270px;
vertical-align: middle;
}
#manage-menu .inside {
@@ -381,10 +363,10 @@ ul.add-menu-item-tabs li {
width: 180px;
}
.customlinkdiv label,
.nav-menus-php .howto span {
margin-top: 6px;
display: block;
float: right;
margin-top: 6px;
}
/* Menu item types */
@@ -731,14 +713,12 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
/* Major/minor publishing actions (classes) */
.nav-menus-php .major-publishing-actions {
clear: both;
padding: 3px 0 6px;
padding: 7px 0 6px;
}
.nav-menus-php .major-publishing-actions .publishing-action {
text-align: left;
float: left;
line-height: 23px;
margin: 4px 0 1px;
}
.nav-menus-php .blank-slate .menu-settings {

File diff suppressed because one or more lines are too long

View File

@@ -61,10 +61,6 @@ ul.add-menu-item-tabs li {
position: relative;
}
.blank-slate .menu-name {
height: 2em;
}
.blank-slate .menu-settings {
border: none;
margin-top: 0;
@@ -179,7 +175,10 @@ ul.add-menu-item-tabs li {
}
#nav-menu-header .menu-name-label {
margin-top: 4px;
display: inline-block;
vertical-align: middle;
margin-right: 7px;
font-style: italic;
}
.nav-menus-php #post-body div.updated,
@@ -248,27 +247,13 @@ ul.add-menu-item-tabs li {
border-right: 1px solid #ccc;
}
#wpbody .open-label {
display: block;
float:left;
}
#wpbody .open-label span {
padding-right: 10px;
}
.js .input-with-default-title {
color: #a0a5aa;
font-style: italic;
}
#menu-management .inside {
padding: 0 10px;
}
/* Add Menu Item Boxes */
.postbox .howto input,
.accordion-container .howto input {
.customlinkdiv .menu-item-textbox {
width: 180px;
float: right;
}
@@ -277,10 +262,6 @@ ul.add-menu-item-tabs li {
margin: 0;
}
.customlinkdiv .howto input {
width: 180px;
}
.customlinkdiv p {
margin-top: 0
}
@@ -355,6 +336,7 @@ ul.add-menu-item-tabs li {
/* Create Menu */
#menu-name {
width: 270px;
vertical-align: middle;
}
#manage-menu .inside {
@@ -381,10 +363,10 @@ ul.add-menu-item-tabs li {
width: 180px;
}
.customlinkdiv label,
.nav-menus-php .howto span {
margin-top: 6px;
display: block;
float: left;
margin-top: 6px;
}
/* Menu item types */
@@ -731,14 +713,12 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
/* Major/minor publishing actions (classes) */
.nav-menus-php .major-publishing-actions {
clear: both;
padding: 3px 0 6px;
padding: 7px 0 6px;
}
.nav-menus-php .major-publishing-actions .publishing-action {
text-align: right;
float: right;
line-height: 23px;
margin: 4px 0 1px;
}
.nav-menus-php .blank-slate .menu-settings {

File diff suppressed because one or more lines are too long