Skip to content

Commit

Permalink
Removing unnecessary <label> elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jlhardes committed Nov 7, 2024
1 parent 9435a83 commit 9e76ac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/hyrax/batch_select/_add_button.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div data-behavior="batch-add-button">
<label><%= check_box_tag "batch_document_ids[]", document.id, false, class:"batch_document_selector", id: "batch_document_#{document.id}", checks: "active", 'aria-labelledby': "batch_document_#{document.id}" %></label>
<%= check_box_tag "batch_document_ids[]", document.id, false, class:"batch_document_selector", id: "batch_document_#{document.id}", checks: "active", 'aria-labelledby': "batch_document_#{document.id}" %>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<table class="embargoes table">
<thead>
<tr>
<th><label><input type="checkbox" id="checkAllBox" class="batch_document_selector" aria-labelledby="checkAllBox"/></label> <label for="checkAllBox"><%= t('.select_all') %></label></th>
<th><input type="checkbox" id="checkAllBox" class="batch_document_selector" aria-labelledby="checkAllBox"/> <label for="checkAllBox"><%= t('.select_all') %></label></th>
<%= render partial: 'table_headers' %>
</tr>
</thead>
Expand All @@ -40,7 +40,7 @@
<tr data-behavior="extra" data-id="<%= curation_concern.id %>" class="extra-embargo-info">
<td></td>
<td colspan=5>
<label><%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true, 'aria-labelledby': "embargoes_#{i}_copy_visibility" %></label>
<%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true, 'aria-labelledby': "embargoes_#{i}_copy_visibility" %>
<label for="embargoes_<%= i %>_copy_visibility"><%= t('.change_all', cc: curation_concern) %>
<%= visibility_badge(curation_concern.visibility_after_embargo) %>?</label>
</td>
Expand Down

0 comments on commit 9e76ac2

Please sign in to comment.