toulouse-2022: use custom style for field on error (#75382)

This commit is contained in:
Thomas Jund 2023-04-06 17:25:14 +02:00 committed by Frédéric Péters
parent 8cfa4ddd04
commit c3a5a66603
2 changed files with 18 additions and 16 deletions

View File

@ -521,22 +521,23 @@ div#rub_service {
h4 {
@extend .h3;
}
div.error {
font-weight: normal;
font-size: $fz-small;
color: $error-color;
background: none;
padding-left: 0;
&::before {
pointer-events: none;
content: "\f071"; // triangle-exclamation
font-family: FontAwesome;
font-size: 20px;
color: $salmon-dark;
}
p {
display: inline;
padding-left: 0.5rem;
@if ($field-on-error-style == custom) {
div.error {
font-weight: normal;
font-size: $fz-small;
color: $error-color;
background: none;
padding-left: 0;
&::before {
pointer-events: none;
content: "\f071"; // triangle-exclamation
font-family: FontAwesome;
font-size: 20px;
color: $salmon-dark;
}
p {
padding-left: 0.5rem;
}
}
}
.submit-button button::after {

View File

@ -93,6 +93,7 @@ $button-hover-background: $salmon;
$title-background: transparent;
$error-color: #D00000;
$field-on-error-style: custom;
$form-sidebar-position: top;
$wcs-step-color: $font-color;
$wcs-step-current-color: $wcs-step-color;