Skip to content

Commit

Permalink
fix(text-input): rename sizing props (#5167)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored and asudoh committed Jan 24, 2020
1 parent 08f1d85 commit 8c577c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
}
}

.#{$prefix}--text-input--large {
.#{$prefix}--text-input--xl {
height: rem(48px);
}

.#{$prefix}--text-input--small {
.#{$prefix}--text-input--sm {
height: rem(32px);
}

Expand Down
6 changes: 3 additions & 3 deletions packages/react/src/components/TextInput/TextInput-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const types = {
};

const sizes = {
Large: 'large',
Default: '',
Small: 'small',
'Extra large size (xl)': 'xl',
'Regular size (lg)': '',
'Small size (sm)': 'sm',
};

function ControlledPasswordInputApp(props) {
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ TextInput.propTypes = {
placeholder: PropTypes.string,

/**
* Specify the size of the Text Input. Currently supports either `small` or `large` as an option. If omitted, defaults to standard size
* Specify the size of the Text Input. Currently supports either `sm` or `xl` as an option.
*/
size: PropTypes.string,
size: PropTypes.oneOf(['sm', 'xl']),

/**
* Specify the type of the <input>
Expand Down

0 comments on commit 8c577c5

Please sign in to comment.