From edbb9f6f44288973b5c0c55ba8bb438d9cb9e040 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Tue, 9 Jul 2024 18:47:31 +0100 Subject: [PATCH 1/2] Conditionally show navigation items --- x-govuk/components/primary-navigation/template.njk | 2 +- x-govuk/components/secondary-navigation/template.njk | 2 ++ x-govuk/components/sub-navigation/template.njk | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/x-govuk/components/primary-navigation/template.njk b/x-govuk/components/primary-navigation/template.njk index bc8dcef..1368239 100644 --- a/x-govuk/components/primary-navigation/template.njk +++ b/x-govuk/components/primary-navigation/template.njk @@ -4,7 +4,7 @@

{{ params.visuallyHiddenTitle or "Menu" }}

{% endfor %} From 48e91b51744e87f32b876fbddb17347c44875250 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Tue, 9 Jul 2024 18:50:02 +0100 Subject: [PATCH 2/2] Consistent indentation for navigation items --- .../primary-navigation/template.njk | 18 ++--- .../related-navigation/template.njk | 66 +++++++++---------- .../secondary-navigation/template.njk | 18 ++--- .../components/sub-navigation/template.njk | 40 +++++------ 4 files changed, 71 insertions(+), 71 deletions(-) diff --git a/x-govuk/components/primary-navigation/template.njk b/x-govuk/components/primary-navigation/template.njk index 1368239..b7e8281 100644 --- a/x-govuk/components/primary-navigation/template.njk +++ b/x-govuk/components/primary-navigation/template.njk @@ -3,15 +3,15 @@

{{ params.visuallyHiddenTitle or "Menu" }}

diff --git a/x-govuk/components/related-navigation/template.njk b/x-govuk/components/related-navigation/template.njk index 3044ecf..7b5f152 100644 --- a/x-govuk/components/related-navigation/template.njk +++ b/x-govuk/components/related-navigation/template.njk @@ -1,39 +1,39 @@ {% set headingLevel = params.headingLevel or 2 %} diff --git a/x-govuk/components/secondary-navigation/template.njk b/x-govuk/components/secondary-navigation/template.njk index 894f003..17f224e 100644 --- a/x-govuk/components/secondary-navigation/template.njk +++ b/x-govuk/components/secondary-navigation/template.njk @@ -1,13 +1,13 @@ diff --git a/x-govuk/components/sub-navigation/template.njk b/x-govuk/components/sub-navigation/template.njk index 6e4abe9..bdf69b8 100644 --- a/x-govuk/components/sub-navigation/template.njk +++ b/x-govuk/components/sub-navigation/template.njk @@ -1,27 +1,27 @@