Skip to content

Commit 2c243b1

Browse files
authored
Merge pull request #442 from alphagov/bump-govuk-frontend-to-v6
Bump govuk frontend to v6
2 parents 91a1b75 + 3b9b60b commit 2c243b1

23 files changed

Lines changed: 3354 additions & 117 deletions

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.2.6

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
## 6.0.0
2+
3+
- [Bump Design System to V6](https://github.com/alphagov/tech-docs-gem/pull/442), which brings in:
4+
- changes to the colour palette
5+
- replacement of the smallest font size, used for smaller screens, with next one up
6+
- introduction of service navigation component, with header links moved to it
7+
- all changes listed in https://github.com/alphagov/govuk-frontend/releases/tag/v6.0.0
8+
9+
Note: whereas before all tech docs could optionally turn on the new branding, this removes that
10+
ability, we're marking it as a major bump.
11+
112
## 5.2.2
213

314
- [Unpin middleman](https://github.com/alphagov/tech-docs-gem/pull/457)
415
- [Bump jasmine-browser-runner from 2.5.0 to 3.0.0 #450](- https://github.com/alphagov/tech-docs-gem/pull/450)
516
- [Bump jasmine-core from 5.5.0 to 5.13.0 #448](https://github.com/alphagov/tech-docs-gem/pull/448)
617
- [Ban pre|post-install NPM scripts #453](https://github.com/alphagov/tech-docs-gem/pull/453)
718

19+
820
## 5.2.1
921

1022
- [Add option to not render child resources when creating a table of contents](https://github.com/alphagov/tech-docs-gem/pull/439/changes)

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,22 @@ For more information on previewing your documentation locally, see the [Tech Doc
110110

111111
## Tests
112112

113-
This repository contains automated JavaScript tests that use the [Jasmine test framework][jas].
113+
Use this command to run the linting and tests for the Ruby and JavaScript code:
114114

115-
You can run these tests and see the results in your browser.
115+
```sh
116+
bundle exec rake
117+
```
118+
119+
### JavaScript tests
120+
121+
The JavaScript tests use the [Jasmine test framework][jas].
122+
123+
You can run these tests on their own and see the results in your browser.
116124

117125
1. Run `bundle exec rake jasmine:server`.
118126
2. Go to `http://localhost:8888` in your browser.
119127

120-
To run the tests and see the results in your terminal, run:
128+
To run the JavaScript tests and see the results in your terminal, run:
121129

122130
```
123131
bundle exec rake jasmine:ci

example/config/tech-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ service_name: My First Service
77
service_link: /
88
phase: Beta
99

10-
# Links to show on right-hand-side of header
10+
# Links to show in service navigation
1111
header_links:
1212
Documentation: /
1313
Expired page: /expired-page.html

govuk_tech_docs.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require "govuk_tech_docs/version"
77
`npm ci`
88
abort "npm ci failed" unless $CHILD_STATUS.success?
99

10-
unless File.exist?("node_modules/govuk-frontend/dist/govuk/all.scss")
10+
unless File.exist?("node_modules/govuk-frontend/dist/govuk/_base.scss")
1111
abort "govuk-frontend npm package not installed"
1212
end
1313

lib/assets/stylesheets/_core.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
@import "modules/app-pane";
88
@import "modules/footer";
99
@import "modules/header";
10+
@import "modules/service-navigation";
1011
@import "modules/page-review";
1112
@import "modules/search";
1213
@import "modules/contribution-banner";

lib/assets/stylesheets/_govuk_tech_docs.scss

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,25 @@ $govuk-suppressed-warnings: (
77
);
88
$govuk-assets-path: "/assets/govuk/assets/" !default;
99

10-
// legacy palette is getting deprecated so new one needs to be used
11-
$govuk-new-organisation-colours: true;
12-
1310
// Include only the bits of GOV.UK Frontend we need
1411
$govuk-new-link-styles: true;
1512
@import "govuk/base";
1613

17-
@import "govuk/core/index";
18-
@import "govuk/objects/index";
14+
@import "govuk/core";
15+
@import "govuk/objects";
1916

20-
@import "govuk/components/cookie-banner/index";
21-
@import "govuk/components/footer/index";
22-
@import "govuk/components/header/index";
23-
@import "govuk/components/inset-text/index";
24-
@import "govuk/components/input/index";
25-
@import "govuk/components/tag/index";
26-
@import "govuk/components/skip-link/index";
27-
@import "govuk/components/warning-text/index";
17+
@import "govuk/components/cookie-banner";
18+
@import "govuk/components/footer";
19+
@import "govuk/components/header";
20+
@import "govuk/components/service-navigation";
21+
@import "govuk/components/inset-text";
22+
@import "govuk/components/input";
23+
@import "govuk/components/tag";
24+
@import "govuk/components/skip-link";
25+
@import "govuk/components/warning-text";
2826

29-
@import "govuk/utilities/index";
30-
@import "govuk/overrides/index";
27+
@import "govuk/utilities";
28+
@import "govuk/overrides";
3129

3230
@import "core";
3331
@import "vendor/fixedsticky";

lib/assets/stylesheets/modules/_app-pane.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
.app-pane__toc {
4141
flex: 0 0 auto;
4242
width: $toc-width;
43-
border-right: 1px solid $govuk-border-colour;
43+
border-right: 1px solid govuk-functional-colour(border);
4444
}
4545

4646
.app-pane__content {
@@ -65,6 +65,6 @@
6565
.app-pane__content:has(main:focus-visible) {
6666
outline: $govuk-focus-width solid transparent;
6767
box-shadow:
68-
0 0 0 4px $govuk-focus-colour,
69-
0 0 0 8px $govuk-focus-text-colour;
68+
0 0 0 4px govuk-functional-colour(focus),
69+
0 0 0 8px govuk-functional-colour(focus-text);
7070
}

lib/assets/stylesheets/modules/_page-review.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
padding: govuk-spacing(3);
55
margin-top: govuk-spacing(6);
66
margin-bottom: govuk-spacing(6);
7-
background-color: $govuk-brand-colour;
7+
background-color: govuk-functional-colour(brand);
88
color: govuk-colour("white");
99

1010
@include govuk-media-query(tablet) {
@@ -19,14 +19,14 @@
1919
}
2020

2121
a:active {
22-
color: $govuk-link-active-colour;
22+
color: govuk-functional-colour(link-active);
2323
}
2424
}
2525

2626
.page-expiry--expired {
2727
padding: govuk-spacing(3);
2828
margin-top: govuk-spacing(9);
29-
border: govuk-spacing(1) solid $govuk-error-colour;
29+
border: govuk-spacing(1) solid govuk-functional-colour(error);
3030
background-color: govuk-colour("white");
31-
color: $govuk-text-colour;
31+
color: govuk-functional-colour(text);
3232
}

lib/assets/stylesheets/modules/_search.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $input-size: 40px;
4242
text-indent: -5000px;
4343
overflow: hidden;
4444
&:focus {
45-
outline: $govuk-focus-width solid $govuk-focus-colour;
45+
outline: $govuk-focus-width solid govuk-functional-colour(focus);
4646
outline-offset: 0;
4747
box-shadow: inset 0 0 0 $govuk-border-width-form-element * 2 govuk-colour("black");
4848
}
@@ -87,12 +87,12 @@ $input-size: 40px;
8787
}
8888
.search-results__inner {
8989
background: govuk-colour("white");
90-
border-top: 1px solid govuk-colour("mid-grey");
90+
border-top: 1px solid govuk-colour("black", $variant: "tint-80");
9191
max-width: 40rem;
9292
padding: 15px;
9393
@include govuk-media-query(tablet) {
9494
padding: 15px 200px 50px 40px;
95-
border: 1px solid govuk-colour("mid-grey");
95+
border: 1px solid govuk-colour("black", $variant: "tint-80");
9696
&::after {
9797
content: '';
9898
position: absolute;

0 commit comments

Comments
 (0)