Skip to content

Commit

Permalink
Navigation: Add clearable option for color tools in navigation edit (#…
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
5 people authored Jan 10, 2025
1 parent 14d10ea commit 22fbc32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-library/src/navigation/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 22fbc32

Please sign in to comment.