From 43abe8f73b155f5a4902fdc608d40901c687f70b Mon Sep 17 00:00:00 2001 From: Andy Sellick Date: Tue, 14 Nov 2023 13:26:03 +0000 Subject: [PATCH] Fix phase banner left/right spacing on some pages - below the tablet breakpoint (around 1020px) the phase banner at the top of some pages was being padded left and right, which indented it from the rest of the page - caused by the govuk-frontend grid wrapping classes, which were unnecessary - some wrapping divs moved instead to support the phase label, which is similar but does require additional wrapping elements --- app/views/layouts/application.html.erb | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 47668d1c82..d7528a8555 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -7,18 +7,14 @@ <% content_for :body do %>
<% if @content_item.show_phase_banner? || @content_item.service_manual? %> -
-
-
- <% if @content_item.show_phase_banner? %> - <%= render 'govuk_publishing_components/components/phase_banner', phase: @content_item.phase, ga4_tracking: true %> - <% end %> - <% if @content_item.service_manual? %> - <%= render_phase_label @content_item, content_for(:phase_message) %> - <% end %> -
+ <% if @content_item.show_phase_banner? %> + <%= render 'govuk_publishing_components/components/phase_banner', phase: @content_item.phase, ga4_tracking: true %> + <% end %> + <% if @content_item.service_manual? %> +
+ <%= render_phase_label @content_item, content_for(:phase_message) %>
-
+ <% end %> <% end %> <% if @content_item.show_default_breadcrumbs? %>