From f4e62a50a45a36e4f0badc7cda74ad0f25658c20 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Wed, 27 Jul 2022 16:07:45 +0100 Subject: [PATCH] Add visually hidden headings for tab content sections --- app/views/schemes/check_answers.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/schemes/check_answers.html.erb b/app/views/schemes/check_answers.html.erb index 561fca9c9..5ee191daa 100644 --- a/app/views/schemes/check_answers.html.erb +++ b/app/views/schemes/check_answers.html.erb @@ -6,6 +6,7 @@ <%= f.govuk_error_summary %> <%= govuk_tabs(title: "Check your answers before creating this scheme") do |component| %> <% component.tab(label: "Scheme") do %> +

Scheme

<% @scheme.check_details_attributes.each do |attr| %> <% next if current_user.data_coordinator? && attr[:name] == ("owned by") %> @@ -33,6 +34,7 @@
<% end %> <% component.tab(label: "Locations") do %> +

Locations

<%= govuk_table do |table| %> <%= table.caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> <%= @scheme.locations.count %> <%= @scheme.locations.count.eql?(1) ? "location" : "locations" %>