From ba8d98967801af6897fc2a5f4aea97d47b238a83 Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Mon, 9 Sep 2024 22:13:46 +0100 Subject: [PATCH] Add notification banner to primary nav component This aims to alert users that the Primary navigation component will be removed in future, and users should use the Service navigation component from the GOV.UK Design System instead. --- docs/primary-navigation.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/primary-navigation.md b/docs/primary-navigation.md index 6c81aaf..cd6847f 100644 --- a/docs/primary-navigation.md +++ b/docs/primary-navigation.md @@ -6,6 +6,11 @@ description: Link to the primary sections of your service. --- {% from "example/macro.njk" import appExample %} +{% from "govuk/components/notification-banner/macro.njk" import govukNotificationBanner %} + +{{ govukNotificationBanner({ + html: "### This component will be removed in future\n\nUse the [service navigation component](https://design-system.service.gov.uk/components/service-navigation/) in the GOV.UK Design System instead." | markdown +}) }} {{ appExample({ example: "primary-navigation"