Skip to content

Commit

Permalink
Merge pull request #11143 from demarches-simplifiees/a11y-miscellaneous
Browse files Browse the repository at this point in the history
ETQ usager, je veux que le contenu des panneaux "Gestion des invités" et "Votre identité" soient correctement hiérarchisés
  • Loading branch information
colinux authored Dec 17, 2024
2 parents 1f8325b + 274407e commit 68624c9
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 31 deletions.
11 changes: 6 additions & 5 deletions app/assets/stylesheets/demande.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@

.champ-label {
margin-bottom: 0;
padding-bottom: 0;
font-size: 0.8rem;
font-weight: 300;
}

dt.champ-label::after {
content: ' :';
speak: none;
}

.champ-content {
padding: 0 0 0.5rem;
font-weight: 600;
Expand All @@ -20,11 +26,6 @@
font-weight: normal;
}

p {
padding: 0;
margin: 0;
}

ul {
margin-block-start: 0;
}
Expand Down
6 changes: 3 additions & 3 deletions app/views/invites/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%h4.fr-h5= t('views.invites.form.modal_title')
%p.fr-highlight.fr-mb-3w= t('views.invites.form.modal_highlight')

%h5.fr-h6= t('views.invites.form.edit_dossier', count: invites.size)
= t('views.invites.form.edit_dossier_html', count: invites.size)
- if invites.present?
#invite-list
%ul
Expand All @@ -15,9 +15,9 @@
- if dossier.brouillon?
%p= t('views.invites.form.submit_dossier_yourself')

= form_tag dossier_invites_path(dossier), data: { turbo: true, turbo_force: :server }, method: :post, aria: { labelledby: 'invite-form-legend' } do
= form_tag dossier_invites_path(dossier), data: { turbo: true, turbo_force: :server }, method: :post do
%fieldset.fr-fieldset
%legend.fr-fieldset__legend#invite-form-legend
%legend.fr-fieldset__legend
%h5.fr-h6= t('views.invites.form.title')

.fr-fieldset__element
Expand Down
28 changes: 14 additions & 14 deletions app/views/shared/dossiers/_identite_individual.html.haml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
%dl.fr-pl-0
.champ-row
%dt.champ-label= t('views.users.dossiers.identite.civility')
%dd.champ-content= dossier.individual.gender

= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.civility')) do |c|
- c.with_value do
%p= dossier.individual.gender
.champ-row
%dt.champ-label= t('views.users.dossiers.identite.first_name')
%dd.champ-content= dossier.individual.prenom

= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.first_name')) do |c|
- c.with_value do
%p= dossier.individual.prenom
.champ-row
%dt.champ-label= t('views.users.dossiers.identite.last_name')
%dd.champ-content= dossier.individual.nom

= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.last_name')) do |c|
- c.with_value do
%p= dossier.individual.nom

- if dossier.individual.birthdate.present?
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.birthdate')) do |c|
- c.with_value do
%p= try_format_date(dossier.individual.birthdate)
- if dossier.individual.birthdate.present?
.champ-row
%dt.champ-label= t('views.users.dossiers.identite.birthdate')
%dd.champ-content= try_format_date(dossier.individual.birthdate)
4 changes: 2 additions & 2 deletions app/views/users/dossiers/_merci.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.fr-grid-row.fr-col-offset-md-2.fr-col-md-8
.fr-col-12
= image_tag('user/envoi-dossier.svg', alt: '', class: 'mt-8')
%h1.fr-mt-4w.fr-mb-3w.mx-0= t('views.users.dossiers.merci.thanks')
%h2.send.fr-m-2w.text-lg
%p.fr-h1.fr-mt-4w= t('views.users.dossiers.merci.thanks')
%h1.send.fr-m-2w.text-lg
= t('views.users.dossiers.merci.dossier_send_l1')
%strong= procedure.libelle
= t('views.users.dossiers.merci.dossier_send_l2')
Expand Down
7 changes: 4 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,10 @@ en:
send_invitation: Send an invitation
withdraw_permission: "Withdraw the permission"
want_to_withdraw_permission: "Would you like to withdraw the permission of %{email}?"
edit_dossier:
one: "1 user can edit this file."
other: "%{count} users can edit this file."
edit_dossier_html:
zero: '<p class="fr-h6">No user can edit this file.</p>'
one: '<h5 class="fr-h6">1 user can edit this file</h5>'
other: '<h5 class="fr-h6">%{count} users can edit this file</h5>'
submit_dossier_yourself: "You must submit the file yourself when it is complete."
pagination:
next: Next
Expand Down
8 changes: 4 additions & 4 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ fr:
send_invitation: Envoyer une invitation
withdraw_permission: "Révoquer l’autorisation"
want_to_withdraw_permission: "Souhaitez-vous supprimer l’autorisation de %{email} ?"
edit_dossier:
zero: "Aucun invité peut modifier ce dossier"
one: "1 invité peut modifier ce dossier"
other: "%{count} invités peuvent modifier ce dossier"
edit_dossier_html:
zero: '<p class="fr-h6">Aucun invité peut modifier ce dossier.</p>'
one: '<h5 class="fr-h6">1 invité peut modifier ce dossier</h5>'
other: '<h5 class="fr-h6">%{count} invités peuvent modifier ce dossier</h5>'
submit_dossier_yourself: "Une fois le dossier complet, vous devez le déposer vous-même."
pagination:
next: Suivant
Expand Down

0 comments on commit 68624c9

Please sign in to comment.