From aa21c2054665f19042e0a5e82b6b711ae4df8b53 Mon Sep 17 00:00:00 2001 From: kiddhustle Date: Thu, 28 Apr 2022 16:07:28 +0100 Subject: [PATCH] CLDC-1185: now wrap label in div --- app/helpers/question_view_helper.rb | 2 +- spec/helpers/question_view_helper_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/question_view_helper.rb b/app/helpers/question_view_helper.rb index 8096bd930..fc308b835 100644 --- a/app/helpers/question_view_helper.rb +++ b/app/helpers/question_view_helper.rb @@ -22,6 +22,6 @@ private def label_tag(page_header, conditional) return "" if conditional - page_header.blank? ? "h1" : "h2" + page_header.blank? ? "h1" : "div" end end diff --git a/spec/helpers/question_view_helper_spec.rb b/spec/helpers/question_view_helper_spec.rb index 1bfb3cb38..82f6d0b08 100644 --- a/spec/helpers/question_view_helper_spec.rb +++ b/spec/helpers/question_view_helper_spec.rb @@ -46,7 +46,7 @@ RSpec.describe QuestionViewHelper do let(:question) { OpenStruct.new(header: "Some question header") } let(:size) { "m" } - let(:tag) { "h2" } + let(:tag) { "div" } let(:legend_options_hash) do { text: "Some question header".html_safe, size:, tag: } end