File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
components/src/components/text-input
react/src/components/TextInput Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 142142 fill : $icon-01 ;
143143 }
144144
145- .#{$prefix } --text-input--invalid {
145+ .#{$prefix } --text-input--invalid ,
146+ .#{$prefix } --text-input--warning {
146147 padding-right : $carbon--spacing-08 ;
147148 }
148149
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ const TextInput = React.forwardRef(function TextInput(
4343 const textInputClasses = classNames ( `${ prefix } --text-input` , className , {
4444 [ `${ prefix } --text-input--light` ] : light ,
4545 [ `${ prefix } --text-input--invalid` ] : invalid ,
46+ [ `${ prefix } --text-input--warning` ] : ! invalid && warn ,
4647 [ `${ prefix } --text-input--${ size } ` ] : size ,
4748 } ) ;
4849 const sharedTextInputProps = {
You can’t perform that action at this time.
0 commit comments