WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/02/2021 06:27:20 PM (5 months ago)
Author:
antpb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/06-components/header.scss

    r49726 r50154  
    7676    font-size: var(--branding--description--font-size);
    7777    line-height: 1.4;
    78 }
    79 
    80 a.custom-logo-link {
    81     text-decoration: none;
    82 
    83     &:focus {
    84         // Change colors when the body background is white.
    85         .has-background-white &,
    86         .is-dark-theme & {
    87             background: none;
    88         }
    89     }
    9078}
    9179
Note: See TracChangeset for help on using the changeset viewer.