Commit 57f642e 1 parent 30a4d86 commit 57f642e Copy full SHA for 57f642e
File tree 1 file changed +2
-3
lines changed
packages/block-editor/src/hooks
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -385,8 +385,7 @@ export const withLayoutStyles = createHigherOrderComponent(
385
385
}
386
386
387
387
// Attach a `wp-container-` id-based class name as well as a layout class name such as `is-layout-flex`.
388
- const className = classnames (
389
- props ?. className ,
388
+ const layoutClassNames = classnames (
390
389
{
391
390
[ `wp-container-${ id } ` ] : shouldRenderLayoutStyles && ! ! css , // Only attach a container class if there is generated CSS to be attached.
392
391
} ,
@@ -410,7 +409,7 @@ export const withLayoutStyles = createHigherOrderComponent(
410
409
) }
411
410
< BlockListBlock
412
411
{ ...props }
413
- __unstableLayoutClassNames = { className }
412
+ __unstableLayoutClassNames = { layoutClassNames }
414
413
/>
415
414
</ >
416
415
) ;
You can’t perform that action at this time.
0 commit comments