Skip to content

Commit

Permalink
Merge pull request #1665 from alphagov/headings-within-legend-tags
Browse files Browse the repository at this point in the history
Add h2 tag into legend by default
  • Loading branch information
owenatgov authored Aug 28, 2020
2 parents e8f6f2d + 1ad5637 commit c1039be
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

Expand Down

0 comments on commit c1039be

Please sign in to comment.