govuk_tech_docs 5.2.2 → 6.0.0.beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +15 -0
  4. data/README.md +11 -3
  5. data/example/config/tech-docs.yml +1 -1
  6. data/govuk_tech_docs.gemspec +1 -1
  7. data/lib/assets/stylesheets/_core.scss +1 -0
  8. data/lib/assets/stylesheets/_govuk_tech_docs.scss +13 -15
  9. data/lib/assets/stylesheets/modules/_app-pane.scss +3 -3
  10. data/lib/assets/stylesheets/modules/_page-review.scss +4 -4
  11. data/lib/assets/stylesheets/modules/_search.scss +3 -3
  12. data/lib/assets/stylesheets/modules/_service-navigation.scss +5 -0
  13. data/lib/assets/stylesheets/modules/_technical-documentation.scss +7 -7
  14. data/lib/assets/stylesheets/modules/_toc.scss +13 -13
  15. data/lib/assets/stylesheets/palette/_syntax-highlighting.scss +9 -7
  16. data/lib/govuk_tech_docs/meta_tags.rb +1 -1
  17. data/lib/govuk_tech_docs/version.rb +1 -1
  18. data/lib/source/layouts/_header.erb +2 -16
  19. data/lib/source/layouts/_service_navigation.erb +27 -0
  20. data/lib/source/layouts/core.erb +7 -7
  21. data/node_modules/govuk-frontend/dist/govuk/_base.scss +1 -0
  22. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +87 -229
  23. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +88 -229
  24. data/node_modules/govuk-frontend/dist/govuk/all.mjs +0 -1
  25. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.ico +0 -0
  26. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.svg +1 -1
  27. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png +0 -0
  28. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-192.png +0 -0
  29. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-512.png +0 -0
  30. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-opengraph-image.png +0 -0
  31. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  32. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +18 -15
  33. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +1 -126
  34. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +1 -126
  35. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +2 -2
  36. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +2 -2
  37. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +18 -21
  38. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -2
  39. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +20 -135
  40. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +20 -135
  41. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +19 -9
  42. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +7 -6
  43. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -5
  44. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +5 -0
  45. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +6 -4
  46. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +1 -1
  47. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -2
  48. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +1 -1
  49. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +1 -126
  50. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +1 -126
  51. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +30 -38
  52. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +36 -132
  53. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs +36 -132
  54. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs +35 -6
  55. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +30 -27
  56. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +89 -449
  57. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +1 -1
  58. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +14 -20
  59. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +2 -1
  60. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +10 -8
  61. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +12 -11
  62. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +4 -4
  63. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -2
  64. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +1 -126
  65. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +1 -126
  66. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +12 -6
  67. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +8 -7
  68. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +6 -11
  69. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +55 -76
  70. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +30 -2
  71. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +30 -2
  72. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +30 -2
  73. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -2
  74. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +25 -21
  75. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +7 -8
  76. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +9 -6
  77. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +66 -31
  78. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +7 -5
  79. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +5 -10
  80. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +5 -4
  81. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +0 -1
  82. data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +2 -2
  83. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +2 -1
  84. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +6 -20
  85. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss +17 -0
  86. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +15 -0
  87. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +17 -0
  88. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss +5 -0
  89. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  90. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +168 -82
  91. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +41 -6
  92. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
  93. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +24 -40
  94. data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +172 -33
  95. data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +1 -1
  96. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +6 -30
  97. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs +1 -126
  98. data/node_modules/govuk-frontend/dist/govuk/init.mjs +1 -2
  99. data/node_modules/govuk-frontend/dist/govuk/objects/_button-group.scss +1 -1
  100. data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss +2 -1
  101. data/node_modules/govuk-frontend/dist/govuk/objects/_main-wrapper.scss +1 -1
  102. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +3 -7
  103. data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +2 -2
  104. data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +1 -1
  105. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +0 -2
  106. data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +5 -5
  107. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +3 -188
  108. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +366 -0
  109. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +9 -255
  110. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss +117 -25
  111. data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss +18 -0
  112. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +3 -14
  113. data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +0 -9
  114. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +12 -189
  115. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +0 -1
  116. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +4 -2
  117. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +2 -0
  118. data/package-lock.json +3228 -4
  119. data/package.json +1 -1
  120. metadata +10 -26
  121. data/node_modules/govuk-frontend/dist/govuk/all.scss +0 -9
  122. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
  123. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +0 -1
  124. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +0 -1
  125. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
  126. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
  127. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
  128. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +0 -1
  129. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
  130. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +0 -39
  131. data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +0 -10
  132. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +0 -238
  133. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +0 -230
  134. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +0 -89
  135. data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +0 -10
  136. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +0 -15
  137. data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +0 -10
  138. data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +0 -10
  139. data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +0 -9
  140. data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +0 -10
  141. data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +0 -10
  142. data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +0 -65
  143. data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +0 -10
  144. data/node_modules/govuk-frontend/dist/govuk/vendor/_sass-mq.scss +0 -349
  145. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e2c23eb952ee6069e5478380dc761a3de90977115ee82aa1389e4236e014243
