diff --git a/packages/block-library/src/cover/edit/inspector-controls.js b/packages/block-library/src/cover/edit/inspector-controls.js index 8c501b23f5224f..cfcf012badd62c 100644 --- a/packages/block-library/src/cover/edit/inspector-controls.js +++ b/packages/block-library/src/cover/edit/inspector-controls.js @@ -3,7 +3,6 @@ */ import { Fragment, useMemo } from '@wordpress/element'; import { - BaseControl, Button, ExternalLink, FocalPointPicker, @@ -73,18 +72,17 @@ function CoverHeightInput( { const min = isPx ? COVER_MIN_HEIGHT : 0; return ( - - - + ); } export default function CoverInspectorControls( { diff --git a/packages/block-library/src/search/edit.js b/packages/block-library/src/search/edit.js index 377788d281d3d0..a3db69287f8f73 100644 --- a/packages/block-library/src/search/edit.js +++ b/packages/block-library/src/search/edit.js @@ -363,7 +363,7 @@ export default function SearchEdit( { widthUnit: newUnit, } ); } } - style={ { maxWidth: 80 } } + __unstableInputWidth={ '80px' } value={ `${ width }${ widthUnit }` } units={ units } /> diff --git a/packages/block-library/src/spacer/controls.js b/packages/block-library/src/spacer/controls.js index 4fc41a592f2dd9..9571d07fab87f6 100644 --- a/packages/block-library/src/spacer/controls.js +++ b/packages/block-library/src/spacer/controls.js @@ -4,7 +4,6 @@ import { __ } from '@wordpress/i18n'; import { InspectorControls, useSetting } from '@wordpress/block-editor'; import { - BaseControl, PanelBody, __experimentalUseCustomUnits as useCustomUnits, __experimentalUnitControl as UnitControl, @@ -51,17 +50,16 @@ function DimensionInput( { label, onChange, isResizing, value = '' } ) { ].join( '' ); return ( - - - + ); } diff --git a/packages/e2e-tests/specs/editor/blocks/cover.test.js b/packages/e2e-tests/specs/editor/blocks/cover.test.js index 8f34d7b96b3f01..715ed555631a49 100644 --- a/packages/e2e-tests/specs/editor/blocks/cover.test.js +++ b/packages/e2e-tests/specs/editor/blocks/cover.test.js @@ -134,7 +134,7 @@ describe( 'Cover', () => { const heightInput = ( await page.$x( - '//div[./label[contains(text(),"Minimum height of cover")]]//input' + '//div[./label[contains(text(),"Minimum height of cover")]]/following-sibling::div//input' ) )[ 0 ];