Skip to content

Commit

Permalink
Merge pull request #2367 from alphagov/fix-admin-template-h1
Browse files Browse the repository at this point in the history
Fix `<h1>` wrapping
  • Loading branch information
mike29736 authored Sep 20, 2023
2 parents 16f0486 + 60ff5de commit e485c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/layouts/admin_layout.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<%= yield(:error_summary) %>

<div class="govuk-grid-row">
<div class="<%= yield(:top_right) ? 'govuk-grid-column-one-third' : 'govuk-grid-column-two-thirds' %>">
<div class="<%= yield(:top_right).present? ? 'govuk-grid-column-one-third' : 'govuk-grid-column-two-thirds' %>">
<h1 class="govuk-heading-l">
<% if yield(:page_heading).present? %>
<%= yield(:page_heading) %>
Expand All @@ -45,7 +45,7 @@
<% end %>
</h1>
</div>
<% if yield(:top_right) %>
<% if yield(:top_right).present? %>
<div class="govuk-grid-column-two-thirds">
<%= yield(:top_right) %>
</div>
Expand Down

0 comments on commit e485c5f

Please sign in to comment.