grandlyon-glc: use custom style for field on error (#75382)

This commit is contained in:
Thomas Jund 2023-04-11 14:21:05 +02:00 committed by Frédéric Péters
parent 1132a07458
commit 5c1864c9d7
2 changed files with 9 additions and 6 deletions

View File

@ -84,12 +84,14 @@ form ul.errorlist {
}
}
div.error {
color: $primary-color;
font-size: 0.9em;
margin: 5px 0 0 0;
~ input {
border: 1px solid $primary-color;
@if ($field-on-error-style == custom) {
.widget-with-error {
input, textarea, select {
border: 1px solid $primary-color;
}
div.error {
color: $primary-color;
}
}
}

View File

@ -33,3 +33,4 @@ $or-separator: true;
$widget-unique-checkbox-position: left;
$widget-custom-radio-checkbox: true;
$field-on-error-style: custom;