Browse Source

CLDC-3887: Remove focus order from app-table-group sections for accessibility improvements (#3048)

pull/3050/head
Manny Dinssa 1 week ago committed by GitHub
parent
commit
7d61b7a592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/views/merge_requests/_merge_request_list.html.erb
  2. 2
      app/views/organisation_relationships/_related_org_list.erb
  3. 2
      app/views/organisations/_organisation_list.html.erb
  4. 2
      app/views/schemes/_scheme_list.html.erb
  5. 2
      app/views/users/_user_list.html.erb

2
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 %>

2
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)) %>

2
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))) %>

2
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">

2
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))) %>

Loading…
Cancel
Save