diff --git a/lib/block-supports/dimensions.php b/lib/block-supports/dimensions.php index 20482368de786e..801c8f21f7203e 100644 --- a/lib/block-supports/dimensions.php +++ b/lib/block-supports/dimensions.php @@ -1,13 +1,13 @@ - { widthOptions.map( ( widthOption ) => { - return ( - - ); - } ) } - + <> +

{ __( 'Width' ) }

+ + { widthOptions.map( ( widthOption ) => { + return ( + + ); + } ) } + + ); } diff --git a/packages/block-editor/src/hooks/dimensions.js b/packages/block-editor/src/hooks/dimensions.js index 06ca8dbcdfa61f..34dc43a68fca35 100644 --- a/packages/block-editor/src/hooks/dimensions.js +++ b/packages/block-editor/src/hooks/dimensions.js @@ -15,7 +15,7 @@ import WidthControl from '../components/width-control'; /** * Key within block settings' supports array indicating support for - * width, e.g. settings found in 'block.json'. + * dimensions including width, e.g. settings found in 'block.json'. */ export const DIMENSIONS_SUPPORT_KEY = '__experimentalDimensions'; @@ -51,7 +51,7 @@ export function DimensionsPanel( props ) { return ( - + , , - , + , , hasSpacingSupport && (