Twenty Twenty-One: Ensure the dropdown arrow displays for `<select>` elements when focused.

Props isabel_brison, zieladam, poena.
Fixes #53560.
Built from https://develop.svn.wordpress.org/trunk@51296


git-svn-id: http://core.svn.wordpress.org/trunk@50905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2021-07-01 19:55:58 +00:00
parent 61b5311c57
commit a54727d936
4 changed files with 18 additions and 3 deletions

View File

@ -324,6 +324,19 @@ select {
background-position: right 10px top 60%;
}
select:focus {
border: 3px solid #39414d;
border-radius: 0;
color: #28303d;
font-size: 1.125rem;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
padding: 10px 30px 10px 10px;
background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2328303d'><polygon points='0,0 10,0 5,5'/></svg>") no-repeat;
background-position: right 10px top 60%;
}
/*
* text-underline-offset doesn't work in Chrome at all 👎
* But looks nice in Safari/Firefox, so let's keep it and

View File

@ -449,7 +449,8 @@ figcaption,
padding: 0;
}
select {
select,
select:focus {
border: var(--form--border-width) solid var(--form--border-color);
border-radius: var(--form--border-radius);
color: var(--form--color-text);

View File

@ -1,4 +1,5 @@
select {
select,
select:focus {
border: var(--form--border-width) solid var(--form--border-color);
border-radius: var(--form--border-radius);
color: var(--form--color-text);

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.9-alpha-51294';
$wp_version = '5.9-alpha-51296';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.