Skip to content

Commit

Permalink
Merge pull request #4586 from alphagov/heading-context
Browse files Browse the repository at this point in the history
Use heading context option
  • Loading branch information
andysellick authored Jan 14, 2025
2 parents c706f51 + 9435b54 commit bce30a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/views/shared/_base_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
<main id="content" role="main" class="<%= main_class if local_assigns.include?(:main_class) %> govuk-main-wrapper" <%= @lang_attribute %>>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<% if local_assigns[:context] %>
<span class="govuk-caption-xl"><%= local_assigns[:context] %></span>
<% end %>
<%= render "govuk_publishing_components/components/heading", {
text: title,
font_size: "xl",
margin_bottom: 8,
heading_level: 1,
context: local_assigns[:context],
} %>
</div>
<div class="article-container group govuk-grid-column-two-thirds">
Expand Down
4 changes: 1 addition & 3 deletions app/views/simple_smart_answers/_outcome.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
data-module="ga4-auto-tracker"
data-ga4-auto="<%= ga4_attributes %>"
>
<% if content_item.title %>
<span class="govuk-caption-xl"><%= content_item.title %></span>
<% end %>
<%= render "govuk_publishing_components/components/heading", {
text: outcome.title,
font_size: "l",
margin_bottom: 4,
heading_level: 1,
context: content_item.title,
} %>

<% if outcome.body %>
Expand Down

0 comments on commit bce30a7

Please sign in to comment.