govuk_tech_docs 3.0.1 → 3.2.1

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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/example/source/code.html.md +3 -26
  4. data/lib/assets/javascripts/_modules/collapsible-navigation.js +13 -7
  5. data/lib/assets/javascripts/_modules/in-page-navigation.js +9 -4
  6. data/lib/assets/javascripts/_modules/search.js +11 -7
  7. data/lib/assets/stylesheets/_govuk_tech_docs.scss +1 -1
  8. data/lib/assets/stylesheets/modules/_anchored-heading.scss +2 -2
  9. data/lib/assets/stylesheets/modules/_search.scss +2 -2
  10. data/lib/assets/stylesheets/modules/_toc.scss +4 -4
  11. data/lib/govuk_tech_docs/pages.rb +4 -2
  12. data/lib/govuk_tech_docs/path_helpers.rb +30 -0
  13. data/lib/govuk_tech_docs/table_of_contents/helpers.rb +7 -7
  14. data/lib/govuk_tech_docs/tech_docs_html_renderer.rb +3 -3
  15. data/lib/govuk_tech_docs/version.rb +1 -1
  16. data/lib/govuk_tech_docs.rb +1 -0
  17. data/lib/source/api/pages.json.erb +1 -1
  18. data/lib/source/layouts/_header.erb +3 -3
  19. data/lib/source/layouts/_search.erb +1 -1
  20. data/lib/source/layouts/core.erb +1 -1
  21. data/node_modules/govuk-frontend/govuk/all.js +272 -75
  22. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +275 -98
  23. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +169 -65
  24. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +3 -4
  25. data/node_modules/govuk-frontend/govuk/components/button/button.js +2 -2
  26. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +3 -3
  27. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +14 -0
  28. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +8 -10
  29. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +0 -2
  30. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +2 -1
  31. data/node_modules/govuk-frontend/govuk/components/details/details.js +2 -2
  32. data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +1 -0
  33. data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +2 -2
  34. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +1 -0
  35. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +6 -37
  36. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +10 -4
  37. data/node_modules/govuk-frontend/govuk/components/header/header.js +4 -4
  38. data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +1 -3
  39. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +1 -1
  40. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +499 -2
  41. data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +13 -1
  42. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +14 -0
  43. data/node_modules/govuk-frontend/govuk/components/radios/radios.js +4 -4
  44. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +1 -1
  45. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +13 -0
  46. data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +1108 -0
  47. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +15 -23
  48. data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +2 -2
  49. data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +2 -2
  50. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +0 -5
  51. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +1 -1
  52. data/node_modules/govuk-frontend/govuk/core/_all.scss +0 -1
  53. data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +0 -6
  54. data/node_modules/govuk-frontend/govuk/core/_links.scss +0 -6
  55. data/node_modules/govuk-frontend/govuk/core/_lists.scss +0 -6
  56. data/node_modules/govuk-frontend/govuk/core/_section-break.scss +0 -6
  57. data/node_modules/govuk-frontend/govuk/core/_typography.scss +0 -6
  58. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +2 -2
  59. data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +22 -4
  60. data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
  61. data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +15 -30
  62. data/node_modules/govuk-frontend/govuk/{core → objects}/_template.scss +1 -5
  63. data/node_modules/govuk-frontend/govuk/overrides/_all.scss +1 -0
  64. data/node_modules/govuk-frontend/govuk/overrides/_display.scss +0 -6
  65. data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +0 -6
  66. data/node_modules/govuk-frontend/govuk/overrides/_text-align.scss +14 -0
  67. data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +0 -6
  68. data/node_modules/govuk-frontend/govuk/overrides/_width.scss +0 -6
  69. data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +3 -0
  70. data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +0 -10
  71. data/node_modules/govuk-frontend/govuk/tools/_all.scss +0 -1
  72. data/package-lock.json +3 -3
  73. data/package.json +1 -1
  74. metadata +9 -7
  75. data/node_modules/govuk-frontend/govuk/tools/_iff.scss +0 -17
@@ -6,21 +6,30 @@
6
6
  display: table;
7
7
  width: 100%;
