Skip to content

Commit

Permalink
switch to view instead of div
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Sep 12, 2022
1 parent 136a4bc commit 8e3da3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-library/src/spacer/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
__experimentalParseQuantityAndUnitFromRawValue as parseQuantityAndUnitFromRawValue,
} from '@wordpress/components';
import { useInstanceId } from '@wordpress/compose';
import { View } from '@wordpress/primitives';

/**
* Internal dependencies
Expand Down Expand Up @@ -71,7 +72,7 @@ function DimensionInput( { label, onChange, isResizing, value = '' } ) {
) }

{ spacingSizes?.length > 0 && (
<div className="tools-panel-item-spacing">
<View className="tools-panel-item-spacing">
<SpacingSizesControl
values={ { all: computedValue } }
onChange={ handleOnChange }
Expand All @@ -81,7 +82,7 @@ function DimensionInput( { label, onChange, isResizing, value = '' } ) {
allowReset={ false }
splitOnAxis={ false }
/>
</div>
</View>
) }
</>
);
Expand Down

0 comments on commit 8e3da3f

Please sign in to comment.