Make WordPress Core


Ignore:
Timestamp:
01/18/2023 01:31:16 PM (2 years ago)
Author:
audrasjb
Message:

Twenty Twenty-One: Fix obsolete navigation block styles for better Global Styles support.

This changeset removes CSS custom properties that targets navigation menu items to avoid preventing the block from inheriting padding values set by the Global Styles system.

Props Joen, desrosj, poena.
Fixes #53220.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/navigation/_editor.scss

    r49574 r55088  
    11.wp-block-navigation {
     2
     3    [data-block] {
     4        margin-top: revert;
     5        margin-bottom: revert;
     6    }
    27
    38    .wp-block-navigation__container {
    49        background: var(--global--color-background);
    5         padding: 0;
    610    }
    711
    812    .wp-block-navigation-link {
    9 
    10         .wp-block-navigation-link__content {
    11             padding: var(--primary-nav--padding);
    12         }
    1313
    1414        .wp-block-navigation-link__label {
Note: See TracChangeset for help on using the changeset viewer.