Skip to content

Commit

Permalink
Added some ARIA roles to the table in range_selector.njk
Browse files Browse the repository at this point in the history
  • Loading branch information
alaricsp committed Sep 26, 2024
1 parent d38a66a commit db28bca
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions lib/importer/nunjucks/importer/macros/range_selector.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,23 @@
<input type="hidden" name="importer:selection:BRCol" id="importer:selection:BRCol"/>
</div>

<table class="selectable govuk-body" data-persist-selection="true">
<table
class="selectable govuk-body"
data-persist-selection="true"
role="grid"
{% if caption %}
aria-labelledby="tablecaption"
{% endif %}
>
{% if caption %}
<caption
class="govuk-table__caption govuk-table__caption--m"
style="white-space: nowrap; overflow: hidden;">{{caption}}</caption>
<caption
id="tablecaption"
class="govuk-table__caption govuk-table__caption--m"
style="white-space: nowrap; overflow: hidden;">{{caption}}</caption>
{% endif %}
<tbody>
<tbody role="rowgroup">
{% for row in rows %}
<tr>
<tr role="row">
{% for cell in row %}
<td
{% if cell.colspan %}
Expand Down

0 comments on commit db28bca

Please sign in to comment.