From 01ee6b2ebba5e9bff9d3bcda51e461bf2cd8f5d3 Mon Sep 17 00:00:00 2001 From: Martin Jones <28779939+MartinJJones@users.noreply.github.com> Date: Tue, 14 Jan 2025 11:52:22 +0000 Subject: [PATCH] Remove the govuk-width-container from recruitment banner The `govuk-width-container` is not required, the layout classes from the design system can be added in each application where the govuk_web_banner is used. This will help improve the spacing on mobile and avoid extra spacing to the left and right of the component. --- CHANGELOG.md | 2 ++ app/views/govuk_web_banners/_recruitment_banner.html.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9783d0c..cdad18c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ When adding a new banner to gov.uk page, release a minor version. For typos, release a patch version. ## UNRELEASED + * Remove configuration for "AI banner 11/11/2024" +* Remove the `govuk-width-container` CSS class from recruitment banner ([PR #44](https://github.com/alphagov/govuk_web_banners/pull/44)) ## 0.3.0 diff --git a/app/views/govuk_web_banners/_recruitment_banner.html.erb b/app/views/govuk_web_banners/_recruitment_banner.html.erb index f053534..0765d06 100644 --- a/app/views/govuk_web_banners/_recruitment_banner.html.erb +++ b/app/views/govuk_web_banners/_recruitment_banner.html.erb @@ -1,6 +1,6 @@ <% recruitment_banner = GovukWebBanners::RecruitmentBanner.for_path(request.path) %> <% if recruitment_banner.present? %> -
+
<%= render "govuk_publishing_components/components/intervention", { new_tab: true, suggestion_text: recruitment_banner.suggestion_text,