Skip to content

Commit

Permalink
hotfix/JS-131: Updated checkbox labels to fix broken checkboxes (#841)
Browse files Browse the repository at this point in the history
* Updated checkbox labels to fix broken checkboxes

* Update contact-logs-tab.njk
  • Loading branch information
callum-r-young authored Nov 15, 2024
1 parent 5ef8608 commit dece167
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input select-check juror-select-check" id="check-all-jurors" name="selectAllCheckbox"
{% if params.totalCheckedJurors === params.totalJurors %}checked{% endif %}/>
<label class="govuk-label govuk-checkboxes__label" for="selectAllCheckbox">
<label class="govuk-label govuk-checkboxes__label" for="check-all-jurors">
<span class="govuk-visually-hidden">Select All</span>
</label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/templates/documents/exemption/exemption-list.njk
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<th scope="col" class="govuk-table__header jd-assign-replies-table-head jd-middle-align">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input select-check juror-select-check" id="check-all-jurors" name="check-all-jurors"/>
<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0">
<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0" for="check-all-jurors">
<span class="govuk-visually-hidden">Select All</span>
</label>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% from "moj/components/timeline/macro.njk" import mojTimeline %}
{% from "govuk/components/tag/macro.njk" import govukTag %}

<section>
<div class="mod-juror-record__title govuk-body">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" id="check-all-jurors"
aria-label="check-all-jurors" {% if totalCheckedJurors === totalJurors %}checked{% endif %}/>
<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0" for="jurors-all">
<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0" for="check-all-jurors">
<span class="govuk-visually-hidden">Select all jurors</span>
</label>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" id="check-all-expenses"
aria-label="check-all-expenses" {% if params.totalCheckedExpenses === params.totalExpenses %}checked{% endif %}/>
<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0" for="expenses-all">
<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0" for="check-all-expenses">
<span class="govuk-visually-hidden">Select all expenses</span>
</label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/templates/messaging/_partials/jurors-table.njk
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
html:
'<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">' +
'<input type="checkbox" class="govuk-checkboxes__input" id="check-all-jurors" aria-label="check-all-jurors"' + _allChecked + '/>' +
'<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0" for="jurors-all">' +
'<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0" for="check-all-jurors">' +
'<span class="govuk-visually-hidden">Select all jurors</span>' +
'</label>' +
'</div>',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<td class="govuk-table__cell">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" id="select-{{pool.pool_number}}" name="selectedPools" value="{{pool.pool_number}}">
<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0" for="{{pool.pool_number}}">
<label class="govuk-label govuk-checkboxes__label govuk-!-padding-0" for="select-{{pool.pool_number}}">
<span class="govuk-visually-hidden">Select {{pool.pool_number}}</span>
</label>
</div>
Expand Down

0 comments on commit dece167

Please sign in to comment.