diff --git a/packages/block-editor/src/components/block-draggable/draggable-chip.js b/packages/block-editor/src/components/block-draggable/draggable-chip.js index d7d053be179fa6..3035346864552c 100644 --- a/packages/block-editor/src/components/block-draggable/draggable-chip.js +++ b/packages/block-editor/src/components/block-draggable/draggable-chip.js @@ -13,7 +13,10 @@ import BlockIcon from '../block-icon'; export default function BlockDraggableChip( { count, icon, isPattern } ) { const patternLabel = isPattern && __( 'Pattern' ); return ( -
+
} + isValid={ isDropTargetValid } > { ( { onDraggableStart, onDraggableEnd } ) => { return children( { diff --git a/packages/block-editor/src/components/block-draggable/style.scss b/packages/block-editor/src/components/block-draggable/style.scss index a27d4c4caf2f29..210e6c9dd9d671 100644 --- a/packages/block-editor/src/components/block-draggable/style.scss +++ b/packages/block-editor/src/components/block-draggable/style.scss @@ -45,3 +45,11 @@ font-size: $default-font-size; } } + +:root { + --wp--block-draggable-valid-opacity: 1; +} + +.block-draggable-invalid-drag-token { + --wp--block-draggable-valid-opacity: 0.6; +}