Adding fields error state

This commit is contained in:
xavijam
2016-04-18 16:04:38 +02:00
parent 6b684d46e2
commit 8ea6ac154f
4 changed files with 28 additions and 12 deletions
+6 -3
View File
@@ -13,6 +13,7 @@
@import '../../cdb-variables/sizes';
@import '../../cdb-variables/colors';
@import '../../cdb-utilities/helpers';
.CDB-InputText {
width: 100%;
@@ -34,8 +35,10 @@
background: $cThirdBackground;
}
&.has-error {
border: 1px solid rgba($cError, 0.48);
background: rgba($cError, 0.04);
color: $cError;
@include default-form-error-style();
}
}
.CDB-FieldError .CDB-InputText {
@include default-form-error-style();
}