css: improve styles of form field on error (#75382) #202

Merged
fpeters merged 22 commits from wip/75382-form-field-on-error into main 2023-04-20 18:36:46 +02:00
2 changed files with 9 additions and 6 deletions
Showing only changes of commit 5c1864c9d7 - Show all commits

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;