From 6f374656a46be9919c067816bfaa7c9c1695db76 Mon Sep 17 00:00:00 2001 From: Staci Cooper Date: Wed, 21 Oct 2020 10:44:33 -0700 Subject: [PATCH] Update docstrings to reflect refactor into dimensions feature Some docstrings still referred to the block support as just width support, and needed to be updated after refactoring into a larger dimensions feature. --- lib/block-supports/dimensions.php | 6 ++-- .../src/components/width-control/index.js | 34 +++++++++++-------- packages/block-editor/src/hooks/dimensions.js | 4 +-- packages/block-editor/src/hooks/style.js | 2 +- 4 files changed, 25 insertions(+), 21 deletions(-) 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 && (