amelioration(champ.mandatory): utilise le param svg fill pour colorier l'asterisk en fonction de l'etat du champ

This commit is contained in:
Martin 2023-06-22 16:43:36 +02:00 committed by mfo
parent 405c8dec17
commit e859665ea4
3 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@
.mandatory {
color: $dark-red;
fill: currentColor;
}
label:not(.fr-label),

View file

@ -52,7 +52,7 @@
opacity: 0.6;
}
.mandatory {
.manager-mandatory {
color: #A10005;
font-size: 18px;
}

View file

@ -2,7 +2,7 @@
%td.cell-data
= type_de_champ.libelle
- if type_de_champ.mandatory?
%span.mandatory *
%span.manager-mandatory *
%td.cell-data
= I18n.t("activerecord.attributes.type_de_champ.type_champs.#{type_de_champ.type_champ}")