InputField: hide error when component is disabled

This commit is contained in:
Julia Radzhabova 2020-03-11 13:21:26 +03:00
parent 4c9592350c
commit 030aaf1768
2 changed files with 11 additions and 11 deletions

View file

@ -98,7 +98,7 @@
.button-otherstates-icon(@icon-class, @icon-size) {
.btn {
&:active, &.active {
&:not(:disabled):not(.disabed) {
&:not(:disabled):not(.disabled) {
> .@{icon-class} {
@iconsize: -1*@icon-size;

View file

@ -47,20 +47,20 @@
position: relative;
}
&.error {
input {
border-color: @brand-danger;
}
.input-error {
display: block;
}
}
&.form-control:focus,
.form-control:focus {
border-color: @gray-darker;
}
&.error {
input:not([disabled]) {
border-color: @brand-danger;
}
input:not([disabled]) + .input-error {
display: block;
}
}
}
input:required:focus:invalid,