diff --git a/packages/block-library/src/navigation/block.json b/packages/block-library/src/navigation/block.json index 954d7577558acc..9aacf07419e532 100644 --- a/packages/block-library/src/navigation/block.json +++ b/packages/block-library/src/navigation/block.json @@ -114,6 +114,15 @@ "default": { "type": "flex" } + }, + "__experimentalStyle": { + "elements": { + "link": { + "color": { + "text": "inherit" + } + } + } } }, "viewScript": [ "file:./view.min.js", "file:./view-modal.min.js" ], diff --git a/packages/block-library/src/navigation/style.scss b/packages/block-library/src/navigation/style.scss index 9c7211d585c2f3..5d19b5910ad2d0 100644 --- a/packages/block-library/src/navigation/style.scss +++ b/packages/block-library/src/navigation/style.scss @@ -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.