govuk_tech_docs 6.0.1 → 6.2.0

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/.github/ISSUE_TEMPLATE/bug.yaml +69 -0
  3. data/.github/ISSUE_TEMPLATE/config.yaml +6 -0
  4. data/.github/ISSUE_TEMPLATE/enhancement.yaml +25 -0
  5. data/.github/pull_request_template.md +22 -8
  6. data/.github/workflows/dependency-review.yaml +17 -0
  7. data/.github/workflows/test.yaml +1 -1
  8. data/.nvmrc +1 -1
  9. data/.ruby-version +1 -1
  10. data/CHANGELOG.md +18 -2
  11. data/README.md +3 -2
  12. data/example/.ruby-version +1 -1
  13. data/example/config/tech-docs.yml +4 -0
  14. data/example/config.rb +15 -0
  15. data/example/source/active-pages/index.html.md.erb +7 -0
  16. data/example/source/active-pages/sub-section/index.html.md.erb +7 -0
  17. data/example/source/index.html.md.erb +6 -1
  18. data/govuk_tech_docs.gemspec +21 -19
  19. data/lib/govuk_tech_docs/custom_method_missing_handler.rb +30 -0
  20. data/lib/govuk_tech_docs/govuk_nunjuck_componenet_renderer.rb +43 -0
  21. data/lib/govuk_tech_docs/version.rb +1 -1
  22. data/lib/govuk_tech_docs.rb +35 -5
  23. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +1 -1
  24. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +1 -1
  25. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  26. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.scss +4 -1
  27. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +3 -1
  28. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.scss +4 -1
  29. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +7 -3
  30. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss +4 -1
  31. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +8 -4
  32. data/node_modules/govuk-frontend/dist/govuk/components/button/_button.scss +4 -1
  33. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +3 -1
  34. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.scss +4 -1
  35. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -0
  36. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss +4 -1
  37. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +10 -6
  38. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss +4 -1
  39. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -0
  40. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_date-input.scss +4 -1
  41. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +2 -0
  42. data/node_modules/govuk-frontend/dist/govuk/components/details/_details.scss +4 -1
  43. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +3 -1
  44. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.scss +4 -1
  45. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +2 -0
  46. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss +4 -1
  47. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +3 -1
  48. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss +4 -1
  49. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +3 -1
  50. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss +4 -1
  51. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -1
  52. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss +4 -1
  53. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +4 -1
  54. data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.scss +4 -1
  55. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +2 -0
  56. data/node_modules/govuk-frontend/dist/govuk/components/header/_header.scss +4 -1
  57. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +2 -0
  58. data/node_modules/govuk-frontend/dist/govuk/components/hint/_hint.scss +4 -1
  59. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +2 -0
  60. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +2 -0
  61. data/node_modules/govuk-frontend/dist/govuk/components/input/_input.scss +4 -1
  62. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +5 -1
  63. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss +4 -1
  64. data/node_modules/govuk-frontend/dist/govuk/components/label/_index.scss +3 -1
  65. data/node_modules/govuk-frontend/dist/govuk/components/label/_label.scss +4 -1
  66. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +6 -2
  67. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss +4 -1
  68. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +2 -0
  69. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.scss +4 -1
  70. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +3 -1
  71. data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.scss +4 -1
  72. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -0
  73. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss +4 -1
  74. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +3 -1
  75. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss +4 -1
  76. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +14 -10
  77. data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.scss +4 -1
  78. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +2 -0
  79. data/node_modules/govuk-frontend/dist/govuk/components/select/_select.scss +4 -1
  80. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +5 -1
  81. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +4 -1
  82. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -3
  83. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss +4 -1
  84. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +15 -2
  85. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss +4 -1
  86. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +4 -1
  87. data/node_modules/govuk-frontend/dist/govuk/components/table/_table.scss +4 -1
  88. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +5 -2
  89. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.scss +4 -1
  90. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +4 -1
  91. data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.scss +4 -1
  92. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +6 -2
  93. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.scss +4 -1
  94. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +2 -0
  95. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.scss +4 -1
  96. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +3 -1
  97. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss +4 -1
  98. data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.scss +4 -0
  99. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +4 -0
  100. data/node_modules/govuk-frontend/dist/govuk/core/_links.scss +8 -0
  101. data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +10 -1
  102. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +5 -0
  103. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +14 -13
  104. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +1 -1
  105. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +5 -0
  106. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  107. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +38 -70
  108. data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.scss +2 -0
  109. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +1 -1
  110. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +3 -2
  111. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +4 -4
  112. data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +17 -15
  113. data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +2 -2
  114. data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +19 -13
  115. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +48 -26
  116. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +13 -11
  117. data/node_modules/govuk-frontend/dist/govuk/objects/_grid.scss +4 -2
  118. data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +10 -9
  119. data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +2 -0
  120. data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss +3 -0
  121. data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.scss +5 -1
  122. data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.scss +2 -0
  123. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +7 -2
  124. data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +3 -0
  125. data/node_modules/govuk-frontend/dist/govuk/settings/_assets.scss +18 -0
  126. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +28 -4
  127. data/node_modules/govuk-frontend/dist/govuk/settings/_links.scss +3 -2
  128. data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss +8 -16
  129. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.scss +4 -1
  130. data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss +15 -2
  131. data/node_modules/govuk-frontend/dist/govuk/tools/_exports.scss +3 -2
  132. data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.scss +13 -5
  133. data/node_modules/govuk-frontend/dist/govuk/tools/_if.scss +24 -0
  134. data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss +13 -5
  135. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +1 -0
  136. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +5 -3
  137. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +4 -2
  138. data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.scss +3 -0
  139. data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss +1 -0
  140. data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.scss +3 -0
  141. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss +3 -1
  142. data/package-lock.json +1302 -4959
  143. data/package.json +5 -4
  144. metadata +74 -80
  145. data/.github/ISSUE_TEMPLATE.md +0 -13
