dsfr: use custom style for field on error (#75382)

This commit is contained in:
Thomas Jund 2023-04-06 16:58:28 +02:00 committed by Frédéric Péters
parent 96912a3c67
commit 384baffd71
2 changed files with 13 additions and 7 deletions

View File

@ -493,13 +493,18 @@ a.add-more-items--button {
margin-top: 0;
}
.widget div.error {
color: $error-525;
margin-left: 0;
font-weight: normal;
padding-left: 1.5rem;
background: url(error-fill-red.svg) left 0.4rem no-repeat;
background-size: 1rem;
@if ($field-on-error-style == custom) {
.widget div.error {
color: $error-525;
margin-left: 0;
font-weight: normal;
padding-left: 1.5rem;
background: url(error-fill-red.svg) left 0.25rem no-repeat;
background-size: 1rem;
&::before {
content: none;
}
}
}
#footer {

View File

@ -60,6 +60,7 @@ $widget-custom-radio-checkbox: true;
$widget-custom-radio-checkbox-color: $blue-france-500;
$widget-custom-radio-checkbox-border-color: $grey-800;
$widget-custom-radio-checkbox-marker-color: $blue-france-500;
$field-on-error-style: custom;
$footer-background: white;
$footer-color: $font-color;