Skip to content

Commit

Permalink
Fix the labels on addresses
Browse files Browse the repository at this point in the history
Labels on addresses were `for` `claim_some_address` but the radio button
had the `id` `some_address`
  • Loading branch information
rjlynch committed Sep 6, 2024
1 parent 9ded57c commit ca2b077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/claims/select_home_address.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<% checked = params.dig(:claim, :address_line_1) == option[:address_line_1] %>

<div class="govuk-radios__item">
<%= form.radio_button :address, [option[:address], option[:address_line_1], option[:address_line_2], option[:address_line_3], option[:postcode]].join(":"), { checked:, class: "govuk-radios__input", id: address } %>
<%= form.radio_button :address, [option[:address], option[:address_line_1], option[:address_line_2], option[:address_line_3], option[:postcode]].join(":"), { checked:, class: "govuk-radios__input", id: "claim_#{address}" } %>
<%= form.label address, "#{option[:address]}", class: "govuk-label govuk-radios__label", id: address %>
</div>
<% end %>
Expand Down

0 comments on commit ca2b077

Please sign in to comment.