File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
components/src/components/text-input
react/src/components/TextInput Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 44
44
}
45
45
}
46
46
47
- .#{$prefix } --text-input--large {
47
+ .#{$prefix } --text-input--xl {
48
48
height : rem (48px );
49
49
}
50
50
51
- .#{$prefix } --text-input--small {
51
+ .#{$prefix } --text-input--sm {
52
52
height : rem (32px );
53
53
}
54
54
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ const types = {
20
20
} ;
21
21
22
22
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 ' ,
26
26
} ;
27
27
28
28
function ControlledPasswordInputApp ( props ) {
Original file line number Diff line number Diff line change @@ -146,9 +146,9 @@ TextInput.propTypes = {
146
146
placeholder : PropTypes . string ,
147
147
148
148
/**
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.
150
150
*/
151
- size : PropTypes . string ,
151
+ size : PropTypes . oneOf ( [ 'sm' , 'xl' ] ) ,
152
152
153
153
/**
154
154
* Specify the type of the <input>
You can’t perform that action at this time.
0 commit comments