Skip to content

Commit

Permalink
Switch from box icon back to text labels
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Jul 21, 2022
1 parent b2f00bc commit 23a403f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ import {
RangeControl,
CustomSelectControl,
__experimentalUnitControl as UnitControl,
__experimentalBoxControlIcon as BoxControlIcon,
__experimentalHStack as HStack,
__experimentalText as Text,
} from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { settings } from '@wordpress/icons';

/**
* Internal dependencies
*/
import { LABELS } from './utils';

export default function SpacingInputControl( {
spacingSizes,
value,
Expand Down Expand Up @@ -51,17 +55,7 @@ export default function SpacingInputControl( {
return (
<>
<HStack>
<BoxControlIcon
side={ side }
sides={ [
'top',
'right',
'bottom',
'left',
'vertical',
'horizontal',
] }
/>
<Text>{ LABELS[ side ] }</Text>

{ spacingSizes.length <= 8 && ! showCustomValueControl && (
<Text className="components-spacing-sizes-control__hint">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
.components-unit-control-wrapper {
width: 110px;
flex-shrink: 0;
margin-bottom: 12px;
margin-top: 12px;
}
.components-range-control {
flex: 1;
Expand Down

0 comments on commit 23a403f

Please sign in to comment.