Login: Revert selector change in login heading CSS.

In [59138], the login screens were updated to change the `h1` heading from the logo to screen-reader hidden text. Along with that HTML change, we changed the CSS selectors from `.login h1` to `.login .wp-login-logo`. This unnecessary change increased specificity and broke the CSS selectors used by a wide variety of plugins to replace the login logo.

Commit reverts the change in selector back to using the `.login h1` pattern.

Reviewed by joedolson, desrosj.
Merges [59424] to the 6.7 branch.

Props leecollings, sabernhardt, im3dabasia1, roytanck, sailpete, joedolson. 
Fixes #62410.
Built from https://develop.svn.wordpress.org/branches/6.7@59429


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2024-11-20 01:58:16 +00:00
parent 720cc884d9
commit 1bb7777b42
5 changed files with 13 additions and 13 deletions

View File

@ -270,11 +270,11 @@ p {
vertical-align: baseline;
}
.login .wp-login-logo {
.login h1 {
text-align: center;
}
.login .wp-login-logo a {
.login h1 a {
background-image: url(../images/w-logo-blue.png?ver=20131202);
background-image: none, url(../images/wordpress-logo.svg?ver=20131107);
background-size: 84px;
@ -324,13 +324,13 @@ p {
.login #nav a:hover,
.login #backtoblog a:hover,
.login .wp-login-logo a:hover {
.login h1 a:hover {
color: #135e96;
}
.login #nav a:focus,
.login #backtoblog a:focus,
.login .wp-login-logo a:focus {
.login h1 a:focus {
color: #043959;
}
@ -391,7 +391,7 @@ body.interim-login {
margin: 5px auto 20px;
}
.interim-login.login .wp-login-logo a {
.interim-login.login h1 a {
width: auto;
}

File diff suppressed because one or more lines are too long

View File

@ -269,11 +269,11 @@ p {
vertical-align: baseline;
}
.login .wp-login-logo {
.login h1 {
text-align: center;
}
.login .wp-login-logo a {
.login h1 a {
background-image: url(../images/w-logo-blue.png?ver=20131202);
background-image: none, url(../images/wordpress-logo.svg?ver=20131107);
background-size: 84px;
@ -323,13 +323,13 @@ p {
.login #nav a:hover,
.login #backtoblog a:hover,
.login .wp-login-logo a:hover {
.login h1 a:hover {
color: #135e96;
}
.login #nav a:focus,
.login #backtoblog a:focus,
.login .wp-login-logo a:focus {
.login h1 a:focus {
color: #043959;
}
@ -390,7 +390,7 @@ body.interim-login {
margin: 5px auto 20px;
}
.interim-login.login .wp-login-logo a {
.interim-login.login h1 a {
width: auto;
}

File diff suppressed because one or more lines are too long

View File

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