Skip to content

Commit

Permalink
Remove is_page_heading param from radio components
Browse files Browse the repository at this point in the history
Replace the is_page_heading parameter with heading_level and
heading_size.
  • Loading branch information
danacotoran committed May 7, 2021
1 parent 919a383 commit fd979ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/views/brexit_checker/_question_single_choice.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
} %>
3 changes: 2 additions & 1 deletion app/views/brexit_checker/_question_single_wrapped.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit fd979ac

Please sign in to comment.