Skip to content

Update homepages for product pages prototypes#283

Merged
lfdebrux merged 10 commits intomainfrom
ldeb-update-homepages-for-product-page-prototypes
Apr 13, 2026
Merged

Update homepages for product pages prototypes#283
lfdebrux merged 10 commits intomainfrom
ldeb-update-homepages-for-product-page-prototypes

Conversation

@lfdebrux
Copy link
Copy Markdown
Contributor

@lfdebrux lfdebrux commented Apr 10, 2026

As part of getting this repo onto GOV.UK Frontend 6, I needed to update places where we had hardcoded HTML for the header component.

It turned out most of the product page prototypes were still using the HTML for the header component from before GOV.UK Frontend v5.

This PR brings the GOV.UK header for most of the product page prototype pages up to where we are in production; this includes updating the crown, using the service navigation pattern, and applying the GOV.UK rebrand.

To try and make future changes a bit more automatic, I've also replaced the hardcoded HTML with the Nunjucks macros.

There are a few places where it wasn't straightforward to use the govukHeader macro, but they looked to me to be less detailed prototypes; in those places I've left the code essentially as is, which means they may well break when we go to GOV.UK Frontend 6. The following pages have not been updated:

  • app/views/form-designer/signon/dashboard.html
  • app/views/form-designer/signon/sign-in.html
  • app/views/product-pages/group-admin/tasklist-activegroup.html
  • app/views/product-pages/group-admin/tasklist-trialgroup.html

If any of these do need to be updated, let me know.

lfdebrux added 10 commits April 10, 2026 16:57
In GOV.UK Frontend v5 the span with the GOV.UK logo was updated to be a
single SVG [[1]], and the `govuk-header__logotype` and
`govuk-header__logotype-text` classes have been removed.

This commit updates HTML for pages where the header is hardcoded to use
the updated logotype, so that it is styled correctly.

[1]: https://github.com/alphagov/govuk-frontend/blob/main/CHANGELOG.md#update-the-govuk-logo
Replace most of the places where we've hardcoded the header component
HTML with a macro. This makes it easier to keep up with the changes in
the GOV.UK Design System.

There are a few places where this has not been done, either because the
page is using the header component from the GOV.UK Publishing
components, or the page is entirely hardcoded HTML with no Nunjucks.
In production we updated the product page to use the Tudor crown in
February 2024 [[1]].

[1]: govuk-forms/forms-product-page#231
In production we switched to using the service navigation pattern for
the product pages in April 2025 [[1]].

This commit updates our product pages prototypes to use the service
navigation pattern. We also bring make the other changes needed
to make the service navigation work in production, including adding
custom styling for the "Sign in" link and tweaking the margins of the
hero banner.

[1]: govuk-forms/forms-product-page#722
In production we remove the beta tag from the header in the product
pages in June 2025 [[1]], just before we finished applying the GOV.UK
rebrand.

In production we also changed some of the content on the features page
to include mention of being in public beta at the same time, but the
content of the features pages in our prototypes has drifted quite a lot
from the production content, so I'm not going to change the content in
the prototypes for now.

[1]: govuk-forms/forms-product-page#805
In production we removed the breadcrumbs from the homepage of the
product pages in June 2025, as part of applying the GOV.UK rebrand [[1]].

[1]: govuk-forms/forms-product-page@73ab627
…uct page prototypes

We made this change in production in June 2025 as part of applying the
GOV.UK rebrand [[1]].

[1]: govuk-forms/forms-product-page@9dc497f
In production we update the product pages to use the GOV.UK rebrand in
June 2025 [[1]].

This commit updates most of the product page prototypes to use the
GOV.UK rebrand, making them consistent with the production prototype pages.

In the same PR in production we also tweaked some styles slightly, this
commit also brings those in.

[1]: govuk-forms/forms-product-page#738
Copy link
Copy Markdown
Contributor

@christophercameron-ixd christophercameron-ixd left a comment

Choose a reason for hiding this comment

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

Looks good to me

@lfdebrux lfdebrux merged commit 1264538 into main Apr 13, 2026
1 check passed
@lfdebrux lfdebrux deleted the ldeb-update-homepages-for-product-page-prototypes branch April 13, 2026 04:57
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