Skip to content

Commit 3b1d4c5

Browse files
yogeshbhutkaryogeshbhutkarMayank-Tripathi32hbhalodiat-hamano
authored andcommitted
Navigation: Add clearable option for color tools in navigation edit (WordPress#68454)
Co-authored-by: yogeshbhutkar <[email protected]> Co-authored-by: Mayank-Tripathi32 <[email protected]> Co-authored-by: hbhalodia <[email protected]> Co-authored-by: t-hamano <[email protected]>
1 parent e8e0b87 commit 3b1d4c5

File tree

1 file changed

+4
-0
lines changed
  • packages/block-library/src/navigation/edit

1 file changed

+4
-0
lines changed

packages/block-library/src/navigation/edit/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -142,24 +142,28 @@ function ColorTools( {
142142
label: __( 'Text' ),
143143
onColorChange: setTextColor,
144144
resetAllFilter: () => setTextColor(),
145+
clearable: true,
145146
},
146147
{
147148
colorValue: backgroundColor.color,
148149
label: __( 'Background' ),
149150
onColorChange: setBackgroundColor,
150151
resetAllFilter: () => setBackgroundColor(),
152+
clearable: true,
151153
},
152154
{
153155
colorValue: overlayTextColor.color,
154156
label: __( 'Submenu & overlay text' ),
155157
onColorChange: setOverlayTextColor,
156158
resetAllFilter: () => setOverlayTextColor(),
159+
clearable: true,
157160
},
158161
{
159162
colorValue: overlayBackgroundColor.color,
160163
label: __( 'Submenu & overlay background' ),
161164
onColorChange: setOverlayBackgroundColor,
162165
resetAllFilter: () => setOverlayBackgroundColor(),
166+
clearable: true,
163167
},
164168
] }
165169
panelId={ clientId }

0 commit comments

Comments
 (0)