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.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
joedolson 2024-11-19 21:24:22 +00:00
parent d54b7924ef
commit 70842372b1
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.8-alpha-59422';
$wp_version = '6.8-alpha-59424';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.