Skip to content

Commit

Permalink
Navgation link css updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rinkalpagdar committed Dec 19, 2024
1 parent 8ca1bad commit 270f14e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ $navigation-icon-size: 24px;
display: block;
}

// This rule needs extra specificity so that it inherits the correct color from its parent.
// Otherwise, a link color set by a parent group can override the value.
// This also fixes an issue where a navigation with an explicitly set color is overridden
// by link colors defined in Global Styles.
.wp-block-navigation-item__content.wp-block-navigation-item__content {
color: inherit;
}

// The following rules provide class based application of user selected text
// decoration via block supports.
Expand Down Expand Up @@ -151,7 +144,13 @@ $navigation-icon-size: 24px;
--navigation-layout-justify: space-between;
}
}

// This rule needs extra specificity so that it inherits the correct color from its parent.
// Otherwise, a link color set by a parent group can override the value.
// This also fixes an issue where a navigation with an explicitly set color is overridden
// by link colors defined in Global Styles.
.wp-block-navigation-item__content {
color: inherit;
}
// Styles for submenu flyout.
// These are separated out with reduced specificity to allow better inheritance from Global Styles.
.wp-block-navigation .has-child {
Expand Down

0 comments on commit 270f14e

Please sign in to comment.