a11y(particulier/choose_email): no empty legend, ensure to link fieldset with legend
This commit is contained in:
parent
337f88575d
commit
fe69ada7d9
1 changed files with 2 additions and 4 deletions
|
@ -5,14 +5,12 @@
|
||||||
|
|
||||||
%p= t('.intro_html', email: france_connect_email)
|
%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|
|
= 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 :france_connect_email, france_connect_email
|
||||||
= hidden_field_tag :merge_token, merge_token
|
= hidden_field_tag :merge_token, merge_token
|
||||||
|
|
||||||
%fieldset.fr-fieldset
|
%fieldset.fr-fieldset{ aria: { labelledby: 'notifications-or-not-notification' } }
|
||||||
%legend.fr-fieldset__legend
|
%legend.fr-fieldset__legend#notifications-or-not-notification= t('.use_email_for_notifications')
|
||||||
.fr-fieldset__element.fr-fieldset__element--inline
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
.fr-radio-group
|
.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" }
|
= 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" }
|
||||||
|
|
Loading…
Reference in a new issue