Skip to content

Upgrade to GOV.UK Frontend 6.0.0#1973

Merged
lfdebrux merged 6 commits into
mainfrom
ldeb-govuk-frontend-6
Mar 18, 2026
Merged

Upgrade to GOV.UK Frontend 6.0.0#1973
lfdebrux merged 6 commits into
mainfrom
ldeb-govuk-frontend-6

Conversation

@lfdebrux
Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Trello card: https://trello.com/c/xibMInKA/2869-upgrade-govuk-frontend-to-v6

This PR updates our dependencies and our code so we can use GOV.UK Frontend 6.0.0.

See the commits for details on the changes made.

After these changes, there were a few visual differences I noticed:

  • the colour of links in the footer has changed from black to blue [1]
  • the colour of the "Live preview" status tag for has changed from turquoise to teal [2]
  • the colours have changed generally [2] [3]

There are a few issues that I'm aware of but that probably don't need to be fixed in this PR:

  • In GOV.UK Frontend 6.0.0, the recommendation is to move the service navigation and phase banner components within the <header> element [4]
  • there are Sass warnings from the dfe-autocomplete gem
  • there are Sass warnings due to package @imports

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

@lfdebrux lfdebrux changed the title Upgrade to GOV.UK Frontend 6.0.0' Upgrade to GOV.UK Frontend 6.0.0 Mar 17, 2026
lfdebrux and others added 6 commits March 17, 2026 11:45
We no longer need the assets from before the GOV.UK rebrand.
Bumps [govuk-frontend](https://github.com/alphagov/govuk-frontend/tree/HEAD/packages/govuk-frontend) from 5.14.0 to 6.0.0.
- [Release notes](https://github.com/alphagov/govuk-frontend/releases)
- [Changelog](https://github.com/alphagov/govuk-frontend/blob/main/CHANGELOG.md)
- [Commits](https://github.com/alphagov/govuk-frontend/commits/v6.0.0/packages/govuk-frontend)

---
updated-dependencies:
- dependency-name: govuk-frontend
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [govuk-components](https://github.com/x-govuk/govuk-components) from 5.13.1 to 6.0.0.
- [Release notes](https://github.com/x-govuk/govuk-components/releases)
- [Commits](x-govuk/govuk-components@v5.13.1...v6.0.0)

---
updated-dependencies:
- dependency-name: govuk-components
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [govuk_design_system_formbuilder](https://github.com/x-govuk/govuk-form-builder) from 5.13.0 to 6.0.0.
- [Release notes](https://github.com/x-govuk/govuk-form-builder/releases)
- [Commits](x-govuk/govuk-form-builder@v5.13.0...v6.0.0)

---
updated-dependencies:
- dependency-name: govuk_design_system_formbuilder
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
- Remove references to the `$govuk-new-typography-scale` feature flag
- Update any light blue, turquoise or pink tags
- Use `govuk-functional-colour` to access functional colours
- Remove rebrand switch from template
- Move rebranded assets
In GOV.UK Component for Ruby on Rails 6.0.0 the class for the homepage
link in the header was changed [[1]], to match the same change in GOV.UK
Frontend 6.0.0 [[2]].

This commit updates our specs to use the new class, as they were relying on
it to be able to pick out and test the homepage link.

[1]: x-govuk/govuk-components@255e51e
[2]: alphagov/govuk-frontend@9f4728d
@lfdebrux lfdebrux force-pushed the ldeb-govuk-frontend-6 branch from cf67801 to 76a9c44 Compare March 17, 2026 09:45
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor

🎉 A review copy of this PR has been deployed! It is made of up two components

  1. A review copy of forms-runner
  2. A production copy of forms-admin

Important

Not all of the functionality of forms-runner is present in review apps.
Functionality such as sending emails, file upload, and S3 submission types are
deliberately disabled for the sake of simplifying review apps.

You should use the full dev environment to test the functionality which is disabled here.

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

Copy link
Copy Markdown
Contributor

@stephencdaly stephencdaly left a comment

Choose a reason for hiding this comment

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

Changes all match the recommendations in the govuk-frontend release notes and I've tested locally and everything looks to be displayed correctly.

@lfdebrux lfdebrux added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit ed97c38 Mar 18, 2026
6 checks passed
@lfdebrux lfdebrux deleted the ldeb-govuk-frontend-6 branch March 18, 2026 13:05
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