Skip to content

Commit

Permalink
Remove clear button from Color picker in ToolsPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Oct 25, 2021
1 parent 6ccf01b commit 5fafc99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/hooks/border-color.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export function BorderColorEdit( props ) {
disableCustomColors={ disableCustomColors }
disableCustomGradients={ disableCustomGradients }
onColorChange={ onChangeColor }
clearable={ false }
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export default function BorderPanel( { name } ) {
disableCustomColors={ disableCustomColors }
disableCustomGradients={ disableCustomGradients }
onColorChange={ handleOnChange( setBorderColor ) }
clearable={ false }
/>
</ToolsPanelItem>
) }
Expand Down

0 comments on commit 5fafc99

Please sign in to comment.