Skip to content

Commit

Permalink
Merge pull request #4370 from DFE-Digital/2019-bug-focus-is-lost-from…
Browse files Browse the repository at this point in the history
…-radio-button-when-validation-error-is-displayed

When you click validation error, focus should be on the first radio
  • Loading branch information
tomas-stefano authored Jul 12, 2024
2 parents ca30548 + 9acaf4a commit 62fb64d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
<%= form.govuk_error_summary %>

<%= form.govuk_radio_buttons_fieldset :accept_a_level_equivalency, legend: { size: "l", text: t("course.#{@wizard.current_step.model_name.i18n_key}.heading"), tag: "h1" }, caption: { text: @course_decorator.name_and_code, size: "l" } do %>

<%= form.govuk_radio_button :accept_a_level_equivalency, :yes do %>
<%= form.govuk_radio_button :accept_a_level_equivalency, :yes, link_errors: true do %>
<%= form.govuk_text_area :additional_a_level_equivalencies, max_words: @wizard.current_step.class::MAXIMUM_ADDITIONAL_A_LEVEL_EQUIVALENCY_WORDS, hint: { text: t("course.#{@wizard.current_step.model_name.i18n_key}.hint") }, label: { class: "govuk-!-font-weight-bold" } %>
<% end %>
<%= form.govuk_radio_button :accept_a_level_equivalency, :no %>
Expand Down

0 comments on commit 62fb64d

Please sign in to comment.