From b00e802f292920c9bc12425217ff7a6029f9c9e0 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Thu, 23 Jun 2022 09:42:27 +0100 Subject: [PATCH] Navigation block: Move colors to JSON --- packages/block-library/src/navigation/block.json | 9 +++++++++ packages/block-library/src/navigation/style.scss | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/navigation/block.json b/packages/block-library/src/navigation/block.json index 954d7577558ac..9aacf07419e53 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 9c7211d585c2f..5d19b5910ad2d 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.