Accessibility: Improve and modernize user interface controls. Style the select elements disabled state.

Props adhitya03, MarcosAlexandre, kjellr.
See #47477.
Fixes #48129.

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


git-svn-id: http://core.svn.wordpress.org/trunk@46138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2019-09-28 16:35:59 +00:00
parent dd44ab5a58
commit 7d769a9234
5 changed files with 29 additions and 3 deletions

View File

@ -340,6 +340,19 @@ input[type="radio"].disabled:checked:before {
box-shadow: none;
}
.wp-admin select.disabled,
.wp-admin select:disabled {
color: #a0a5aa;
border-color: #ddd;
background-color: #f7f7f7;
/* The SVG is arrow-down-alt2 from Dashicons. */
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E');
box-shadow: none;
text-shadow: 0 1px 0 #fff;
cursor: default;
transform: none;
}
.wp-admin .button-cancel {
padding: 0 5px;
line-height: 2;

File diff suppressed because one or more lines are too long

View File

@ -340,6 +340,19 @@ input[type="radio"].disabled:checked:before {
box-shadow: none;
}
.wp-admin select.disabled,
.wp-admin select:disabled {
color: #a0a5aa;
border-color: #ddd;
background-color: #f7f7f7;
/* The SVG is arrow-down-alt2 from Dashicons. */
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E');
box-shadow: none;
text-shadow: 0 1px 0 #fff;
cursor: default;
transform: none;
}
.wp-admin .button-cancel {
padding: 0 5px;
line-height: 2;

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-beta1-46338';
$wp_version = '5.3-beta1-46339';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.