Skip to content

Commit

Permalink
Remove margin support check
Browse files Browse the repository at this point in the history
This check is to be re-added in following PR to add margin support back.
  • Loading branch information
aaronrobertshaw committed Apr 8, 2021
1 parent 2fb3a26 commit fac2ed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/hooks/spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function SpacingPanel( props ) {
}

/**
* Determine whether there is block support for padding or margins.
* Determine whether there is block support for padding.
*
* @param {string} blockName Block name.
* @return {boolean} Whether there is support.
Expand All @@ -46,7 +46,7 @@ export function hasSpacingSupport( blockName ) {

const support = getBlockSupport( blockName, SPACING_SUPPORT_KEY );

return !! ( true === support || support?.padding || support?.margin );
return !! ( true === support || support?.padding );
}

/**
Expand Down

0 comments on commit fac2ed0

Please sign in to comment.