4
- data.tar.gz: d01dd04884c723aebd6cccff2f650038e9df489f0b9ab2de05d191d2337af83e
3
+ metadata.gz: c7c54295459ed7567f6875bd16dc72e50292cf62950b1e3de986a57fc484e5f7
4
+ data.tar.gz: 39cb5a0065d9eba0e24c8cc78a021855ccc90992107ffdf216cacb4726d233c7
5
5
  SHA512:
6
- metadata.gz: 9aacfb53131ec27a9033d5db12e2aa865d1f16cdd03484a1e82ec1594c3708b48d526eb3e07d0322b2429804e7fc17991beaa2b54463890d8b33ee5d34af0512
7
- data.tar.gz: dfe5312a360c8675af27e77deae033739fa4d008732fc8b52619119c2c00f4fb70aedd5e0bc12c1edbc4d6dac03c32a0448b6c354aa588ecc0f56510ccd0bfcb
6
+ metadata.gz: 43f176a4af66287f94c76a926292ffd10504c17af60497af29e002b54edfa25ca8b67e2028e4bc894b252c0b2e5b8e2c6ad01825d70b7d23d1f73377748fbe81
7
+ data.tar.gz: c201066eb4c5104e1889475f9f95d417eafffd617b165c341af9bf6531a8f79da342be8b4abbea06efccf400f9643684f30e2a4998c30e0cad7ad435784cde8b
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.2.6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
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
+
1
12
  ## 5.2.2
2
13
 
