diff --git a/lib/theme.json b/lib/theme.json
index f32734b6efe0f4..867c38af1f180d 100644
--- a/lib/theme.json
+++ b/lib/theme.json
@@ -230,6 +230,12 @@
"customRadius": true
}
},
+ "core/cover": {
+ "spacing": {
+ "customMargin": true,
+ "customPadding": true
+ }
+ },
"core/pullquote": {
"border": {
"customColor": true,
diff --git a/packages/block-library/src/cover/block.json b/packages/block-library/src/cover/block.json
index 214a485a942514..883d2ebd8040c9 100644
--- a/packages/block-library/src/cover/block.json
+++ b/packages/block-library/src/cover/block.json
@@ -66,6 +66,7 @@
"html": false,
"spacing": {
"padding": true,
+ "margin": true,
"__experimentalDefaultControls": {
"padding": true
}
diff --git a/packages/block-library/src/cover/edit.js b/packages/block-library/src/cover/edit.js
index 500cdd37838a82..0a48aa6d129ad9 100644
--- a/packages/block-library/src/cover/edit.js
+++ b/packages/block-library/src/cover/edit.js
@@ -80,8 +80,6 @@ const INNER_BLOCKS_TEMPLATE = [
],
];
-const { __Visualizer: BoxControlVisualizer } = BoxControl;
-
function retrieveFastAverageColor() {
if ( ! retrieveFastAverageColor.fastAverageColor ) {
retrieveFastAverageColor.fastAverageColor = new FastAverageColor();
@@ -320,7 +318,6 @@ function CoverEdit( {
isRepeated,
minHeight,
minHeightUnit,
- style: styleAttribute,
url,
alt,
} = attributes;
@@ -670,10 +667,6 @@ function CoverEdit( {
style={ { ...style, ...blockProps.style } }
data-url={ url }
>
-
{