Skip to content

Commit

Permalink
Navigation block: Move colors to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jun 23, 2022
1 parent 3735a74 commit b00e802
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 b00e802

Please sign in to comment.