Skip to content

Commit

Permalink
Navigation block: Move colors to JSON (#41898)
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian authored Jun 24, 2022
1 parent cb1b5fd commit c540f2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/block-library/src/navigation/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@
"default": {
"type": "flex"
}
},
"__experimentalStyle": {
"elements": {
"link": {
"color": {
"text": "inherit"
}
}
}
}
},
"viewScript": [ "file:./view.min.js", "file:./view-modal.min.js" ],
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ $navigation-icon-size: 24px;
// By adding low specificity, we enable compatibility with link colors set in theme.json,
// but still allow them to be overridden by user-set colors.
.wp-block-navigation-item__content {
color: inherit;
display: block;

// Set the default menu item padding to zero, to allow text-only buttons.
Expand Down

0 comments on commit c540f2f

Please sign in to comment.