a11y(particulier/choose_email): no empty legend, ensure to link fieldset with legend

This commit is contained in:
mfo 2024-07-24 15:43:46 +02:00 committed by Kara Diaby
parent 337f88575d
commit fe69ada7d9
No known key found for this signature in database
GPG key ID: C4D1B0CF9F24D759

View file

@ -5,14 +5,12 @@
%p= t('.intro_html', email: france_connect_email)
%p= t('.use_email_for_notifications')
= form_with url: france_connect_particulier_associate_user_path, method: :post, data: { controller: "email-france-connect" } do |f|
= hidden_field_tag :france_connect_email, france_connect_email
= hidden_field_tag :merge_token, merge_token
%fieldset.fr-fieldset
%legend.fr-fieldset__legend
%fieldset.fr-fieldset{ aria: { labelledby: 'notifications-or-not-notification' } }
%legend.fr-fieldset__legend#notifications-or-not-notification= t('.use_email_for_notifications')
.fr-fieldset__element.fr-fieldset__element--inline
.fr-radio-group
= f.radio_button :use_france_connect_email, true, id: 'use_france_connect_email_yes', class: 'fr-radio', required: true, data: { action: "email-france-connect#triggerEmailField", email_france_connect_target: "useFranceConnectEmail" }