diff --git a/packages/block-library/src/post-template/edit.js b/packages/block-library/src/post-template/edit.js index bcf4f909d6a8f..2422f242aa690 100644 --- a/packages/block-library/src/post-template/edit.js +++ b/packages/block-library/src/post-template/edit.js @@ -26,7 +26,10 @@ const TEMPLATE = [ ]; function PostTemplateInnerBlocks() { - const innerBlocksProps = useInnerBlocksProps( {}, { template: TEMPLATE } ); + const innerBlocksProps = useInnerBlocksProps( + { className: 'wp-block-post' }, + { template: TEMPLATE } + ); return
  • ; } @@ -38,6 +41,9 @@ function PostTemplateBlockPreview( { } ) { const blockPreviewProps = useBlockPreview( { blocks, + props: { + className: 'wp-block-post', + }, } ); const handleOnClick = () => {