From 1ad5637e35ee1038273e315a256b523b127a8da6 Mon Sep 17 00:00:00 2001 From: owenatgov Date: Fri, 28 Aug 2020 09:51:29 +0100 Subject: [PATCH] Add h2 tag into legend by default --- .../govuk_publishing_components/components/_radio.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/govuk_publishing_components/components/_radio.html.erb b/app/views/govuk_publishing_components/components/_radio.html.erb index 72b52c09d0..0ec35f68a4 100644 --- a/app/views/govuk_publishing_components/components/_radio.html.erb +++ b/app/views/govuk_publishing_components/components/_radio.html.erb @@ -53,7 +53,9 @@ <%= tag.h1 heading, class: "gem-c-radio__heading-text govuk-fieldset__heading" %> <% end %> <% else %> - <%= tag.legend heading, class: legend_classes %> + <%= tag.legend class: legend_classes do %> + <%= tag.h2 heading, class: "govuk-fieldset__heading" %> + <% end %> <% end %> <% end %>