Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Swap positions of ActionButtons coz UX
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Nov 27, 2018
1 parent b9844bc commit fa90ea6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/Button/ActionButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ const ActionButtons = ({
...props
}: Props) => (
<Set {...props}>
<Button isLoading={isLoading} onClick={onClickSubmit} palette={palette} type={type} {...submitProps}>
{/* $FlowFixMe */}
{submitText}
</Button>
<Button onClick={onClickCancel} {...cancelProps}>
{/* $FlowFixMe */}
{cancelText}
</Button>
<Button isLoading={isLoading} onClick={onClickSubmit} palette={palette} type={type} {...submitProps}>
{/* $FlowFixMe */}
{submitText}
</Button>
</Set>
);

Expand Down
2 changes: 1 addition & 1 deletion src/Card/Card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You can render a header with actions for the card using the `headerActions` prop
You can render a footer for the card using the `footer` prop.

<Playground>
<Card title="This is a title" footer={<ActionButtons />}>
<Card title="This is a title" footer={<ActionButtons justifyContent="flex-end" />}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse diam ipsum, cursus id placerat congue, ultrices
eget lectus. Duis posuere, lacus sed tristique commodo, sapien turpis mollis nunc, vestibulum consectetur lectus
augue sit amet justo.
Expand Down
4 changes: 2 additions & 2 deletions src/Dialog/Dialog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import Dialog from './index';
You can render a footer for the dialog using the `footer` prop.

<Playground>
<Dialog title="This is a title" footer={<ActionButtons />}>
<Dialog title="This is a title" footer={<ActionButtons justifyContent="flex-end" />}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse diam ipsum, cursus id placerat congue, ultrices
eget lectus. Duis posuere, lacus sed tristique commodo, sapien turpis mollis nunc, vestibulum consectetur lectus
augue sit amet justo.
Expand All @@ -45,7 +45,7 @@ You can render a footer for the dialog using the `footer` prop.
To render a close icon on a dialog, use the `showCloseButton` prop.

<Playground>
<Dialog onClickClose={() => console.log('close')} showCloseButton title="This is a title" footer={<ActionButtons />}>
<Dialog onClickClose={() => console.log('close')} showCloseButton title="This is a title" footer={<ActionButtons justifyContent="flex-end" />}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse diam ipsum, cursus id placerat congue, ultrices
eget lectus. Duis posuere, lacus sed tristique commodo, sapien turpis mollis nunc, vestibulum consectetur lectus
augue sit amet justo.
Expand Down

0 comments on commit fa90ea6

Please sign in to comment.