@@ -1,3 +1,5 @@
1
+ @import "../../base";
2
+
1
3
  @import "../error-message/index";
2
4
  @import "../hint/index";
3
5
  @import "../label/index";
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("select");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_select.scss.map */
@@ -1,3 +1,7 @@
1
+ @use "sass:math";
2
+
3
+ @import "../../base";
4
+
1
5
  @include govuk-exports("govuk/component/service-navigation") {
2
6
  $govuk-service-navigation-active-link-border-width: govuk-spacing(1);
3
7
  $govuk-service-navigation-text-colour: govuk-functional-colour(surface-text);
@@ -50,7 +54,7 @@
50
54
  // padding (2×15), minus bottom border (1); 19 is the font-size at this
51
55
  // point. This gives us the perfect fractional line height to make the
52
56
  // overall component 60px high
53
- line-height: (29 / 19);
57
+ line-height: math.div(29, 19);
54
58
 
55
59
  &:not(:last-child) {
56
60
  @include govuk-responsive-margin(6, $direction: right);
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("service-navigation");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_service-navigation.scss.map */
@@ -1,3 +1,7 @@
1
+ @use "sass:string";
2
+
3
+ @import "../../base";
4
+
1
5
  @include govuk-exports("govuk/component/skip-link") {
2
6
  .govuk-skip-link {
3
7
  @include govuk-visually-hidden-focusable;
@@ -9,14 +13,14 @@
9
13
  padding: govuk-spacing(2) govuk-spacing(3);
10
14
 
11
15
  // Respect 'display cutout' safe area (avoids notches and rounded corners)
12
- @supports (padding: unquote("max(calc(0px))")) {
16
+ @supports (padding: string.unquote("max(calc(0px))")) {
13
17
  $padding-safe-area-right: calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
14
18
  $padding-safe-area-left: calc(#{govuk-spacing(3)} + env(safe-area-inset-left));
15
19
 
16
20
  // Use max() to pick largest padding, default or with safe area
17
21
  // Escaped due to Sass max() vs. CSS native max()
18
- padding-right: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-right})");
19
- padding-left: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-left})");
22
+ padding-right: string.unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-right})");
23
+ padding-left: string.unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-left})");
20
24
  }
21
25
 
