From b27c521f790aae770b43932bd6e85714ca6b12b4 Mon Sep 17 00:00:00 2001 From: Dana Cotoran Date: Mon, 1 Mar 2021 16:28:38 +0000 Subject: [PATCH] Update heading levels on Your Information page This fixes an accessibility issue highlighted in the DAC report, wherein the heading structure on the "Your information" consent page is flat, despite hierarchical relationships being present. Updating the radio groups' headings to h3 (previously h2) addresses this issue. --- app/views/registrations/your_information.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/registrations/your_information.html.erb b/app/views/registrations/your_information.html.erb index 9fcc118b..f6f107b2 100644 --- a/app/views/registrations/your_information.html.erb +++ b/app/views/registrations/your_information.html.erb @@ -41,6 +41,7 @@ id: "cookie_consent", heading: t("devise.registrations.your_information.fields.cookie_consent.heading"), heading_size: "s", + heading_level: 3, error_message: error_items("cookie_consent", @error_items), hint: t("devise.registrations.your_information.fields.cookie_consent.hint"), items: [ @@ -79,6 +80,7 @@ id: "feedback_consent", heading: t("devise.registrations.your_information.fields.feedback_consent.heading"), heading_size: "s", + heading_level: 3, error_message: error_items("feedback_consent", @error_items), hint: t("devise.registrations.your_information.fields.feedback_consent.hint"), items: [