Skip to content

Commit

Permalink
Lighter block DOM: Group (#20586)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored Mar 10, 2020
1 parent f2028fa commit 0bbb41e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/block-library/src/group/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
*/
import { withSelect } from '@wordpress/data';
import { compose } from '@wordpress/compose';
import { InnerBlocks, __experimentalUseColors } from '@wordpress/block-editor';
import {
InnerBlocks,
__experimentalUseColors,
__experimentalBlock as Block,
} from '@wordpress/block-editor';
import { useRef } from '@wordpress/element';

function GroupEdit( { hasInnerBlocks, className } ) {
Expand All @@ -28,7 +32,7 @@ function GroupEdit( { hasInnerBlocks, className } ) {
{ InspectorControlsColorPanel }
<BackgroundColor>
<TextColor>
<div className={ className } ref={ ref }>
<Block.div className={ className } ref={ ref }>
<div className="wp-block-group__inner-container">
<InnerBlocks
renderAppender={
Expand All @@ -37,7 +41,7 @@ function GroupEdit( { hasInnerBlocks, className } ) {
}
/>
</div>
</div>
</Block.div>
</TextColor>
</BackgroundColor>
</>
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/group/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export const settings = {
align: [ 'wide', 'full' ],
anchor: true,
html: false,
lightBlockWrapper: true,
},
transforms: {
from: [
Expand Down

0 comments on commit 0bbb41e

Please sign in to comment.