Skip to content

Commit

Permalink
Buttons block: lighten editor DOM even more.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Jun 21, 2020
1 parent 01fab7e commit 2d58fdc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/block-library/src/buttons/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ const alignmentHooksSetting = {

function ButtonsEdit() {
return (
<Block.div>
<AlignmentHookSettingsProvider value={ alignmentHooksSetting }>
<InnerBlocks
allowedBlocks={ ALLOWED_BLOCKS }
template={ BUTTONS_TEMPLATE }
__experimentalMoverDirection="horizontal"
/>
</AlignmentHookSettingsProvider>
</Block.div>
<AlignmentHookSettingsProvider value={ alignmentHooksSetting }>
<InnerBlocks
allowedBlocks={ ALLOWED_BLOCKS }
__experimentalTagName={ Block.div }
template={ BUTTONS_TEMPLATE }
__experimentalMoverDirection="horizontal"
/>
</AlignmentHookSettingsProvider>
);
}

Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/buttons/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Increased specificity to override blocks default margin.
.wp-block-buttons .wp-block-button {
display: inline-block;
margin-left: 0;
margin-right: $grid-unit-10;
margin-bottom: $grid-unit-10;

Expand Down

0 comments on commit 2d58fdc

Please sign in to comment.