a11y(bloc-repetable): ETQ usager qui navigue au clavier, lorsque j'ajoute un champs repetable, le focus vient sur le 1er champs du bloc repetable

This commit is contained in:
Martin 2023-02-27 15:33:25 +01:00 committed by mfo
parent 6a544c210a
commit a3f1e1926a
19 changed files with 104 additions and 28 deletions

View file

@ -1,16 +1,16 @@
.dgfip-inputs
%div
= @form.label :numero_fiscal, t('.numero_fiscal_label')
= @form.label :numero_fiscal, t('.numero_fiscal_label'), for: @champ.numero_fiscal_input_id
%p.notice= t('.numero_fiscal_notice')
= @form.text_field :numero_fiscal,
required: @champ.required?,
aria: { describedby: @champ.describedby_id },
class: "width-33-desktop"
class: "width-33-desktop", id: @champ.numero_fiscal_input_id
%div
= @form.label :reference_avis, t('.reference_avis_label')
= @form.label :reference_avis, t('.reference_avis_label'), for: @champ.reference_avis_input_id
%p.notice= t('.reference_avis_notice')
= @form.text_field :reference_avis,
required: @champ.required?,
aria: { describedby: @champ.describedby_id },
class: "width-33-desktop"
class: "width-33-desktop", id: @champ.reference_avis_input_id