Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Pass colors and gradients to border color control
Passing these props prevents the need for the ColorGradientControl to retrieve the colors a second time.
  • Loading branch information
aaronrobertshaw committed Apr 12, 2021
commit 45e0be3c5f20d5a1321208cd17ab7dda7de7ebf1
2 changes: 2 additions & 0 deletions packages/block-editor/src/hooks/border-color.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export function BorderColorEdit( props ) {
<ColorGradientControl
label={ __( 'Border color' ) }
value={ borderColor || style?.border?.color }
colors={ colors }
gradients={ undefined }
disableCustomColors={ disableCustomColors }
disableCustomGradients={ disableCustomGradients }
onColorChange={ onChangeColor }
Expand Down