Skip to content

Commit 77aec3d

Browse files
authored
[Block Editor - Post Template]: Fix layout styles (#47221)
1 parent 897e3bb commit 77aec3d

File tree

1 file changed

+3
-2
lines changed
  • packages/block-library/src/post-template

1 file changed

+3
-2
lines changed

packages/block-library/src/post-template/edit.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const TEMPLATE = [
2828
function PostTemplateInnerBlocks() {
2929
const innerBlocksProps = useInnerBlocksProps(
3030
{ className: 'wp-block-post' },
31-
{ template: TEMPLATE }
31+
{ template: TEMPLATE, __unstableDisableLayoutClassNames: true }
3232
);
3333
return <li { ...innerBlocksProps } />;
3434
}
@@ -98,6 +98,7 @@ export default function PostTemplateEdit( {
9898
displayLayout: { type: layoutType = 'flex', columns = 1 } = {},
9999
previewPostType,
100100
},
101+
__unstableLayoutClassNames,
101102
} ) {
102103
const [ { page } ] = queryContext;
103104
const [ activeBlockContextId, setActiveBlockContextId ] = useState();
@@ -216,7 +217,7 @@ export default function PostTemplateEdit( {
216217
);
217218
const hasLayoutFlex = layoutType === 'flex' && columns > 1;
218219
const blockProps = useBlockProps( {
219-
className: classnames( {
220+
className: classnames( __unstableLayoutClassNames, {
220221
'is-flex-container': hasLayoutFlex,
221222
[ `columns-${ columns }` ]: hasLayoutFlex,
222223
} ),

0 commit comments

Comments
 (0)