Skip to content

Commit 67cb1df

Browse files
committed
Use label in user prefs for accessibility and testability
1 parent 6d955a4 commit 67cb1df

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)