22
26
  &:focus {
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("skip-link");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_skip-link.scss.map */
@@ -1,15 +1,23 @@
1
+ @import "../../base";
2
+
1
3
  @include govuk-exports("govuk/component/summary-list") {
2
4
  .govuk-summary-list {
3
5
  @include govuk-font($size: 19);
4
- @include govuk-text-colour;
6
+
7
+ color: govuk-functional-colour(text);
8
+
5
9
  @media #{govuk-from-breakpoint(tablet)} {
6
10
  display: table;
7
11
  width: 100%;
8
12
  table-layout: fixed; // Required to allow us to wrap words that overflow.
9
13
  border-collapse: collapse;
10
14
  }
15
+
16
+ // Keep margins together
17
+ // stylelint-disable order/properties-order
11
18
  margin: 0; // Reset default user agent styles
12
19
  @include govuk-responsive-margin(6, "bottom");
20
+ // stylelint-enable order/properties-order
13
21
  }
14
22
 
15
23
  .govuk-summary-list__row {
@@ -51,6 +59,11 @@
51
59
  padding-top: govuk-spacing(2);
52
60
  padding-right: govuk-spacing(4);
53
61
  padding-bottom: govuk-spacing(2);
62
+
63
+ // Make sure that any multi-line inline-blocks inside of the summary
64
+ // list (e.g. Tag components) don't cause the text baseline to shift,
65
+ // causing other cells in the row to be misaligned.
66
+ vertical-align: top;
54
67
  }
55
68
  }
56
69
 
@@ -204,8 +217,8 @@
204
217
 
