Skip to content

Commit 42af8b7

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59424 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6c00c00 commit 42af8b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/wp-admin/css/login.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ p {
269269
vertical-align: baseline;
270270
}
271271

272-
.login .wp-login-logo {
272+
.login h1 {
273273
text-align: center;
274274
}
275275

276-
.login .wp-login-logo a {
276+
.login h1 a {
277277
background-image: url(../images/w-logo-blue.png?ver=20131202);
278278
background-image: none, url(../images/wordpress-logo.svg?ver=20131107);
279279
background-size: 84px;
@@ -323,13 +323,13 @@ p {
323323

324324
.login #nav a:hover,
325325
.login #backtoblog a:hover,
326-
.login .wp-login-logo a:hover {
326+
.login h1 a:hover {
327327
color: #135e96;
328328
}
329329

330330
.login #nav a:focus,
331331
.login #backtoblog a:focus,
332-
.login .wp-login-logo a:focus {
332+
.login h1 a:focus {
333333
color: #043959;
334334
}
335335

@@ -390,7 +390,7 @@ body.interim-login {
390390
margin: 5px auto 20px;
391391
}
392392

393-
.interim-login.login .wp-login-logo a {
393+
.interim-login.login h1 a {
394394
width: auto;
395395
}
396396

0 commit comments

Comments
 (0)