From 9acaf4a8a6ef54be4f905255289353ca89d20729 Mon Sep 17 00:00:00 2001 From: Tomas D'Stefano Date: Fri, 12 Jul 2024 11:07:56 +0100 Subject: [PATCH] When you click validation error, focus should be on the first radio --- .../a_level_requirements/a_level_equivalencies/new.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/publish/courses/a_level_requirements/a_level_equivalencies/new.html.erb b/app/views/publish/courses/a_level_requirements/a_level_equivalencies/new.html.erb index 35b646c168..d9855335bc 100644 --- a/app/views/publish/courses/a_level_requirements/a_level_equivalencies/new.html.erb +++ b/app/views/publish/courses/a_level_requirements/a_level_equivalencies/new.html.erb @@ -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 %>