Skip to content

Commit

Permalink
Box Control: Rename VerticalHorizontalInputControls to AxialInputCont…
Browse files Browse the repository at this point in the history
…rols (#33016)
  • Loading branch information
andrewserong authored Jun 30, 2021
1 parent 6eac4a2 commit fba2772
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Layout } from './styles/box-control-styles';

const groupedSides = [ 'vertical', 'horizontal' ];

export default function VerticalHorizontalInputControls( {
export default function AxialInputControls( {
onChange,
onFocus,
onHoverOn,
Expand Down
6 changes: 2 additions & 4 deletions packages/components/src/box-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Button from '../button';
import { FlexItem, FlexBlock } from '../flex';
import AllInputControl from './all-input-control';
import InputControls from './input-controls';
import VerticalHorizontalInputControls from './vertical-horizontal-input-controls';
import AxialInputControls from './axial-input-controls';
import BoxControlIcon from './icon';
import { Text } from '../text';
import LinkedButton from './linked-button';
Expand Down Expand Up @@ -157,9 +157,7 @@ export default function BoxControl( {
) }
{ ! isLinked && splitOnAxis && (
<FlexBlock>
<VerticalHorizontalInputControls
{ ...inputControlProps }
/>
<AxialInputControls { ...inputControlProps } />
</FlexBlock>
) }
{ ! hasOneSide && (
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/box-control/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ export const singleSide = () => {
);
};

export const verticalHorizontalControls = () => {
export const axialControls = () => {
return <DemoExample splitOnAxis={ true } />;
};

export const verticalHorizontalControlsWithSingleSide = () => {
export const axialControlsWithSingleSide = () => {
return (
<DemoExample
sides={ [ 'horizontal' ] }
Expand Down

0 comments on commit fba2772

Please sign in to comment.