Skip to content

Commit

Permalink
Remove custom prefix from theme.json support property
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Aug 31, 2021
1 parent dee7606 commit 6341854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-editor/src/hooks/min-height.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function resetMinHeight( { attributes = {}, setAttributes } ) {
* @return {boolean} Whether min-height control is disabled.
*/
export function useIsMinHeightDisabled( { name: blockName } = {} ) {
const isDisabled = ! useSetting( 'dimensions.customMinHeight' );
const isDisabled = ! useSetting( 'dimensions.minHeight' );
return ! hasMinHeightSupport( blockName ) || isDisabled;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function useHasHeight( { name, supports } ) {
}

function useHasMinHeight( { name, supports } ) {
const settings = useSetting( 'dimensions.customMinHeight', name );
const settings = useSetting( 'dimensions.minHeight', name );

return settings && supports.includes( 'minHeight' );
}
Expand Down

0 comments on commit 6341854

Please sign in to comment.