Skip to content

Commit 8c577c5

Browse files
tw15eganasudoh
authored andcommitted
fix(text-input): rename sizing props (#5167)
1 parent 08f1d85 commit 8c577c5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/components/src/components/text-input/_text-input.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
}
4545
}
4646

47-
.#{$prefix}--text-input--large {
47+
.#{$prefix}--text-input--xl {
4848
height: rem(48px);
4949
}
5050

51-
.#{$prefix}--text-input--small {
51+
.#{$prefix}--text-input--sm {
5252
height: rem(32px);
5353
}
5454

packages/react/src/components/TextInput/TextInput-story.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const types = {
2020
};
2121

2222
const sizes = {
23-
Large: 'large',
24-
Default: '',
25-
Small: 'small',
23+
'Extra large size (xl)': 'xl',
24+
'Regular size (lg)': '',
25+
'Small size (sm)': 'sm',
2626
};
2727

2828
function ControlledPasswordInputApp(props) {

packages/react/src/components/TextInput/TextInput.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ TextInput.propTypes = {
146146
placeholder: PropTypes.string,
147147

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

153153
/**
154154
* Specify the type of the <input>

0 commit comments

Comments
 (0)