From 7d61b7a592318a10d5cb3f881db3d1116806c8ac Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Tue, 8 Apr 2025 15:41:56 +0100 Subject: [PATCH] CLDC-3887: Remove focus order from app-table-group sections for accessibility improvements (#3048) --- app/views/merge_requests/_merge_request_list.html.erb | 2 +- app/views/organisation_relationships/_related_org_list.erb | 2 +- app/views/organisations/_organisation_list.html.erb | 2 +- app/views/schemes/_scheme_list.html.erb | 2 +- app/views/users/_user_list.html.erb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/merge_requests/_merge_request_list.html.erb b/app/views/merge_requests/_merge_request_list.html.erb index e73a1aa02..7a541cddb 100644 --- a/app/views/merge_requests/_merge_request_list.html.erb +++ b/app/views/merge_requests/_merge_request_list.html.erb @@ -1,4 +1,4 @@ -<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>"> +<section class="app-table-group" aria-labelledby="<%= title.dasherize %>"> <% if @merge_requests.empty? %> <p>No merge requests</p> <% else %> diff --git a/app/views/organisation_relationships/_related_org_list.erb b/app/views/organisation_relationships/_related_org_list.erb index e4c32f23f..5b3b50932 100644 --- a/app/views/organisation_relationships/_related_org_list.erb +++ b/app/views/organisation_relationships/_related_org_list.erb @@ -1,4 +1,4 @@ -<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>"> +<section class="app-table-group" aria-labelledby="<%= title.dasherize %>"> <%= govuk_table do |table| %> <%= table.with_caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: search_item, filters_count: 0)) %> diff --git a/app/views/organisations/_organisation_list.html.erb b/app/views/organisations/_organisation_list.html.erb index 16309a5eb..b5b4b820b 100644 --- a/app/views/organisations/_organisation_list.html.erb +++ b/app/views/organisations/_organisation_list.html.erb @@ -1,4 +1,4 @@ -<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>"> +<section class="app-table-group" aria-labelledby="<%= title.dasherize %>"> <%= govuk_table do |table| %> <%= table.with_caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "organisation", filters_count: applied_filters_count(@filter_type))) %> diff --git a/app/views/schemes/_scheme_list.html.erb b/app/views/schemes/_scheme_list.html.erb index 1c11e86d1..f8d3eb581 100644 --- a/app/views/schemes/_scheme_list.html.erb +++ b/app/views/schemes/_scheme_list.html.erb @@ -1,4 +1,4 @@ -<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>"> +<section class="app-table-group" aria-labelledby="<%= title.dasherize %>"> <%= govuk_table do |table| %> <%= table.with_caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> <span class="app-search__caption"> diff --git a/app/views/users/_user_list.html.erb b/app/views/users/_user_list.html.erb index 82a82b33b..aa686179d 100644 --- a/app/views/users/_user_list.html.erb +++ b/app/views/users/_user_list.html.erb @@ -1,4 +1,4 @@ -<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>"> +<section class="app-table-group" aria-labelledby="<%= title.dasherize %>"> <%= govuk_table do |table| %> <%= table.with_caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "user", filters_count: applied_filters_count(@filter_type))) %>