diff --git a/docs/reference-guides/block-api/block-registration.md b/docs/reference-guides/block-api/block-registration.md index b312f81dc96693..97077cb7efdfaa 100644 --- a/docs/reference-guides/block-api/block-registration.md +++ b/docs/reference-guides/block-api/block-registration.md @@ -227,17 +227,6 @@ example: { }, ``` -It's possible to set padding for the block in the preview container via `defaultPadding`. For example: - -```js -example: { - attributes: { - cover: 'https://example.com/image.jpg', - }, - defaultPadding: '8px 16px' -}, -``` - #### variations (optional) - **Type:** `Object[]` diff --git a/packages/block-editor/src/components/block-preview/auto.js b/packages/block-editor/src/components/block-preview/auto.js index 665c172047367e..587a264f407ca4 100644 --- a/packages/block-editor/src/components/block-preview/auto.js +++ b/packages/block-editor/src/components/block-preview/auto.js @@ -66,12 +66,6 @@ function ScaledBlockPreview( { MemoizedBlockList = MemoizedBlockList || pure( BlockList ); const scale = containerWidth / viewportWidth; - - const padding = - typeof __experimentalPadding === 'string' - ? __experimentalPadding - : `${ __experimentalPadding }px`; - return ( { containerResizeListener, { width: containerWidth, height: containerHeight }, ] = useResizeObserver(); - const padding = blockExample?.defaultPadding || 0; const viewportWidth = blockExample?.viewportWidth || containerWidth; return ! blockExample ? null : ( @@ -20,10 +19,7 @@ const BlockPreviewPanel = ( { name } ) => {