File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 591
591
border-radius : @formStates [@@state ][borderRadius];
592
592
box-shadow : @formStates [@@state ][boxShadow];
593
593
}
594
- & when (@state = error) {
594
+ & when (@state = error) and ( @variationFormInvalid ) {
595
595
.ui.form .field input :not (:placeholder- shown):invalid {
596
596
color : @c ;
597
597
background : @bg ;
Original file line number Diff line number Diff line change 191
191
color : @formStates [@@state ][color ];
192
192
box-shadow : @formStates [@@state ][boxShadow];
193
193
}
194
- & when (@state = error) {
194
+ & when (@state = error) and ( @variationInputInvalid ) {
195
195
.ui.input > input :not (:placeholder- shown):invalid {
196
196
background-color : @formStates [@@state ][background ];
197
197
border-color : @formStates [@@state ][borderColor];
718
718
color : @fileButtonTextColor ;
719
719
}
720
720
}
721
-
722
- .ui.form .field input [type= " file" ]:required:invalid ,
723
- .ui.file.input input [type= " file" ]:required:invalid {
724
- color : @negativeTextColor ;
725
- background : @negativeBackgroundColor ;
726
- border-color : @negativeBorderColor ;
721
+ & when (@variationInputInvalid ) {
722
+ .ui.form .field input [type= " file" ]:required:invalid ,
723
+ .ui.file.input input [type= " file" ]:required:invalid {
724
+ color : @negativeTextColor ;
725
+ background : @negativeBackgroundColor ;
726
+ border-color : @negativeBorderColor ;
727
+ }
727
728
}
728
729
729
730
input [type= " file" ].ui.invisible.file.input ,
Original file line number Diff line number Diff line change 126
126
@variationInputDisabled: true;
127
127
@variationInputInverted: true;
128
128
@variationInputStates: @variationAllStates;
129
+ @variationInputInvalid: true;
129
130
@variationInputTransparent: true;
130
131
@variationInputCorner: true;
131
132
@variationInputLoading: true;
272
273
@variationFormTransparent: true;
273
274
@variationFormLoading: true;
274
275
@variationFormStates: @variationAllStates;
276
+ @variationFormInvalid: true;
275
277
@variationFormRequired: true;
276
278
@variationFormInline: true;
277
279
@variationFormGrouped: true;
You can’t perform that action at this time.
0 commit comments