Skip to content

Commit

Permalink
Don't blank out <label for> attribute
Browse files Browse the repository at this point in the history
Internet Explorer needs this attribute to make the label a click target.
  • Loading branch information
pixeltrix committed Nov 2, 2017
1 parent 24c2ed2 commit 0968ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/signatures/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Only British citizens or UK residents have the right to sign
</span>
<%= error_messages_for_field signature, :uk_citizenship %>
<%= form.label :uk_citizenship, class: "block-label", for: nil do %>
<%= form.label :uk_citizenship, class: "block-label" do %>
<%= form.check_box :uk_citizenship, tabindex: increment %>
I am a British citizen or UK resident
<% end %>
Expand Down

0 comments on commit 0968ff5

Please sign in to comment.