Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box Control: Rename VerticalHorizontalInputControls to AxialInputControls #33016

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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