From fe69ada7d96e11ab7d0063cbd09c736c6756cf50 Mon Sep 17 00:00:00 2001 From: mfo Date: Wed, 24 Jul 2024 15:43:46 +0200 Subject: [PATCH] a11y(particulier/choose_email): no empty legend, ensure to link fieldset with legend --- app/views/france_connect/particulier/choose_email.html.haml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/views/france_connect/particulier/choose_email.html.haml b/app/views/france_connect/particulier/choose_email.html.haml index f72f970dc..a1842f3d7 100644 --- a/app/views/france_connect/particulier/choose_email.html.haml +++ b/app/views/france_connect/particulier/choose_email.html.haml @@ -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" }