Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add main nav #153

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Add main nav #153

merged 2 commits into from
Nov 27, 2024

Conversation

frankieroberto
Copy link
Contributor

@frankieroberto frankieroberto commented Nov 26, 2024

This adds a "primary nav" with 3 items:

  • Get started
  • Guides
  • Support

"Contribute" could be added when #148 is merged.

I’ve not included "Page templates" as that page feels less valuable longer-term (eg if the NHS website templates get moved to a plugin or something).

Adding the primary nav possibly means that some of the breadcrumbs could be removed or shortened (eg the "Home" breadcrumb link on Support feels a bit odd now?), but the Service Manual website has both, so maybe it’s fine?

There’s no "current section" indicator for now, but we can adopt that when it gets added to the header in the next major release of NHS frontend (hopefully).

homepage-with-nav

Part of #93

@frankieroberto frankieroberto temporarily deployed to nhs-prototyp-add-main-n-fda1y6 November 26, 2024 22:44 Inactive
@frankieroberto frankieroberto linked an issue Nov 26, 2024 that may be closed by this pull request
Copy link
Contributor

@vickytnz vickytnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good - however when I looked on smaller screen sizes a home button randomly shows up?

small size with home link

I was initially going to flag just for the purposes of maybe checking about the padding but then realised an extra link had appeared. It doesn't seem to be a problem on NHS notify (thought the padding is a thing) so it's a bit of a mystery as to where it's coming from.

@frankieroberto
Copy link
Contributor Author

@vickytnz that’s a known issue with the Header nav - see nhsuk/nhsuk-frontend#986

Will be fixed as part of nhsuk/nhsuk-frontend#1058

@frankieroberto frankieroberto temporarily deployed to nhs-prototyp-add-main-n-fda1y6 November 27, 2024 10:08 Inactive
@frankieroberto
Copy link
Contributor Author

@vickytnz have added a temporary fix in 7069f19 to remove the 'Home' link whilst we await for the upstream changes to be released.

@frankieroberto frankieroberto removed a link to an issue Nov 27, 2024
@frankieroberto frankieroberto merged commit 8f11d8c into main Nov 27, 2024
4 checks passed
@frankieroberto frankieroberto deleted the add-main-nav branch November 27, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants