rename .label-not-label class into .form-label

This commit is contained in:
clemkeirua 2020-03-23 16:11:20 +01:00 committed by GitHub Action
parent d49f6e703e
commit 2ecb9cd5a2
4 changed files with 9 additions and 9 deletions

View file

@ -44,6 +44,12 @@
}
}
.form-label {
font-weight: bold;
font-size: 18px;
margin-bottom: $default-padding;
}
.notice {
@include notice-text-style;
margin-top: - $default-spacer;
@ -373,12 +379,6 @@
margin-bottom: $default-padding;
}
.label-not-label {
font-weight: bold;
font-size: 18px;
margin-bottom: $default-padding;
}
.explication {
margin-bottom: $default-fields-spacer;
padding: $default-padding / 2;

View file

@ -50,7 +50,7 @@
= label_tag :dossier_id, "Numéro de dossier", class: 'hidden'
= text_field_tag :dossier_id, "", placeholder: "Numéro de dossier"
%button{ title: "Rechercher" }
= image_tag "icons/search-blue.svg", alt: '', 'aria-hidden':'true'
= image_tag "icons/search-blue.svg", alt: 'Rechercher', 'aria-hidden':'true'
- if instructeur_signed_in? || user_signed_in?
%li

View file

@ -1,6 +1,6 @@
= # we do this trick because some html elements should use 'label' and some should be plain paragraphs
- if has_html_label?(champ)
%h2.label-not-label
%h4.form-label
= render partial: 'shared/dossiers/editable_champs/champ_label_content', locals: { champ: champ, seen_at: seen_at }
- else
= form.label champ.main_value_name do

View file

@ -8,7 +8,7 @@
%p.mb-1 Merci de remplir vos informations personnelles pour accéder à la démarche.
%span.label-not-label
%span.form-label
%span.mandatory *
champs requis