Skip to content

Commit

Permalink
fix(Button): change size regular to medium
Browse files Browse the repository at this point in the history
  • Loading branch information
whilelucky committed Mar 8, 2018
1 parent dc925d3 commit bdb2d9e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/components/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Button = styled.button`
small: `
padding: ${p.theme.px(1)};
`,
regular: `
medium: `
padding: ${p.theme.px(2)};
`,
large: `
Expand All @@ -74,15 +74,15 @@ Button.propTypes = {
color: PropTypes.string,
kind: PropTypes.oneOf(['solid', 'outlined', 'transparent']),
shape: PropTypes.oneOf(['default', 'flat', 'rounded', 'circular']),
size: PropTypes.oneOf(['small', 'regular', 'large']),
size: PropTypes.oneOf(['small', 'medium', 'large']),
block: PropTypes.bool,
disabled: PropTypes.bool,
};

Button.defaultProps = {
color: 'primary',
kind: 'solid',
size: 'regular',
size: 'medium',
shape: 'default',
block: false,
disabled: false,
Expand Down
4 changes: 2 additions & 2 deletions src/components/Button/Button.story.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ storiesOf('Button', module)
color={select('color', Object.keys(theme.color), 'primary')}
kind={select('kind', ['solid', 'outlined', 'transparent'], 'solid')}
shape={select('shape', ['default', 'flat', 'rounded', 'circular'], 'default')}
size={select('size', ['small', 'regular', 'large'], 'regular')}
size={select('size', ['small', 'medium', 'large'], 'medium')}
block={boolean('block', false)}
disabled={boolean('disabled', false)}
onClick={action('button clicked')}
Expand Down Expand Up @@ -59,7 +59,7 @@ storiesOf('Button', module)
Small Button
</Button>
<br /><br />
<Button size="regular">
<Button size="medium">
Default Button
</Button>
<br /><br />
Expand Down
6 changes: 3 additions & 3 deletions src/components/Button/native/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const ButtonView = styled.View`
small: `
padding: ${p.theme.px(1)};
`,
regular: `
medium: `
padding: ${p.theme.px(2)};
`,
large: `
Expand Down Expand Up @@ -92,15 +92,15 @@ Button.propTypes = {
color: PropTypes.string,
kind: PropTypes.oneOf(['solid', 'outlined', 'transparent']),
shape: PropTypes.oneOf(['default', 'flat', 'rounded']),
size: PropTypes.oneOf(['small', 'regular', 'large']),
size: PropTypes.oneOf(['small', 'medium', 'large']),
block: PropTypes.bool,
disabled: PropTypes.bool,
};

Button.defaultProps = {
color: 'green',
kind: 'solid',
size: 'regular',
size: 'medium',
shape: 'default',
block: false,
disabled: false,
Expand Down
2 changes: 1 addition & 1 deletion storybook/native/stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ storiesOf('Button', module)
</Button>
</Spacer>
<Spacer margin={4}>
<Button size="regular">
<Button size="medium">
<Text>Default Button</Text>
</Button>
</Spacer>
Expand Down

0 comments on commit bdb2d9e

Please sign in to comment.