diff --git a/packages/block-editor/src/components/block-pattern-setup/index.js b/packages/block-editor/src/components/block-pattern-setup/index.js
index b39aa070c529e3..22d51466b3b6e9 100644
--- a/packages/block-editor/src/components/block-pattern-setup/index.js
+++ b/packages/block-editor/src/components/block-pattern-setup/index.js
@@ -127,10 +127,7 @@ function BlockPatternSlide( { className, pattern, minHeight } ) {
aria-label={ title }
aria-describedby={ description ? descriptionId : undefined }
>
-
+
{ !! description && (
{ description }
diff --git a/packages/block-editor/src/components/block-preview/README.md b/packages/block-editor/src/components/block-preview/README.md
index 6ae8cfe97514a2..5cce2e45cb54ff 100644
--- a/packages/block-editor/src/components/block-preview/README.md
+++ b/packages/block-editor/src/components/block-preview/README.md
@@ -30,26 +30,26 @@ Width of the preview container in pixels. Controls at what size the blocks will
Set `viewportWidth` to `0` to make the viewport the same width as the container.
-### `__experimentalPadding`
+### minHeight
-- **Type** `Int`
-- **Default** `undefined`
+Minimum height of the preview iframe in pixels.
-Padding for the preview container body.
+- **Type:** `Int`
+- **Default:** `undefined`
-### `__experimentalStyles`
+### `additionalStyles`
List of additional editor styles to load into the preview iframe. Each object
should contain a `css` attribute. See `EditorStyles` for more info.
```jsx
```
-- **Type** `Int`
+- **Type** `Array`
- **Default** `[]`
diff --git a/packages/block-editor/src/components/block-preview/auto.js b/packages/block-editor/src/components/block-preview/auto.js
index fb763ed466629c..e1df61b390376f 100644
--- a/packages/block-editor/src/components/block-preview/auto.js
+++ b/packages/block-editor/src/components/block-preview/auto.js
@@ -23,9 +23,8 @@ const MAX_HEIGHT = 2000;
function ScaledBlockPreview( {
viewportWidth,
containerWidth,
- __experimentalPadding,
- __experimentalMinHeight,
- __experimentalStyles,
+ minHeight,
+ additionalStyles = [],
} ) {
if ( ! viewportWidth ) {
viewportWidth = containerWidth;
@@ -46,7 +45,7 @@ function ScaledBlockPreview( {
if ( styles ) {
return [
...styles,
- ...__experimentalStyles,
+ ...additionalStyles,
{
css: 'body{height:auto;overflow:hidden;border:none;}',
__unstableType: 'presets',
@@ -55,7 +54,7 @@ function ScaledBlockPreview( {
}
return styles;
- }, [ styles, __experimentalStyles ] );
+ }, [ styles, additionalStyles ] );
const svgFilters = useMemo( () => {
return [ ...( duotone?.default ?? [] ), ...( duotone?.theme ?? [] ) ];
@@ -73,7 +72,7 @@ function ScaledBlockPreview( {
height: contentHeight * scale,
maxHeight:
contentHeight > MAX_HEIGHT ? MAX_HEIGHT * scale : undefined,
- minHeight: __experimentalMinHeight,
+ minHeight,
} }
>