Skip to content

Commit

Permalink
Update/remove GOV.UK header nav from examples
Browse files Browse the repository at this point in the history
We don’t expect users to use the navigation function of the header component anymore, instead preferring the service navigation component.
  • Loading branch information
querkmachine committed Aug 30, 2024
1 parent c82c771 commit 189ae88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ notes: Based on https://www.gov.uk/government/news/strictly-vampires-and-sausage
---
{% extends "layouts/full-page-example.njk" %}

{% from "govuk/components/service-navigation/macro.njk" import govukServiceNavigation %}
{% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %}
{% from "govuk/components/inset-text/macro.njk" import govukInsetText %}

{% set pageTitle = example.title %}
{% block pageTitle %}{{ pageTitle }} - GOV.UK{% endblock %}

{% block header %}
{{ govukHeader({
{{ govukHeader({}) }}
{{ govukServiceNavigation({
navigation: [
{
href: "#1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,7 @@ scenario: |

{% block header %}
{{ govukHeader({
serviceName: "Apply for a passport",
navigation: [
{
href: "/",
text: "Home"
},
{
href: "#upload-a-photo",
text: "Upload a photo",
active: true
}
]
serviceName: "Apply for a passport"
}) }}
{% endblock %}

Expand Down

0 comments on commit 189ae88

Please sign in to comment.