8
8
  table-layout: fixed; // Required to allow us to wrap words that overflow.
9
+ border-collapse: collapse;
9
10
  }
10
11
  margin: 0; // Reset default user agent styles
11
12
  @include govuk-responsive-margin(6, "bottom");
12
13
  }
13
14
 
14
15
  .govuk-summary-list__row {
16
+ border-bottom: 1px solid $govuk-border-colour;
17
+
15
18
  @include govuk-media-query($until: tablet) {
16
19
  margin-bottom: govuk-spacing(3);
17
- border-bottom: 1px solid $govuk-border-colour;
18
20
  }
19
21
  @include govuk-media-query($from: tablet) {
20
22
  display: table-row;
21
23
  }
22
24
  }
23
25
 
26
+ // Provide an empty 'cell' for rows that don't have actions – otherwise the
27
+ // bottom border is not drawn for that part of the row in some browsers.
28
+ .govuk-summary-list__row--no-actions:after {
29
+ content: "";
30
+ display: table-cell;
31
+ }
32
+
24
33
  .govuk-summary-list__key,
25
34
  .govuk-summary-list__value,
26
35
  .govuk-summary-list__actions {
@@ -31,7 +40,6 @@
31
40
  padding-top: govuk-spacing(2);
32
41
  padding-right: govuk-spacing(4);
33
42
  padding-bottom: govuk-spacing(2);
34
- border-bottom: 1px solid $govuk-border-colour;
35
43
  }
36
44
  }
37
45
 
@@ -63,16 +71,6 @@
63
71
  @include govuk-media-query($until: tablet) {
64
72
  margin-bottom: govuk-spacing(3);
65
73
  }
66
- @include govuk-media-query($from: tablet) {
67
- width: 50%;
68
- }
69
- }
70
-
71
- // Expand width when value is last column (no action)
72
- .govuk-summary-list__value:last-child {
73
- @include govuk-media-query($from: tablet) {
74
- width: 70%;
75
- }
76
74
  }
77
75
 