205
218
  .govuk-summary-card__title {
206
219
  @include govuk-font($size: 19, $weight: bold);
207
- @include govuk-text-colour;
208
220
  margin: govuk-spacing(1) govuk-spacing(4) govuk-spacing(2) 0;
221
+ color: govuk-functional-colour(text);
209
222
 
210
223
  @media #{govuk-from-breakpoint(tablet)} {
211
224
  margin-bottom: govuk-spacing(1);
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("summary-list");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_summary-list.scss.map */
@@ -1,12 +1,15 @@
1
+ @import "../../base";
2
+
1
3
  @include govuk-exports("govuk/component/table") {
2
4
  .govuk-table {
3
5
  @include govuk-font($size: 19);
4
- @include govuk-text-colour;
6
+
5
7
  width: 100%;
6
8
  @include govuk-responsive-margin(6, "bottom");
7
9
 
8
10
  border-spacing: 0;
9
11
  border-collapse: collapse;
12
+ color: govuk-functional-colour(text);
10
13
  }
11
14
 
12
15
  // Modifier for tables with a lot of data. Tables with lots of data benefit
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("table");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_table.scss.map */
@@ -1,3 +1,5 @@
1
+ @import "../../base";
2
+
1
3
  @include govuk-exports("govuk/component/tabs") {
2
4
  .govuk-tabs {
3
5
  @include govuk-responsive-margin(1, "top");
@@ -10,8 +12,9 @@
10
12
  // user agent font size overrides the inherited font size
11
13
  @include govuk-font-size($size: 19);
12
14
  @include govuk-typography-weight-regular;
13
- @include govuk-text-colour;
15
+
14
16
  margin-bottom: govuk-spacing(2);
17
+ color: govuk-functional-colour(text);
15
18
  }
16
19
 
17
20
  .govuk-tabs__list {
@@ -25,10 +28,10 @@
25
28
  margin-left: govuk-spacing(5);
26
29
 
27
30
  &::before {
28
- @include govuk-text-colour;
29
31
  content: "\2014 "; // "— "
30
32
  margin-left: govuk-spacing(-5);
31
33
  padding-right: govuk-spacing(1);
34
+ color: govuk-functional-colour(text);
32
35
  }
33
36
  }
34
37
 
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("tabs");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_tabs.scss.map */
@@ -1,6 +1,9 @@
1
1
  ////
2
2
  /// @group components/tag
3
3
  ////
4
+ @use "sass:map";
5
+
6
+ @import "../../base";
4
7
 
5
8
  /// Get tag text colour
6
9
  /// Almost all tags should use the 50% shade of their colour for their text
@@ -33,7 +36,7 @@
33
36
  }
34
37
 
35
38
  @include govuk-exports("govuk/component/tag") {
36
- $govuk-tag-max-width: if(map-has-key($govuk-breakpoints, "mobile"), map-get($govuk-breakpoints, "mobile") / 2, 160px);
39
+ $govuk-tag-max-width: 0.5 * (map.get($govuk-breakpoints, "mobile") or 320px);
37
40
 
38
41
  .govuk-tag {
39
42
  @include govuk-font($size: 19);
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("tag");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_tag.scss.map */
@@ -1,3 +1,5 @@
1
+ @import "../../base";
2
+
1
3
  @import "../tag/index";
2
4
 
3
5
  @include govuk-exports("govuk/component/task-list") {
@@ -43,16 +45,18 @@
43
45
 
44
46
  .govuk-task-list__name-and-hint {
45
47
  display: table-cell;
48
+
49
+ color: govuk-functional-colour(text);
46
50
  vertical-align: top;
47
- @include govuk-text-colour;
48
51
  }
49
52
 
50
53
  .govuk-task-list__status {
51
54
  display: table-cell;
52
55
  padding-left: govuk-spacing(2);
56
+
57
+ color: govuk-functional-colour(text);
53
58
  text-align: right;
54
59
  vertical-align: top;
55
- @include govuk-text-colour;
56
60
  }
57
61
 
58
62
  .govuk-task-list__status--cannot-start-yet {
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("task-list");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_task-list.scss.map */
@@ -1,3 +1,5 @@
1
+ @import "../../base";
2
+
1
3
  @import "../error-message/index";
2
4
  @import "../hint/index";
3
5
  @import "../label/index";
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("textarea");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_textarea.scss.map */
@@ -1,3 +1,5 @@
1
+ @import "../../base";
2
+
1
3
  @include govuk-exports("govuk/component/warning-text") {
2
4
  .govuk-warning-text {
3
5
  @include govuk-font($size: 19);
@@ -55,9 +57,9 @@
55
57
  }
56
58
 
57
59
  .govuk-warning-text__text {
58
- @include govuk-text-colour;
59
60
  display: block;
60
61
  padding-left: 45px;
62
+ color: govuk-functional-colour(text);
61
63
  // While `<strong>` is styled `bold` or `bolder` by user-agents
62
64
  // this can be reset by the app's stylesheet
63
65
  font-weight: inherit;
@@ -1,4 +1,7 @@
1
- @import "../../base";
1
+ @import "../../settings/warnings";
2
+
3
+ @include _component-scss-file-warning("warning-text");
4
+
2
5
  @import "./index";
3
6
 
4
7
  /*# sourceMappingURL=_warning-text.scss.map */
@@ -1,3 +1,7 @@
1
+ @import "../settings/global-styles";
2
+ @import "../tools/exports";
3
+ @import "../helpers/colour";
4
+ @import "../helpers/links";
1
5
  @import "links";
2
6
  @import "typography";
3
7
 
@@ -1,3 +1,7 @@
1
+ @import "../settings/global-styles";
2
+ @import "../tools/exports";
3
+ @import "../helpers/colour";
4
+ @import "../helpers/links";
1
5
  @import "links";
2
6
  @import "lists";
3
7
  @import "typography";
@@ -1,3 +1,11 @@
1
+ @import "../settings/links";
2
+ @import "../settings/measurements";
3
+ @import "../tools/exports";
4
+ @import "../helpers/colour";
5
+ @import "../helpers/focused";
6
+ @import "../helpers/links";
7
+ @import "../helpers/typography";
8
+
1
9
  @include govuk-exports("govuk/core/links") {
2
10
  %govuk-link {
3
11
  @include govuk-link-common;
@@ -1,11 +1,20 @@
1
+ @import "../tools/exports";
2
+ @import "../helpers/colour";
3
+ @import "../helpers/typography";
4
+
1
5
  @include govuk-exports("govuk/core/lists") {
2
6
  %govuk-list {
3
7
  @include govuk-font($size: 19);
4
- @include govuk-text-colour;
8
+
9
+ // Keep margin configuration next to each other
10
+ // stylelint-disable order/order-properties
5
11
  margin-top: 0;
6
12
  @include govuk-responsive-margin(4, "bottom");
13
+ // stylelint-enable order/order-properties
14
+
7
15
  padding-left: 0;
8
16
  list-style-type: none;
17
+ color: govuk-functional-colour(text);
9
18
 
10
19
  // Add a top margin for nested lists
11
20
  %govuk-list {
@@ -1,3 +1,8 @@
1
+ @import "../settings/spacing";
2
+ @import "../tools/exports";
3
+ @import "../helpers/colour";
4
+ @import "../helpers/spacing";
5
+
1
6
  @include govuk-exports("govuk/core/section-break") {
2
7
  %govuk-section-break {
3
8
  margin: 0;
@@ -1,13 +1,17 @@
1
+ @import "../tools/exports";
2
+ @import "../helpers/colour";
3
+ @import "../helpers/typography";
4
+
1
5
  @include govuk-exports("govuk/core/typography") {
2
6
  // Headings
3
7
 
4
8
  %govuk-heading-xl {
5
- @include govuk-text-colour;
6
9
  @include govuk-font($size: 48, $weight: bold);
7
10
 
8
11
  display: block;
9
12
 
10
13
  margin-top: 0;
14
+ color: govuk-functional-colour(text);
11
15
  @include govuk-responsive-margin(8, "bottom");
12
16
  }
13
17
 
@@ -16,12 +20,12 @@
16
20
  }
17
21
 
18
22
  %govuk-heading-l {
19
- @include govuk-text-colour;
20
23
  @include govuk-font($size: 36, $weight: bold);
21
24
 
22
25
  display: block;
23
26
 
24
27
  margin-top: 0;
28
+ color: govuk-functional-colour(text);
25
29
  @include govuk-responsive-margin(6, "bottom");
26
30
  }
27
31
 
@@ -30,12 +34,12 @@
30
34
  }
31
35
 
32
36
  %govuk-heading-m {
33
- @include govuk-text-colour;
34
37
  @include govuk-font($size: 24, $weight: bold);
35
38
 
36
39
  display: block;
37
40
 
38
41
  margin-top: 0;
42
+ color: govuk-functional-colour(text);
39
43
  @include govuk-responsive-margin(4, "bottom");
40
44
  }
41
45
 
@@ -44,12 +48,12 @@
44
48
  }
45
49
 
46
50
  %govuk-heading-s {
47
- @include govuk-text-colour;
48
51
  @include govuk-font($size: 19, $weight: bold);
49
52
 
50
53
  display: block;
51
54
 
52
55
  margin-top: 0;
56
+ color: govuk-functional-colour(text);
53
57
  @include govuk-responsive-margin(4, "bottom");
54
58
  }
55
59
 
@@ -93,10 +97,9 @@
93
97
  // Body (paragraphs)
94
98
 
95
99
  %govuk-body-l {
96
- @include govuk-text-colour;
97
- @include govuk-font($size: 24);
98
-
99
100
  margin-top: 0;
101
+ color: govuk-functional-colour(text);
102
+ @include govuk-font($size: 24);
100
103
  @include govuk-responsive-margin(6, "bottom");
101
104
  }
102
105
 
@@ -105,10 +108,9 @@
105
108
  }
106
109
 
107
110
  %govuk-body-m {
108
- @include govuk-text-colour;
109
- @include govuk-font($size: 19);
110
-
111
111
  margin-top: 0;
112
+ color: govuk-functional-colour(text);
113
+ @include govuk-font($size: 19);
112
114
  @include govuk-responsive-margin(4, "bottom");
113
115
  }
114
116
 
@@ -117,10 +119,9 @@
117
119
  }
118
120
 
119
121
  %govuk-body-s {
120
- @include govuk-text-colour;
121
- @include govuk-font($size: 16);
122
-
123
122
  margin-top: 0;
123
+ color: govuk-functional-colour(text);
124
+ @include govuk-font($size: 16);
124
125
  @include govuk-responsive-margin(4, "bottom");
125
126
  }
126
127
 
@@ -8,7 +8,7 @@
8
8
  // multiple stylesheets are outputting the same version
9
9
  @include govuk-exports("govuk/custom-properties/frontend-version") {
10
10
  :root {
11
- --govuk-frontend-version: "6.0.0";
11
+ --govuk-frontend-version: "6.1.0";
12
12
  }
13
13
  }
14
14
 
@@ -10,6 +10,11 @@
10
10
  @each $name, $value in $govuk-functional-colours {
11
11
  --govuk-#{$name}-colour: #{_govuk-resolve-colour($value)};
12
12
  }
13
+
14
+ @media print {
15
+ // Use 'true black' to avoid printers using colour ink to print body text
16
+ --govuk-text-colour: #{govuk-functional-colour("print-text")};
17
+ }
13
18
  }
14
19
  }
15
20
  }