From 8ec30a804b16714669b39dc9fbe8003ba78b9f20 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Tue, 12 Dec 2023 00:11:35 +0000 Subject: [PATCH] Add navigation option --- components/header/_header.scss | 4 ++++ components/header/template.njk | 7 ++++++- eleventy.config.js | 13 +++++++++++++ index.js | 1 + layouts/base.njk | 2 +- lib/filters/current-page.js | 13 +++++++++++++ 6 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 lib/filters/current-page.js diff --git a/components/header/_header.scss b/components/header/_header.scss index 124c566a..3f61564b 100644 --- a/components/header/_header.scss +++ b/components/header/_header.scss @@ -2,6 +2,10 @@ // See: https://github.com/alphagov/govuk-design-system/blob/master/src/stylesheets/components/_header.scss @include govuk-exports("app-header") { + .app-header--with-navigation { + border-bottom: $govuk-border-width-wide solid $govuk-brand-colour; + } + // Override the default 33% width on the logo in GOV.UK Frontend (prevents // unnecessary wrapping of product name on smaller tablet / desktop // viewports) diff --git a/components/header/template.njk b/components/header/template.njk index ab605d2b..f3b0744e 100644 --- a/components/header/template.njk +++ b/components/header/template.njk @@ -1,5 +1,6 @@ +{% from "x-govuk/components/primary-navigation/macro.njk" import xGovukPrimaryNavigation %} {%- from "../site-search/macro.njk" import appSiteSearch -%} -