78
76
  .govuk-summary-list__value > p {
@@ -109,36 +107,30 @@
109
107
 
110
108
  // No border on entire summary list
111
109
  .govuk-summary-list--no-border {
112
- @include govuk-media-query($until: tablet) {
113
- .govuk-summary-list__row {
114
- border: 0;
115
- }
110
+ .govuk-summary-list__row {
111
+ border: 0;
116
112
  }
117
113
 
114
+ // Increase padding by 1px to compensate for 'missing' border
118
115
  @include govuk-media-query($from: tablet) {
119
116
  .govuk-summary-list__key,
120
117
  .govuk-summary-list__value,
121
118
  .govuk-summary-list__actions {
122
- // Remove 1px border, add 1px height back on
123
119
  padding-bottom: govuk-spacing(2) + 1px;
124
- border: 0;
125
120
  }
126
121
  }
127
122
  }
128
123
 
129
124
  // No border on specific rows
130
125
  .govuk-summary-list__row--no-border {
131
- @include govuk-media-query($until: tablet) {
132
- border: 0;
133
- }
126
+ border: 0;
134
127
 
128
+ // Increase padding by 1px to compensate for 'missing' border
135
129
  @include govuk-media-query($from: tablet) {
136
130
  .govuk-summary-list__key,
137
131
  .govuk-summary-list__value,
138
132
  .govuk-summary-list__actions {
139
- // Remove 1px border, add 1px height back on
140
133
  padding-bottom: govuk-spacing(2) + 1px;
141
- border: 0;
142
134
  }
143
135
  }
144
136
  }
@@ -24,7 +24,7 @@
24
24
  &:before {
25
25
  @include govuk-text-colour;
26
26
  content: "\2014 "; // "— "
27
- margin-left: - govuk-spacing(5);
27
+ margin-left: govuk-spacing(-5);
28
28
  padding-right: govuk-spacing(1);
29
29
  }
30
30
  }
@@ -77,7 +77,7 @@
77
77
 
78
78
  position: relative;
79
79
 
80
- margin-top: - govuk-spacing(1);
80
+ margin-top: govuk-spacing(-1);
81
81
 
82
82
  // Compensation for border (otherwise we get a shift)
83
83
  margin-bottom: -$border-width;
@@ -1,7 +1,7 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
- typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
4
- (global.GOVUKFrontend = factory());
3
+ typeof define === 'function' && define.amd ? define('GOVUKFrontend.Tabs', factory) :
4
+ (global.GOVUKFrontend = global.GOVUKFrontend || {}, global.GOVUKFrontend.Tabs = factory());
5
5
  }(this, (function () { 'use strict';
6
6
 
7
7
  (function(undefined) {
@@ -34,11 +34,6 @@
34
34
  }
35
35
  }
36
36
 
37
- // Deprecated. We'll remove this class in a future release. Use `.govuk-tag--grey` instead.
38
- .govuk-tag--inactive {
39
- background-color: govuk-colour("dark-grey", $legacy: "grey-1");
40
- }
41
-
42
37
  .govuk-tag--grey {
43
38
  color: govuk-shade(govuk-colour("dark-grey", $legacy: "grey-1"), 30);
44
39
  background: govuk-tint(govuk-colour("dark-grey", $legacy: "grey-1"), 90);
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  .govuk-textarea--error {
41
- border: $govuk-border-width-form-element-error solid $govuk-error-colour;
41
+ border-color: $govuk-error-colour;
42
42
 
43
43
  &:focus {
44
44
  border-color: $govuk-input-border-colour;
@@ -1,6 +1,5 @@
1
1
  @import "links";
2
2
  @import "lists";
3
- @import "template";
4
3
  @import "typography";
5
4
  @import "section-break";
6
5
  @import "global-styles";
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @import "links";
8
2
  @import "typography";
9
3
 
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/core/links") {
8
2
 
9
3
  %govuk-link {
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/core/lists") {
8
2
 
9
3
  %govuk-list {
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/core/section-break") {
8
2
 
9
3
  %govuk-section-break {
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/core/typography") {
8
2
 
9
3
  // Headings
@@ -75,7 +75,7 @@
75
75
  /// Make a colour darker by mixing it with black
76
76
  ///
77
77
  /// @param {Colour} $colour - colour to shade
78
- /// @param {Number} $percentage - percentage of `$colour` in returned color
78
+ /// @param {Number} $percentage - percentage of `$colour` in returned colour
79
79
  /// @return {Colour}
80
80
  /// @access public
81
81
 
@@ -86,7 +86,7 @@
86
86
  /// Make a colour lighter by mixing it with white
87
87
  ///
88
88
  /// @param {Colour} $colour - colour to tint
89
- /// @param {Number} $percentage - percentage of `$colour` in returned color
89
+ /// @param {Number} $percentage - percentage of `$colour` in returned colour
90
90
  /// @return {Colour}
91
91
  /// @access public
92
92
 
@@ -8,15 +8,26 @@
8
8
  ///
9
9
  /// Returns measurement corresponding to the spacing point requested.
10
10
  ///
11
- /// @param {Number} $spacing-point - Point on the spacing scale (set in `settings/_spacing.sccs`)
11
+ /// @param {Number} $spacing-point - Point on the spacing scale
12
+ /// (set in `settings/_spacing.scss`)
12
13
  ///
13
- /// @returns {String} Spacing Measurement eg. 10px
14
+ /// @returns {String} Spacing measurement eg. 10px
14
15
  ///
15
16
  /// @example scss
16
17
  /// .element {
17
18
  /// padding: govuk-spacing(5);
18
- /// top: govuk-spacing(2) !important; // if `!important` is required
19
19
  /// }
20
+ ///
21
+ /// @example scss Using negative spacing
22
+ /// .element {
23
+ /// margin-top: govuk-spacing(-1);
24
+ /// }
25
+ ///
26
+ /// @example scss Marking spacing declarations as important
27
+ /// .element {
28
+ /// margin-top: govuk-spacing(1) !important;
29
+ /// }
30
+ ///
20
31
  /// @access public
21
32
 
22
33
  @function govuk-spacing($spacing-point) {
@@ -27,11 +38,18 @@
27
38
  + "#{$actual-input-type}.";
28
39
  }
29
40
 
41
+ $is-negative: false;
42
+ @if ($spacing-point < 0) {
43
+ $is-negative: true;
44
+ $spacing-point: abs($spacing-point);
45
+ }
46
+
30
47
  @if not map-has-key($govuk-spacing-points, $spacing-point) {
31
48
  @error "Unknown spacing variable `#{$spacing-point}`. Make sure you are using a point from the spacing scale in `_settings/spacing.scss`.";
32
49
  }
33
50
 
34
- @return map-get($govuk-spacing-points, $spacing-point);
51
+ $value: map-get($govuk-spacing-points, $spacing-point);
52
+ @return if($is-negative, $value * -1, $value);
35
53
  }
36
54
 
37
55
  /// Responsive spacing
@@ -2,4 +2,5 @@
2
2
  @import "form-group";
3
3
  @import "grid";
4
4
  @import "main-wrapper";
5
+ @import "template";
5
6
  @import "width-container";
@@ -21,37 +21,22 @@
21
21
  // </div>
22
22
  // </div>
23
23
 
24
- /// @deprecated Replace this mixin with more direct references to the [spacing
25
- /// mixins](https://design-system.service.gov.uk/styles/spacing/#spacing-on-custom-components).
26
- @mixin govuk-main-wrapper {
27
- // In IE11 the `main` element can be used, but is not recognized –
28
- // meaning it's not defined in IE's default style sheet,
29
- // so it uses CSS initial value, which is inline.
30
- display: block;
31
- padding-top: govuk-spacing(4);
32
- padding-bottom: govuk-spacing(4);
33
-
34
- @include govuk-media-query($from: tablet) {
35
- // This spacing is manually adjusted to replicate the margin of
36
- // govuk-heading-xl (50px) minus the spacing of back link and
37
- // breadcrumbs (10px)
38
- padding-top: govuk-spacing(7);
39
- padding-bottom: govuk-spacing(7);
40
- }
41
- }
42
-
43
- /// Use govuk-main-wrapper--l when you page does not have Breadcrumbs, phase
44
- /// banners or back links.
45
- ///
46
- /// @deprecated Replace this mixin with more direct references to the [spacing
47
- /// mixins](https://design-system.service.gov.uk/styles/spacing/#spacing-on-custom-components).
48
- @mixin govuk-main-wrapper--l {
49
- @include govuk-responsive-padding(8, "top");
50
- }
51
-
52
24
  @include govuk-exports("govuk/objects/main-wrapper") {
53
25
  .govuk-main-wrapper {
54
- @include govuk-main-wrapper;
26
+ // In IE11 the `main` element can be used, but is not recognized –
27
+ // meaning it's not defined in IE's default style sheet,
28
+ // so it uses CSS initial value, which is inline.
29
+ display: block;
30
+ padding-top: govuk-spacing(4);
31
+ padding-bottom: govuk-spacing(4);
32
+
33
+ @include govuk-media-query($from: tablet) {
34
+ // This spacing is manually adjusted to replicate the margin of
35
+ // govuk-heading-xl (50px) minus the spacing of back link and
36
+ // breadcrumbs (10px)
37
+ padding-top: govuk-spacing(7);
38
+ padding-bottom: govuk-spacing(7);
39
+ }
55
40
  }
56
41
 
57
42
  // Using the `.govuk-main-wrapper--auto-spacing` modifier should apply the
@@ -63,6 +48,6 @@
63
48
  // `govuk-main-wrapper--l` modifier instead.
64
49
  .govuk-main-wrapper--auto-spacing:first-child,
65
50
  .govuk-main-wrapper--l {
66
- @include govuk-main-wrapper--l;
51
+ @include govuk-responsive-padding(8, "top");
67
52
  }
68
53
  }
@@ -1,10 +1,6 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
1
  @import "../base";
6
2
 
7
- @include govuk-exports("govuk/core/template") {
3
+ @include govuk-exports("govuk/objects/template") {
8
4
 
9
5
  // Applied to the <html> element
10
6
  .govuk-template {
@@ -1,4 +1,5 @@
1
1
  @import "display";
2
2
  @import "spacing";
3
+ @import "text-align";
3
4
  @import "typography";
4
5
  @import "width";
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  // stylelint-disable declaration-no-important
8
2
  @include govuk-exports("govuk/overrides/display") {
9
3
  .govuk-\!-display-inline {
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  ////
8
2
  /// @group overrides
9
3
  ////
@@ -0,0 +1,14 @@
1
+ // stylelint-disable declaration-no-important
2
+ @include govuk-exports("govuk/overrides/text-align") {
3
+ .govuk-\!-text-align-left {
4
+ text-align: left !important;
5
+ }
6
+
7
+ .govuk-\!-text-align-centre {
8
+ text-align: center !important;
9
+ }
10
+
11
+ .govuk-\!-text-align-right {
12
+ text-align: right !important;
13
+ }
14
+ }
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/overrides/typography") {
8
2
  // Font size and line height
9
3
 
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  // stylelint-disable declaration-no-important
8
2
  @include govuk-exports("govuk/overrides/width") {
9
3
  .govuk-\!-width-full {
@@ -54,6 +54,9 @@ $govuk-colours-organisations: (
54
54
  colour: #cf102d,
55
55
  colour-websafe: #005ea5
56
56
  ),
57
+ "department-for-levelling-up-housing-and-communities": (
58
+ colour: #012169,
59
+ ),
57
60
  "department-for-transport": (
58
61
  colour: #006c56,
59
62
  colour-websafe: #398373
@@ -73,16 +73,6 @@ $govuk-border-width-narrow: 4px !default;
73
73
 
74
74
  $govuk-border-width-form-element: 2px !default;
75
75
 
76
- /// Form control border width when in error state
77
- ///
78
- /// @type Number
79
- /// @access public
80
- /// @deprecated Use $govuk-border-width-form-element instead. There should be no
81
- /// difference in thickness for inputs in the error state, in order to
82
- /// maintain a distinct focus state.
83
-
84
- $govuk-border-width-form-element-error: 2px !default;
85
-
86
76
  /// Form group border width when in error state
87
77
  ///
88
78
  /// @type Number
@@ -2,7 +2,6 @@
2
2
  @import "exports";
3
3
  @import "font-url";
4
4
  @import "ie8";
5
- @import "iff";
6
5
  @import "image-url";
7
6
  @import "px-to-em";
8
7
  @import "px-to-rem";
data/package-lock.json CHANGED
@@ -808,9 +808,9 @@
808
808
  }
809
809
  },
810
810
  "govuk-frontend": {
811
- "version": "3.13.0",
812
- "resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-3.13.0.tgz",
813
- "integrity": "sha512-JiPCeasuHZ+9m1VyqhsfE81PhWIW4Sweoe6Jvn6oMjQNr75ZpupiytN3DGwA+WKOoESHZibIG+heAzlkdZ/MhA=="
811
+ "version": "4.0.0",
812
+ "resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-4.0.0.tgz",
813
+ "integrity": "sha512-liaJildULUNSSvEgDm36SQTivqBHiZLdrm+O7bBxnW4Q1g64asi+mJIMzW8QeOqlG4Yn8s0gSklsIyaFOuCisQ=="
814
814
  },
815
815
  "graceful-fs": {
816
816
  "version": "4.2.6",
data/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "lint": "standard"
7
7
  },
8
8
  "dependencies": {
9
- "govuk-frontend": "^3.13.0"
9
+ "govuk-frontend": "^4.0.0"
10
10
  },
11
11
  "devDependencies": {
12
12
  "standard": "^14.3.4"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_tech_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -360,6 +360,7 @@ files:
360
360
  - lib/govuk_tech_docs/meta_tags.rb
361
361
  - lib/govuk_tech_docs/page_review.rb
362
362
  - lib/govuk_tech_docs/pages.rb
363
+ - lib/govuk_tech_docs/path_helpers.rb
363
364
  - lib/govuk_tech_docs/redirects.rb
364
365
  - lib/govuk_tech_docs/table_of_contents/heading.rb
365
366
  - lib/govuk_tech_docs/table_of_contents/heading_tree.rb
@@ -470,6 +471,7 @@ files:
470
471
  - node_modules/govuk-frontend/govuk/components/select/_select.scss
471
472
  - node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
472
473
  - node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
474
+ - node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js
473
475
  - node_modules/govuk-frontend/govuk/components/summary-list/_index.scss
474
476
  - node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss
475
477
  - node_modules/govuk-frontend/govuk/components/table/_index.scss
@@ -488,7 +490,6 @@ files:
488
490
  - node_modules/govuk-frontend/govuk/core/_links.scss
489
491
  - node_modules/govuk-frontend/govuk/core/_lists.scss
490
492
  - node_modules/govuk-frontend/govuk/core/_section-break.scss
491
- - node_modules/govuk-frontend/govuk/core/_template.scss
492
493
  - node_modules/govuk-frontend/govuk/core/_typography.scss
493
494
  - node_modules/govuk-frontend/govuk/helpers/_all.scss
494
495
  - node_modules/govuk-frontend/govuk/helpers/_clearfix.scss
@@ -508,10 +509,12 @@ files:
508
509
  - node_modules/govuk-frontend/govuk/objects/_form-group.scss
509
510
  - node_modules/govuk-frontend/govuk/objects/_grid.scss
510
511
  - node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss
512
+ - node_modules/govuk-frontend/govuk/objects/_template.scss
511
513
  - node_modules/govuk-frontend/govuk/objects/_width-container.scss
512
514
  - node_modules/govuk-frontend/govuk/overrides/_all.scss
513
515
  - node_modules/govuk-frontend/govuk/overrides/_display.scss
514
516
  - node_modules/govuk-frontend/govuk/overrides/_spacing.scss
517
+ - node_modules/govuk-frontend/govuk/overrides/_text-align.scss
515
518
  - node_modules/govuk-frontend/govuk/overrides/_typography.scss
516
519
  - node_modules/govuk-frontend/govuk/overrides/_width.scss
517
520
  - node_modules/govuk-frontend/govuk/settings/_all.scss
@@ -534,7 +537,6 @@ files:
534
537
  - node_modules/govuk-frontend/govuk/tools/_exports.scss
535
538
  - node_modules/govuk-frontend/govuk/tools/_font-url.scss
536
539
  - node_modules/govuk-frontend/govuk/tools/_ie8.scss
537
- - node_modules/govuk-frontend/govuk/tools/_iff.scss
538
540
  - node_modules/govuk-frontend/govuk/tools/_image-url.scss
539
541
  - node_modules/govuk-frontend/govuk/tools/_px-to-em.scss
540
542
  - node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss
@@ -560,7 +562,7 @@ homepage: https://github.com/alphagov/tech-docs-gem
560
562
  licenses:
561
563
  - MIT
562
564
  metadata: {}
563
- post_install_message:
565
+ post_install_message:
564
566
  rdoc_options: []
565
567
  require_paths:
566
568
  - lib
@@ -576,7 +578,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
576
578
  version: '0'
577
579
  requirements: []
578
580
  rubygems_version: 3.1.4
579
- signing_key:
581
+ signing_key:
580
582
  specification_version: 4
581
583
  summary: Gem to distribute the GOV.UK Tech Docs Template
582
584
  test_files: []
@@ -1,17 +0,0 @@
1
- ////
2
- /// @group tools
3
- ////
4
-
5
- /// Syntactic sugar around Sass' built-in `if` function that does not require
6
- /// you to pass a value for `$if-false`.
7
- ///
8
- /// @param {Boolean} $condition - Whether to return the value of `$if-true`
9
- /// @param {Mixed} $if-true - Value to return if `$condition` is truthy
10
- /// @return {Mixed} Value of `$if-true` if `$condition` is truthy, else null
11
- /// @access private
12
- /// @deprecated We will be removing this function in a future release, use `if($condition, $if-true, null);` instead.
13
-
14
- @function iff($condition, $if-true) {
15
- @warn "The `iff` function will be removed in a future release, use `if($condition, $if-true, null);` instead.";
16
- @return if($condition, $if-true, null);
17
- }