From 854388dcda084ff2d2f970b3a0f7261757f2cf62 Mon Sep 17 00:00:00 2001 From: Thomas JUND Date: Thu, 6 Apr 2023 15:55:36 +0200 Subject: [PATCH] nantes: use custom style for field on error (#75382) --- static/nantes/_custom.scss | 8 +++++--- static/nantes/_vars.scss | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/static/nantes/_custom.scss b/static/nantes/_custom.scss index d801a490..6318083f 100644 --- a/static/nantes/_custom.scss +++ b/static/nantes/_custom.scss @@ -560,9 +560,11 @@ label { font-weight: 600; } -.widget .error { - font-weight: normal; - color: $red-dark; +@if ($field-on-error-style == custom) { + .widget .error { + font-weight: normal; + color: $red-dark; + } } diff --git a/static/nantes/_vars.scss b/static/nantes/_vars.scss index 9d619806..ec09053c 100644 --- a/static/nantes/_vars.scss +++ b/static/nantes/_vars.scss @@ -112,6 +112,8 @@ $cancel-button-style: '%inverted-button'; $buttons-order: cancel (grow), previous, submit; $form-accent-color: $primary-color; +$error-color: $red-dark; +$field-on-error-style: custom; $widget-unique-checkbox-position: left; $widget-background: white; $widget-border-radius: $radius-l;