Make WordPress Core


Ignore:
Timestamp:
01/19/2023 05:39:10 PM (2 years ago)
Author:
audrasjb
Message:

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

This changeset removes some 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, audrasjb, hellofromtonya, SergeyBiryukov.
Fixes #53220.

File:
1 edited

Legend:

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

    r55089 r55101  
    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.