diff --git a/packages/block-library/src/separator/block.json b/packages/block-library/src/separator/block.json
index 063111139aa8d..7b77351f98ddb 100644
--- a/packages/block-library/src/separator/block.json
+++ b/packages/block-library/src/separator/block.json
@@ -8,14 +8,14 @@
},
"customColor": {
"type": "string"
- },
- "style": {
- "type": "object"
}
},
"supports": {
"anchor": true,
- "align": [ "center", "wide", "full" ]
+ "align": [ "center", "wide", "full" ],
+ "spacing": {
+ "margin": [ "top", "bottom" ]
+ }
},
"editorStyle": "wp-block-separator-editor",
"style": "wp-block-separator"
diff --git a/packages/block-library/src/separator/edit.js b/packages/block-library/src/separator/edit.js
index 8e951a4e1daa7..ab1689ed034bd 100644
--- a/packages/block-library/src/separator/edit.js
+++ b/packages/block-library/src/separator/edit.js
@@ -39,6 +39,7 @@ function SeparatorEdit( props ) {
'wp-block-separator',
'wp-block-separator-wrapper'
) }
+ style={ {} }
>
;
diff --git a/packages/block-library/src/separator/separator-settings.js b/packages/block-library/src/separator/separator-settings.js
index f0df3e5ce3cf4..2277ff64da263 100644
--- a/packages/block-library/src/separator/separator-settings.js
+++ b/packages/block-library/src/separator/separator-settings.js
@@ -3,45 +3,8 @@
*/
import { __ } from '@wordpress/i18n';
import { InspectorControls, PanelColorSettings } from '@wordpress/block-editor';
-import {
- PanelBody,
- __experimentalBoxControl as BoxControl,
-} from '@wordpress/components';
-
-/**
- * Internal dependencies
- */
-import { CSS_UNITS } from './shared';
-
-const SeparatorSettings = ( {
- color,
- setColor,
- attributes: { style },
- setAttributes,
-} ) => {
- const updateMargins = ( { top, bottom } ) => {
- setAttributes( {
- style: {
- ...style,
- spacing: {
- ...style?.spacing,
- margin: { top, bottom },
- },
- },
- } );
- };
-
- const onChangeShowVisualizer = ( { top, bottom } ) => {
- setAttributes( {
- style: {
- ...style,
- visualizers: {
- margin: { top, bottom },
- },
- },
- } );
- };
+const SeparatorSettings = ( { color, setColor } ) => {
return (
-
-
-
);
};