Skip to content

Commit 78b709b

Browse files
authored
Merge pull request #596 from alphagov/bk-content-updates-for-v6
Content updates for v6
2 parents d422c2a + c8ea964 commit 78b709b

2 files changed

Lines changed: 50 additions & 2 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: Changes in GOV.UK Frontend v6.0.0
3+
weight: 95
4+
---
5+
6+
# Changes in GOV.UK Frontend v6.0.0
7+
8+
GOV.UK Frontend v6.0.0 includes changes to:
9+
10+
- improve our Sass architecture
11+
- use an updated type scale to improve accessibility for small screens
12+
- update colours to use the GOV.UK web palette in the GOV.UK brand guidelines
13+
- improve the page template layout
14+
15+
We’ve also removed a number of deprecated APIs, Sass variables and component options.
16+
17+
## Migrating from v5 to v6.0.0
18+
19+
Follow the guidance about [staying up to date with GOV.UK Frontend](https://frontend.design-system.service.gov.uk/staying-up-to-date/).
20+
21+
When making the decision to migrate, consider your service’s requirements and your ability to update Sass tooling and templates. In particular, you must update to [Dart Sass v1.79.0 or later](https://sass-lang.com/dart-sass/) before upgrading to v6.0.0.
22+
23+
## Benefits of updating to v6.0.0
24+
25+
By updating to v6.0.0 you’ll:
26+
27+
- stay aligned with the GOV.UK look and feel: we’ve updated GOV.UK Frontend to use the GOV.UK web palette from the GOV.UK brand guidelines
28+
- benefit from a more consistent colour system in certain components
29+
- get the latest accessibility improvements, based on ongoing testing and feedback from services across government
30+
- benefit from a smaller CSS payload
31+
- be able to customise the page template further than before
32+
33+
## Updating to v6.0.0
34+
35+
Read the [GOV.UK Frontend v6.0.0 release notes](https://github.com/alphagov/govuk-frontend/releases/v6.0.0) to see the full list of breaking and recommended changes.
36+
37+
You might need to update some items to update to v6.0.0, including:
38+
39+
- updating your Sass compiler to [Dart Sass v1.79.0 or later](https://sass-lang.com/dart-sass/)
40+
- using the latest GOV.UK web palette
41+
- using the new colour functions and replacing colours to follow the new naming convention
42+
43+
You'll need to check some items still work as expected, including:
44+
45+
- making sure any custom use of functional colours still follows best accessibility practice for contrast and legibility
46+
- updating any custom header or footer content, as we've changed how you can use and customise these components
47+
- testing the new type scale in your service to see if you need to make any adjustments
48+
49+
You’ll also need to remove references to any APIs, Sass variables and component options that we’ve removed.

source/import-font-and-images-assets/index.html.md.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ If you decide to copy the assets instead, copy the:
2828
- `/node_modules/govuk-frontend/dist/govuk/assets/images` folder to `<YOUR-APP>/assets/images`
2929
- `/node_modules/govuk-frontend/dist/govuk/assets/fonts` folder to `<YOUR-APP>/assets/fonts`
3030
- `/node_modules/govuk-frontend/dist/govuk/assets/manifest.json` file to `<YOUR-APP>/assets`
31-
- `/node_modules/govuk-frontend/dist/govuk/assets/rebrand folder` to `<YOUR-APP>/assets/rebrand`
3231

3332
You should use an automated task or your build pipeline to copy the files, so your project folder stays up to date when we update GOV.UK Frontend.
3433

3534
### If you have your own folder structure
3635

37-
If you use a different folder structure than `<YOUR-APP>/assets/images`, `<YOUR-APP>/assets/fonts` and `<YOUR-APP>/assets/rebrand`, you can set Sass variables so that Sass builds the CSS to point to your folders.
36+
If you use a different folder structure than `<YOUR-APP>/assets/images` and `<YOUR-APP>/assets/fonts`, you can set Sass variables so that Sass builds the CSS to point to your folders.
3837

3938
Set one of the following before the `@import` line in your Sass file:
4039

0 commit comments

Comments
 (0)