Browse Source

Merge pull request #534 from communitiesuk/bug/cldc-1184-a11y-logs-table

CLDC-1184: re-add tabindex to the logs table
pull/535/head
Kidd Hustle 3 years ago committed by GitHub
parent
commit
6afb02abe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      app/frontend/styles/_figure.scss
  2. 1
      app/frontend/styles/application.scss
  3. 4
      app/views/case_logs/_log_list.html.erb

10
app/frontend/styles/_figure.scss

@ -1,10 +0,0 @@
.app-figure {
margin: 0;
}
.app-figure__caption {
@include govuk-font($size: 19);
border-top: 1px solid $govuk-border-colour;
margin-bottom: govuk-spacing(6);
padding-top: govuk-spacing(4);
}

1
app/frontend/styles/application.scss

@ -18,7 +18,6 @@ $govuk-new-link-styles: true;
@import "button"; @import "button";
@import "card"; @import "card";
@import "document-list"; @import "document-list";
@import "figure";
@import "filter"; @import "filter";
@import "filter-layout"; @import "filter-layout";
@import "header"; @import "header";

4
app/views/case_logs/_log_list.html.erb

@ -1,5 +1,6 @@
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<table class="govuk-table"> <table class="govuk-table">
<caption class="govuk-!-text-align-left govuk-!-margin-top-4 govuk-!-margin-bottom-4"> <caption id="<%= title.dasherize %>" class="govuk-!-text-align-left govuk-!-margin-top-4 govuk-!-margin-bottom-4">
<span class="govuk-!-margin-right-4"> <span class="govuk-!-margin-right-4">
<strong><%= pagy.count %></strong> total <%= title.downcase %> <strong><%= pagy.count %></strong> total <%= title.downcase %>
</span> </span>
@ -55,3 +56,4 @@
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
</section>

Loading…
Cancel
Save