diff --git a/app/assets/stylesheets/forms.scss b/app/assets/stylesheets/forms.scss index 9f6423c1f..e27bd7f20 100644 --- a/app/assets/stylesheets/forms.scss +++ b/app/assets/stylesheets/forms.scss @@ -127,6 +127,7 @@ &.editable-champ-checkbox { label { font-weight: normal; + gap: 0.25rem; // Space before mandatory icon because dsfr set display:flex on checkbox label } input[type=checkbox] { diff --git a/app/components/editable_champ/champ_label_content_component/champ_label_content_component.html.haml b/app/components/editable_champ/champ_label_content_component/champ_label_content_component.html.haml index 932d82668..09fdd72f9 100644 --- a/app/components/editable_champ/champ_label_content_component/champ_label_content_component.html.haml +++ b/app/components/editable_champ/champ_label_content_component/champ_label_content_component.html.haml @@ -1,5 +1,5 @@ = @champ.libelle -- if @champ.public? && !@champ.checkbox? +- if @champ.public? - if @champ.mandatory? = render EditableChamp::AsteriskMandatoryComponent.new - else