From 22fbc32ed55c239a0589595a08a6dae82e454c02 Mon Sep 17 00:00:00 2001 From: Yogesh Bhutkar Date: Fri, 10 Jan 2025 18:53:05 +0530 Subject: [PATCH] Navigation: Add clearable option for color tools in navigation edit (#68454) Co-authored-by: yogeshbhutkar Co-authored-by: Mayank-Tripathi32 Co-authored-by: hbhalodia Co-authored-by: t-hamano --- packages/block-library/src/navigation/edit/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/block-library/src/navigation/edit/index.js b/packages/block-library/src/navigation/edit/index.js index ae7dd60bd0c5b..a9722c0b4f070 100644 --- a/packages/block-library/src/navigation/edit/index.js +++ b/packages/block-library/src/navigation/edit/index.js @@ -142,24 +142,28 @@ function ColorTools( { label: __( 'Text' ), onColorChange: setTextColor, resetAllFilter: () => setTextColor(), + clearable: true, }, { colorValue: backgroundColor.color, label: __( 'Background' ), onColorChange: setBackgroundColor, resetAllFilter: () => setBackgroundColor(), + clearable: true, }, { colorValue: overlayTextColor.color, label: __( 'Submenu & overlay text' ), onColorChange: setOverlayTextColor, resetAllFilter: () => setOverlayTextColor(), + clearable: true, }, { colorValue: overlayBackgroundColor.color, label: __( 'Submenu & overlay background' ), onColorChange: setOverlayBackgroundColor, resetAllFilter: () => setOverlayBackgroundColor(), + clearable: true, }, ] } panelId={ clientId }