Skip to content

Commit

Permalink
Separate dimensions units from spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jun 8, 2021
1 parent 20d74c6 commit 063a7e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/height.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ export function HeightEdit( props ) {
} = props;

const units = useCustomUnits( {
availableUnits: useSetting( 'spacing.units' ) || [
availableUnits: useSetting( 'dimensions.units' ) || [
'%',
'px',
'em',
'rem',
'vh',
'vw',
],
} );
Expand Down

0 comments on commit 063a7e9

Please sign in to comment.