From 8ea8d3773b05f638c24b97ea56711d58f9f42170 Mon Sep 17 00:00:00 2001 From: Dana Cotoran Date: Fri, 7 May 2021 16:20:52 +0100 Subject: [PATCH] Remove is_page_heading param from radio components Replace the is_page_heading parameter with heading_level and heading_size. --- app/views/brexit_checker/_question_single_choice.html.erb | 3 ++- app/views/brexit_checker/_question_single_wrapped.html.erb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/brexit_checker/_question_single_choice.html.erb b/app/views/brexit_checker/_question_single_choice.html.erb index e763f7b39..bbab6a472 100644 --- a/app/views/brexit_checker/_question_single_choice.html.erb +++ b/app/views/brexit_checker/_question_single_choice.html.erb @@ -4,6 +4,7 @@ heading: current_question.text, description: formatted_description, hint: current_question.hint_text, - is_page_heading: true, + heading_level: 1, + heading_size: 'xl', items: format_question_options(current_question.options(criteria_keys), criteria_keys) } %> diff --git a/app/views/brexit_checker/_question_single_wrapped.html.erb b/app/views/brexit_checker/_question_single_wrapped.html.erb index f8fc87283..ccc6cca5a 100644 --- a/app/views/brexit_checker/_question_single_wrapped.html.erb +++ b/app/views/brexit_checker/_question_single_wrapped.html.erb @@ -5,7 +5,8 @@ heading_caption: current_question.caption, description: formatted_description, hint: current_question.hint_text, - is_page_heading: true, + heading_level: 1, + heading_size: 'xl', items: current_question.options.map do |option| checkboxes = if option.sub_options.present? render "govuk_publishing_components/components/checkboxes", {