Skip to content

Commit 768a15e

Browse files
authored
Merge pull request #1795 from codidact/trichoplax/1567/associate-checkboxes-with-their-labels
Use labels in user preferences for accessibility and testability
2 parents 6d955a4 + 67cb1df commit 768a15e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/users/_prefs.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% prefs.each do |name, value| %>
22
<% pref_config = AppConfig.preferences[name] %>
3-
<div class="user-pref">
3+
<label class="user-pref">
44
<div class="user-pref--meta">
55
<strong><%= name.humanize %></strong><br/>
66
<span class="desc"><%= pref_config['description'] %></span>
@@ -23,5 +23,5 @@
2323
data-community="<%= community %>" />
2424
<% end %>
2525
</div>
26-
</div>
26+
</label>
2727
<% end %>

0 commit comments

Comments
 (0)