fix(checkbox): show mandatory icon on mandatory champ

Closes #9891
This commit is contained in:
Colin Darie 2024-02-09 12:52:21 +01:00
parent c4bdef3a1c
commit 9639d68ebf
2 changed files with 2 additions and 1 deletions

View file

@ -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] {

View file

@ -1,5 +1,5 @@
= @champ.libelle
- if @champ.public? && !@champ.checkbox?
- if @champ.public?
- if @champ.mandatory?
= render EditableChamp::AsteriskMandatoryComponent.new
- else