Twenty Twenty-One: Make transparent PNG logo visible on focus.

This ensures a transparent logo remains visible while focused.

Props bduclos, poena, paaljoachim, hellofromTonya.
Fixes #52257.

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


git-svn-id: http://core.svn.wordpress.org/trunk@49833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
antpb 2021-02-02 18:29:05 +00:00
parent 87f1e31871
commit ea3a1d782a
11 changed files with 45 additions and 40 deletions

View File

@ -379,6 +379,10 @@ a:hover {
background-color: #f1f1f1;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
background: none;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
outline: 2px dotted #28303d;
}

View File

@ -2218,6 +2218,10 @@ a:hover {
background-color: #f1f1f1;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
background: none;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
outline: 2px dotted #28303d;
}
@ -5402,15 +5406,6 @@ table.wp-calendar-table caption {
line-height: 1.4;
}
a.custom-logo-link {
text-decoration: none;
}
.has-background-white a.custom-logo-link:focus,
.is-dark-theme a.custom-logo-link:focus {
background: none;
}
.site-title > a {
text-decoration-color: #39414d;
}

View File

@ -24,6 +24,11 @@
text-decoration: none;
}
.is-dark-theme.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus,
.is-dark-theme.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) .meta-nav.custom-logo-link:focus {
background: none;
}
.is-dark-theme.is-dark-theme img {
filter: brightness(0.85) contrast(1.1);
}

View File

@ -24,6 +24,11 @@
text-decoration: none;
}
.is-dark-theme.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus,
.is-dark-theme.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) .meta-nav.custom-logo-link:focus {
background: none;
}
.is-dark-theme.is-dark-theme img {
filter: brightness(0.85) contrast(1.1);
}

View File

@ -514,6 +514,10 @@ a:hover {
background-color: #f1f1f1;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
background: none;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
outline: 2px dotted var(--wp--style--color--link, var(--global--color-primary));
}

View File

@ -52,6 +52,13 @@ a:hover {
}
}
&.custom-logo-link {
&:focus {
background: none;
}
}
img {
outline: 2px dotted var(--wp--style--color--link, var(--global--color-primary));
}

View File

@ -77,18 +77,6 @@
line-height: 1.4;
}
a.custom-logo-link {
text-decoration: none;
&:focus {
// Change colors when the body background is white.
.has-background-white &,
.is-dark-theme & {
background: none;
}
}
}
.site-title > a {
text-decoration-color: var(--global--color-secondary);
}

View File

@ -21,6 +21,13 @@
background: #000;
color: #fff;
text-decoration: none;
&.custom-logo-link {
&:focus {
background: none;
}
}
}
img {

View File

@ -1686,6 +1686,10 @@ a:hover {
background-color: #f1f1f1;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
background: none;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
outline: 2px dotted var(--wp--style--color--link, var(--global--color-primary));
}
@ -3807,15 +3811,6 @@ table.wp-calendar-table caption {
line-height: 1.4;
}
a.custom-logo-link {
text-decoration: none;
}
.has-background-white a.custom-logo-link:focus,
.is-dark-theme a.custom-logo-link:focus {
background: none;
}
.site-title > a {
text-decoration-color: var(--global--color-secondary);
}

View File

@ -1696,6 +1696,10 @@ a:hover {
background-color: #f1f1f1;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
background: none;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
outline: 2px dotted var(--wp--style--color--link, var(--global--color-primary));
}
@ -3827,15 +3831,6 @@ table.wp-calendar-table caption {
line-height: 1.4;
}
a.custom-logo-link {
text-decoration: none;
}
.has-background-white a.custom-logo-link:focus,
.is-dark-theme a.custom-logo-link:focus {
background: none;
}
.site-title > a {
text-decoration-color: var(--global--color-secondary);
}

View File

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