Merge pull request #10879 from demarches-simplifiees/a11y-fix-process-home-connected

Corrige les défaut d'accessibilité de l'étape 1 d'une démarche
This commit is contained in:
Corinne Durrmeyer 2024-10-03 08:37:31 +00:00 committed by GitHub
commit 19cd42ac8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 30 additions and 17 deletions

View file

@ -46,11 +46,17 @@
%label.fr-label{ for: "identite_champ_radio_#{Individual::GENDER_MALE}" }
= Individual.human_attribute_name('gender.male')
.fr-fieldset__element.fr-mb-0
%fieldset.fr-fieldset.width-100
.fr-fieldset.width-100
.fr-fieldset__element.fr-fieldset__element--short-text
= render Dsfr::InputComponent.new(form: individual, attribute: :prenom, opts: { autocomplete: (for_tiers? ? false : 'given-name') })
- if for_tiers?
= render Dsfr::InputComponent.new(form: individual, attribute: :prenom)
- else
= render Dsfr::InputComponent.new(form: individual, attribute: :prenom, opts: { autocomplete: 'given-name' })
.fr-fieldset__element.fr-fieldset__element--short-text
= render Dsfr::InputComponent.new(form: individual, attribute: :nom, opts: { autocomplete: (for_tiers? ? false : 'family-name') })
- if for_tiers?
= render Dsfr::InputComponent.new(form: individual, attribute: :nom)
- else
= render Dsfr::InputComponent.new(form: individual, attribute: :nom, opts: { autocomplete: 'family-name' })
- if @dossier.procedure.ask_birthday?
.fr-fieldset__element

View file

@ -1,4 +1,4 @@
= form_with(url: dossiers_path, method: :get ) do |f|
= form_with(url: dossiers_path, method: :get, class: "fr-mb-5w") do |f|
= f.hidden_field :q, value: params[:q], id: nil
= f.label :procedure_id, t('.procedures.label'), class: 'fr-label fr-mb-1w', for: 'procedure_select'
.flex