3
14
  - [Unpin middleman](https://github.com/alphagov/tech-docs-gem/pull/457)
15
+ - [Bump jasmine-browser-runner from 2.5.0 to 3.0.0 #450](- https://github.com/alphagov/tech-docs-gem/pull/450)
16
+ - [Bump jasmine-core from 5.5.0 to 5.13.0 #448](https://github.com/alphagov/tech-docs-gem/pull/448)
17
+ - [Ban pre|post-install NPM scripts #453](https://github.com/alphagov/tech-docs-gem/pull/453)
18
+
4
19
 
5
20
  ## 5.2.1
6
21
 
data/README.md CHANGED
@@ -110,14 +110,22 @@ For more information on previewing your documentation locally, see the [Tech Doc
110
110
 
111
111
  ## Tests
112
112
 
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:
114
114
 
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.
116
124
 
117
125
  1. Run `bundle exec rake jasmine:server`.
118
126
  2. Go to `http://localhost:8888` in your browser.
119
127
 
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:
121
129
 
122
130
  ```
123
131
  bundle exec rake jasmine:ci
@@ -7,7 +7,7 @@ service_name: My First Service
7
7
  service_link: /
8
8
  phase: Beta
9
9
 
10
- # Links to show on right-hand-side of header
10
+ # Links to show in service navigation
11
11
  header_links:
12
12
  Documentation: /
13
13
  Expired page: /expired-page.html
@@ -7,7 +7,7 @@ require "govuk_tech_docs/version"
7
7
  `npm ci`
8
8
  abort "npm ci failed" unless $CHILD_STATUS.success?
9
9
 
10
- unless File.exist?("node_modules/govuk-frontend/dist/govuk/all.scss")
10
+ unless File.exist?("node_modules/govuk-frontend/dist/govuk/_base.scss")
11
11
  abort "govuk-frontend npm package not installed"
12
12
  end
13
13
 
@@ -7,6 +7,7 @@
7
7
  @import "modules/app-pane";
8
8
  @import "modules/footer";
9
9
  @import "modules/header";
10
+ @import "modules/service-navigation";
10
11
  @import "modules/page-review";
11
12
  @import "modules/search";
12
13
  @import "modules/contribution-banner";
@@ -7,27 +7,25 @@ $govuk-suppressed-warnings: (
7
7
  );
8
8
  $govuk-assets-path: "/assets/govuk/assets/" !default;
9
9
 
10
- // legacy palette is getting deprecated so new one needs to be used
11
- $govuk-new-organisation-colours: true;
12
-
13
10
  // Include only the bits of GOV.UK Frontend we need
14
11
  $govuk-new-link-styles: true;
15
12
  @import "govuk/base";
16
13
 
17
- @import "govuk/core/index";
18
- @import "govuk/objects/index";
14
+ @import "govuk/core";
15
+ @import "govuk/objects";
19
16
 
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";
28
26
 
29
- @import "govuk/utilities/index";
30
- @import "govuk/overrides/index";
27
+ @import "govuk/utilities";
28
+ @import "govuk/overrides";
31
29
 
32
30
  @import "core";
33
31
  @import "vendor/fixedsticky";
@@ -40,7 +40,7 @@
40
40
  .app-pane__toc {
41
41
  flex: 0 0 auto;
42
42
  width: $toc-width;
43
- border-right: 1px solid $govuk-border-colour;
43
+ border-right: 1px solid govuk-functional-colour(border);
44
44
  }
45
45
 
46
46
  .app-pane__content {
@@ -65,6 +65,6 @@
65
65
  .app-pane__content:has(main:focus-visible) {
66
66
  outline: $govuk-focus-width solid transparent;
67
67
  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);
70
70
  }
@@ -4,7 +4,7 @@
4
4
  padding: govuk-spacing(3);
5
5
  margin-top: govuk-spacing(6);
6
6
  margin-bottom: govuk-spacing(6);
7
- background-color: $govuk-brand-colour;
7
+ background-color: govuk-functional-colour(brand);
8
8
  color: govuk-colour("white");
9
9
 
10
10
  @include govuk-media-query(tablet) {
@@ -19,14 +19,14 @@
19
19
  }
20
20
 
21
21
  a:active {
22
- color: $govuk-link-active-colour;
22
+ color: govuk-functional-colour(link-active);
23
23
  }
24
24
  }
25
25
 
26
26
  .page-expiry--expired {
27
27
  padding: govuk-spacing(3);
28
28
  margin-top: govuk-spacing(9);
29
- border: govuk-spacing(1) solid $govuk-error-colour;
29
+ border: govuk-spacing(1) solid govuk-functional-colour(error);
30
30
  background-color: govuk-colour("white");
31
- color: $govuk-text-colour;
31
+ color: govuk-functional-colour(text);
32
32
  }
@@ -42,7 +42,7 @@ $input-size: 40px;
42
42
  text-indent: -5000px;
43
43
  overflow: hidden;
44
44
  &:focus {
45
- outline: $govuk-focus-width solid $govuk-focus-colour;
45
+ outline: $govuk-focus-width solid govuk-functional-colour(focus);
46
46
  outline-offset: 0;
47
47
  box-shadow: inset 0 0 0 $govuk-border-width-form-element * 2 govuk-colour("black");
48
48
  }
@@ -87,12 +87,12 @@ $input-size: 40px;
87
87
  }
88
88
  .search-results__inner {
89
89
  background: govuk-colour("white");
90
- border-top: 1px solid govuk-colour("mid-grey");
90
+ border-top: 1px solid govuk-colour("black", $variant: "tint-80");
91
91
  max-width: 40rem;
92
92
  padding: 15px;
93
93
  @include govuk-media-query(tablet) {
94
94
  padding: 15px 200px 50px 40px;
95
- border: 1px solid govuk-colour("mid-grey");
95
+ border: 1px solid govuk-colour("black", $variant: "tint-80");
96
96
  &::after {
97
97
  content: '';
98
98
  position: absolute;
@@ -0,0 +1,5 @@
1
+ .govuk-service-navigation > .govuk-width-container {
2
+ max-width: 100%;
3
+ @include govuk-responsive-margin(6, "left");
4
+ @include govuk-responsive-margin(6, "right");
5
+ }
@@ -5,7 +5,7 @@
5
5
  margin: govuk-spacing(3);
6
6
  max-width: 40em;
7
7
 
8
- color: $govuk-text-colour;
8
+ color: govuk-functional-colour(text);
9
9
 
10
10
  @include govuk-media-query(tablet) {
11
11
  margin: 0 govuk-spacing(6) govuk-spacing(6);
@@ -98,10 +98,10 @@
98
98
 
99
99
  blockquote {
100
100
  @include govuk-font($size: 19);
101
- background: govuk-colour("light-grey");
101
+ background: govuk-colour("black", $variant: "tint-95");
102
102
  padding: govuk-spacing(3);
103
103
  margin: govuk-spacing(3);
104
- border-left: govuk-spacing(2) solid govuk-colour("mid-grey");
104
+ border-left: govuk-spacing(2) solid govuk-colour("black", $variant: "tint-80");
105
105
  }
106
106
 
107
107
  // http://code.iamkate.com/html-and-css/fixing-browsers-broken-monospace-font-handling/
@@ -125,8 +125,8 @@
125
125
 
126
126
  &:focus {
127
127
  padding: $padding - ($govuk-focus-width - $border-width);
128
- border: $govuk-focus-width solid $govuk-focus-text-colour;
129
- outline: $govuk-focus-width solid $govuk-focus-colour;
128
+ border: $govuk-focus-width solid govuk-functional-colour(focus-text);
129
+ outline: $govuk-focus-width solid govuk-functional-colour(focus);
130
130
  }
131
131
  }
132
132
 
@@ -169,7 +169,7 @@
169
169
  h1, h2, h3, h4, h5, h6 {
170
170
  code {
171
171
  font-size: inherit;
172
- color: $govuk-text-colour;
172
+ color: govuk-functional-colour(text);
173
173
  background: none;
174
174
  padding: 0;
175
175
  }
@@ -204,7 +204,7 @@
204
204
  padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
205
205
 
206
206
  background-color: transparent;
207
- border-bottom: 1px solid $govuk-border-colour;
207
+ border-bottom: 1px solid govuk-functional-colour(border);
208
208
  border-width: 0 0 1px 0;
209
209
 
210
210
  @include govuk-font($size: 16);
@@ -30,9 +30,9 @@
30
30
 
31
31
  @include govuk-media-query(tablet) {
32
32
  &.toc-link--in-view {
33
- color: $govuk-link-hover-colour;
34
- border-left-color: $govuk-link-hover-colour;
35
- background-color: govuk-colour("light-grey");
33
+ color: govuk-functional-colour(link-hover);
34
+ border-left-color: govuk-functional-colour(link-hover);
35
+ background-color: govuk-colour("black", $variant: "tint-95");
36
36
  }
37
37
  }
38
38
  }
@@ -131,15 +131,15 @@
131
131
  width: 100%;
132
132
  padding: govuk-spacing(3) govuk-spacing(3) 10px;
133
133
 
134
- background: govuk-colour("light-grey");
134
+ background: govuk-colour("black", $variant: "tint-95");
135
135
  @supports(backdrop-filter: blur(2px)) {
136
- background: transparentize(govuk-colour("light-grey"), 0.05);
136
+ background: transparentize(govuk-colour("black", $variant: "tint-95"), 0.05);
137
137
  backdrop-filter: blur(2px);
138
138
  }
139
139
  border: 0;
140
- border-bottom: 1px solid govuk-colour("mid-grey");
140
+ border-bottom: 1px solid govuk-colour("black", $variant: "tint-80");
141
141
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
142
- color: $govuk-text-colour;
142
+ color: govuk-functional-colour(text);
143
143
  text-decoration: none;
144
144
  text-align: left;
145
145
 
@@ -189,16 +189,16 @@
189
189
  }
190
190
 
191
191
  &:focus {
192
- background-color: $govuk-focus-colour;
192
+ background-color: govuk-functional-colour(focus);
193
193
  outline: $govuk-focus-width solid transparent;
194
- box-shadow: inset 0 0 0 1px $govuk-focus-colour;
194
+ box-shadow: inset 0 0 0 1px govuk-functional-colour(focus);
195
195
  }
196
196
 
197
197
  &:focus:not(:active):not(:hover) {
198
- border-color: $govuk-focus-colour;
199
- color: $govuk-focus-text-colour;
200
- background-color: $govuk-focus-colour;
201
- box-shadow: 0 2px 0 $govuk-focus-text-colour;
198
+ border-color: govuk-functional-colour(focus);
199
+ color: govuk-functional-colour(focus-text);
200
+ background-color: govuk-functional-colour(focus);
201
+ box-shadow: 0 2px 0 govuk-functional-colour(focus-text);
202
202
  }
203
203
  }
204
204
 
@@ -1,20 +1,22 @@
1
1
  // A Base16 palette
2
2
  // https://github.com/chriskempson/base16
3
3
 
4
- $code-00: scale-color(govuk-colour("light-grey"), $lightness:50%); /* Default Background */
4
+ $code-00: scale-color(govuk-colour("black", $variant: "tint-95"), $lightness:50%); /* Default Background */
5
5
  $code-01: #f5f5f5; /* Lighter Background (Unused) */
6
6
  $code-02: #bfc1c3; /* Selection Background */
7
- $code-03: darken( $govuk-secondary-text-colour, 2%);; /* Comments, Invisibles, Line Highlighting */
7
+ // we should be using govuk-functional-colour but it outputs a variable, but darken only takes numbers
8
+ // instead, we use the colour returned by govuk-functional-colour(secondary-text)
9
+ $code-03: darken( govuk-colour("black", $variant: "tint-95"), 2%);; /* Comments, Invisibles, Line Highlighting */
8
10
  $code-04: #e8e8e8; /* Dark Foreground (Unused) */
9
- $code-05: $govuk-text-colour; /* Default Foreground, Caret, Delimiters, Operators */
10
- $code-06: #ffffff; /* Light Foreground (Unused) */
11
- $code-07: #ffffff; /* Light Background (Unused) */
11
+ $code-05: govuk-functional-colour(text); /* Default Foreground, Caret, Delimiters, Operators */
12
+ $code-06: govuk-functional-colour(body-background); /* Light Foreground (Unused) */
13
+ $code-07: govuk-functional-colour(body-background); /* Light Background (Unused) */
12
14
 
13
15
  $code-08: #d4351c; /* Variables, XML Tags, Markup Link Text, Markup Lists */
14
16
  $code-09: #0E7754; /* Integers, Boolean, Constants, XML Attributes, Markup Link Url */
15
17
  $code-0A: #4C4077; /* Classes, Markup Bold, Search Text Background */
16
- $code-0B: $govuk-brand-colour; /* Strings, Inherited Class, Markup Code */
17
- $code-0C: $govuk-brand-colour; /* Support, Regular Expressions, Escape Characters, Markup Quotes */
18
+ $code-0B: govuk-functional-colour(brand); /* Strings, Inherited Class, Markup Code */
19
+ $code-0C: govuk-functional-colour(brand); /* Support, Regular Expressions, Escape Characters, Markup Quotes */
18
20
  $code-0D: #4C4077; /* Functions, Methods, Attribute IDs, Headings */
19
21
  $code-0E: #a71d5d; /* Keywords, Storage, Selector, Markup Italic */
20
22
  $code-0F: #C92424; /* Deprecated, Opening/Closing Embedded Language Tags e.g. <?php ?> (Unused) */
@@ -49,7 +49,7 @@ module GovukTechDocs
49
49
 
50
50
  def page_image
51
51
  if config[:tech_docs][:show_govuk_logo]
52
- "#{host}/assets/govuk/assets/rebrand/images/govuk-opengraph-image.png"
52
+ "#{host}/assets/govuk/assets/images/govuk-opengraph-image.png"
53
53
  else
54
54
  "#{host}/images/opengraph-image.png"
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module GovukTechDocs
2
- VERSION = "5.2.2".freeze
2
+ VERSION = "6.0.0.beta".freeze
3
3
  end
@@ -2,9 +2,9 @@
2
2
  <div class="govuk-header__container govuk-header__container--full-width">
3
3
  <div class="govuk-header__logo">
4
4
  <% if config[:tech_docs][:service_link] %>
5
- <a href="<%= get_path_to_resource config, config[:tech_docs][:service_link], current_page %>" class="govuk-header__link govuk-header__link--homepage">
5
+ <a href="<%= get_path_to_resource config, config[:tech_docs][:service_link], current_page %>" class="govuk-header__link govuk-header__homepage-link">
6
6
  <% else %>
7
- <span class="govuk-header__link govuk-header__link--homepage">
7
+ <span class="govuk-header__link govuk-header__homepage-link">
8
8
  <% end %>
9
9
  <% if config[:tech_docs][:show_govuk_logo] %>
10
10
  <svg
@@ -45,19 +45,5 @@
45
45
  <strong class="govuk-tag"><%= config[:tech_docs][:phase] %></strong>
46
46
  <% end %>
47
47
  </div>
48
- <% if config[:tech_docs][:header_links] %>
49
- <div class="govuk-header__content">
50
- <nav class="govuk-header__navigation govuk-header__navigation--end" aria-label="Menu">
51
- <button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>Menu</button>
52
- <ul id="navigation" class="govuk-header__navigation-list">
53
- <% config[:tech_docs][:header_links].each do |title, path| %>
54
- <li class="govuk-header__navigation-item<% if active_page(path) %> govuk-header__navigation-item--active<% end %>">
55
- <a class="govuk-header__link" href="<%= get_path_to_resource config, path, current_page %>"<% if active_page(path) %> aria-current="page"<% end %>><%= title %></a>
56
- </li>
57
- <% end %>
58
- </ul>
59
- </nav>
60
- </div>
61
- <% end %>
62
48
  </div>
63
49
  </header>
@@ -0,0 +1,27 @@
1
+ <% if config[:tech_docs][:header_links] %>
2
+ <div class="govuk-service-navigation app-pane__navigation"
3
+ data-module="govuk-service-navigation">
4
+ <div class="govuk-width-container">
5
+ <div class="govuk-service-navigation__container">
6
+ <nav aria-label="Menu" class="govuk-service-navigation__wrapper">
7
+ <button type="button" class="govuk-service-navigation__toggle govuk-js-service-navigation-toggle" aria-controls="navigation" hidden aria-hidden="true">
8
+ Menu
9
+ </button>
10
+ <ul class="govuk-service-navigation__list" id="navigation">
11
+ <% config[:tech_docs][:header_links].each do |title, path| %>
12
+ <li class="govuk-service-navigation__item <% if active_page(path) %> govuk-service-navigation__item--active<% end %>">
13
+ <a class="govuk-service-navigation__link" href="<%= get_path_to_resource config, path, current_page %>"<% if active_page(path) %> aria-current="page"<% end %>>
14
+ <% if active_page(path) %>
15
+ <strong class="govuk-service-navigation__active-fallback"><%= title %></strong>
16
+ <% else %>
17
+ <%= title %>
18
+ <% end %>
19
+ </a>
20
+ </li>
21
+ <% end %>
22
+ </ul>
23
+ </nav>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ <% end %>
@@ -1,5 +1,5 @@
1
1
  <!doctype html>
2
- <html lang="en" class="govuk-template <%= config[:tech_docs][:show_govuk_logo] ? 'govuk-template--rebranded ' : '' %>no-js">
2
+ <html lang="en" class="govuk-template no-js">
3
3
  <head>
4
4
  <%= partial 'layouts/analytics_ga4_gtag' %>
5
5
  <%= partial 'layouts/analytics_ga4_gtm' %>
@@ -27,11 +27,11 @@
27
27
  '/'
28
28
  end
29
29
  %>
30
- <link rel="icon" sizes="48x48" href="<%= path_prefix %>assets/govuk/assets/rebrand/images/favicon.ico">
31
- <link rel="icon" sizes="any" href="<%= path_prefix %>assets/govuk/assets/rebrand/images/favicon.svg" type="image/svg+xml">
32
- <link rel="mask-icon" href="<%= path_prefix %>assets/govuk/assets/rebrand/images/govuk-icon-mask.svg" color="#0b0c0c">
33
- <link rel="apple-touch-icon" href="<%= path_prefix %>assets/govuk/assets/rebrand/images/govuk-icon-180.png">
34
- <link rel="manifest" href="<%= path_prefix %>assets/govuk/assets/rebrand/manifest.json">
30
+ <link rel="icon" sizes="48x48" href="<%= path_prefix %>assets/govuk/assets/images/favicon.ico">
31
+ <link rel="icon" sizes="any" href="<%= path_prefix %>assets/govuk/assets/images/favicon.svg" type="image/svg+xml">
32
+ <link rel="mask-icon" href="<%= path_prefix %>assets/govuk/assets/images/govuk-icon-mask.svg" color="#0b0c0c">
33
+ <link rel="apple-touch-icon" href="<%= path_prefix %>assets/govuk/assets/images/govuk-icon-180.png">
34
+ <link rel="manifest" href="<%= path_prefix %>assets/govuk/assets/manifest.json">
35
35
  <% else %>
36
36
  <link rel="icon" sizes="48x48" href="/images/favicon.ico">
37
37
  <link rel="icon" sizes="any" href="/images/favicon.svg" type="image/svg+xml">
@@ -55,8 +55,8 @@
55
55
  <%= partial 'layouts/cookie_banner' %>
56
56
  <div class="app-pane__header toc-open-disabled">
57
57
  <a href="#content" class="govuk-skip-link" data-module="govuk-skip-link">Skip to main content</a>
58
-
59
58
  <%= partial 'layouts/header' %>
59
+ <%= partial 'layouts/service_navigation' %>
60
60
  </div>
61
61
 
62
62
  <% if content_for? :sidebar %>
@@ -1,5 +1,6 @@
1
1
  @import "settings/index";
2
2
  @import "tools/index";
3
3
  @import "helpers/index";
4
+ @import "custom-properties/index";
4
5
 
5
6
  /*# sourceMappingURL=_base.scss.map */