Make WordPress Core

Changeset 59424


Ignore:
Timestamp:
11/19/2024 09:22:10 PM (12 days ago)
Author:
joedolson
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/login.css

    r59138 r59424  
    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);
     
    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}
     
    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}
     
    391391}
    392392
    393 .interim-login.login .wp-login-logo a {
     393.interim-login.login h1 a {
    394394    width: auto;
    395395}
Note: See TracChangeset for help on using the changeset viewer.