govuk_tech_docs 3.4.0 → 3.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -1
  3. data/lib/assets/stylesheets/_govuk_tech_docs.scss +13 -0
  4. data/lib/govuk_tech_docs/version.rb +1 -1
  5. data/lib/source/favicon.ico +0 -0
  6. data/lib/source/layouts/_header.erb +13 -15
  7. data/node_modules/govuk-frontend/govuk/all-ie8.scss +8 -0
  8. data/node_modules/govuk-frontend/govuk/all.js +4918 -3796
  9. data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js +54 -49
  10. data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js +17 -0
  11. data/node_modules/govuk-frontend/govuk/common/index.js +172 -152
  12. data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js +334 -321
  13. data/node_modules/govuk-frontend/govuk/common.js +171 -151
  14. data/node_modules/govuk-frontend/govuk/components/_all.scss +3 -2
  15. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +26 -7
  16. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +2203 -1650
  17. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +24 -16
  18. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +34 -11
  19. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +49 -9
  20. data/node_modules/govuk-frontend/govuk/components/button/button.js +961 -916
  21. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +2142 -2038
  22. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -6
  23. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +1204 -1145
  24. data/node_modules/govuk-frontend/govuk/components/details/details.js +826 -799
  25. data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +1097 -1044
  26. data/node_modules/govuk-frontend/govuk/components/exit-this-page/_exit-this-page.scss +2 -0
  27. data/node_modules/govuk-frontend/govuk/components/exit-this-page/_index.scss +97 -0
  28. data/node_modules/govuk-frontend/govuk/components/exit-this-page/exit-this-page.js +2120 -0
  29. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +6 -1
  30. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +0 -7
  31. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +6 -0
  32. data/node_modules/govuk-frontend/govuk/components/header/header.js +683 -1003
  33. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +15 -3
  34. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +786 -751
  35. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +5 -5
  36. data/node_modules/govuk-frontend/govuk/components/radios/radios.js +1151 -1105
  37. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +7 -1
  38. data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +1045 -1014
  39. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +107 -0
  40. data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +1514 -1268
  41. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +18 -18
  42. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +8 -1
  43. data/node_modules/govuk-frontend/govuk/core/_all.scss +1 -0
  44. data/node_modules/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
  45. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +5 -2
  46. data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
  47. data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +1 -1
  48. data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +12 -0
  49. data/node_modules/govuk-frontend/govuk/i18n.js +371 -364
  50. data/node_modules/govuk-frontend/govuk/objects/_template.scss +20 -0
  51. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +1 -1
  52. data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +4 -0
  53. data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +16 -0
  54. data/node_modules/govuk-frontend/govuk/settings/_links.scss +5 -1
  55. data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +5 -5
  56. data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +38 -2
  57. data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js +243 -241
  58. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js +14 -12
  59. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js +18 -16
  60. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js +553 -545
  61. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js +40 -36
  62. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js +257 -250
  63. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js +22 -20
  64. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +204 -197
  65. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +204 -197
  66. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js +109 -105
  67. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js +407 -399
  68. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js +242 -238
  69. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js +73 -71
  70. data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js +15 -13
  71. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js +18 -16
  72. data/node_modules/govuk-frontend/govuk-prototype-kit/init.js +1 -0
  73. data/package-lock.json +7 -7
  74. data/package.json +1 -1
  75. metadata +8 -3
@@ -35,47 +35,47 @@
35
35
  }
36
36
 
37
37
  .govuk-tag--grey {
38
- color: govuk-shade(govuk-colour("dark-grey", $legacy: "grey-1"), 30);
39
- background: govuk-tint(govuk-colour("dark-grey", $legacy: "grey-1"), 90);
38
+ color: govuk-shade(govuk-colour("dark-grey", $legacy: "grey-1"), 30%);
39
+ background: govuk-tint(govuk-colour("dark-grey", $legacy: "grey-1"), 90%);
40
40
  }
41
41
 
42
42
  .govuk-tag--purple {
43
- color: govuk-shade(govuk-colour("purple"), 20);
44
- background: govuk-tint(govuk-colour("purple"), 80);
43
+ color: govuk-shade(govuk-colour("purple"), 20%);
44
+ background: govuk-tint(govuk-colour("purple"), 80%);
45
45
  }
46
46
 
47
47
  .govuk-tag--turquoise {
48
- color: govuk-shade(govuk-colour("turquoise"), 60);
49
- background: govuk-tint(govuk-colour("turquoise"), 70);
48
+ color: govuk-shade(govuk-colour("turquoise"), 60%);
49
+ background: govuk-tint(govuk-colour("turquoise"), 70%);
50
50
  }
51
51
 
52
52
  .govuk-tag--blue {
53
- color: govuk-shade(govuk-colour("blue"), 30);
54
- background: govuk-tint(govuk-colour("blue"), 80);
53
+ color: govuk-shade(govuk-colour("blue"), 30%);
54
+ background: govuk-tint(govuk-colour("blue"), 80%);
55
55
  }
56
56
 
57
57
  .govuk-tag--yellow {
58
- color: govuk-shade(govuk-colour("yellow"), 65);
59
- background: govuk-tint(govuk-colour("yellow"), 75);
58
+ color: govuk-shade(govuk-colour("yellow"), 65%);
59
+ background: govuk-tint(govuk-colour("yellow"), 75%);
60
60
  }
61
61
 
62
62
  .govuk-tag--orange {
63
- color: govuk-shade(govuk-colour("orange"), 55);
64
- background: govuk-tint(govuk-colour("orange"), 70);
63
+ color: govuk-shade(govuk-colour("orange"), 55%);
64
+ background: govuk-tint(govuk-colour("orange"), 70%);
65
65
  }
66
66
 
67
67
  .govuk-tag--red {
68
- color: govuk-shade(govuk-colour("red"), 30);
69
- background: govuk-tint(govuk-colour("red"), 80);
68
+ color: govuk-shade(govuk-colour("red"), 30%);
69
+ background: govuk-tint(govuk-colour("red"), 80%);
70
70
  }
71
71
 
72
72
  .govuk-tag--pink {
73
- color: govuk-shade(govuk-colour("pink"), 40);
74
- background: govuk-tint(govuk-colour("pink"), 80);
73
+ color: govuk-shade(govuk-colour("pink"), 40%);
74
+ background: govuk-tint(govuk-colour("pink"), 80%);
75
75
  }
76
76
 
77
77
  .govuk-tag--green {
78
- color: govuk-shade(govuk-colour("green"), 20);
79
- background: govuk-tint(govuk-colour("green"), 80);
78
+ color: govuk-shade(govuk-colour("green"), 20%);
79
+ background: govuk-tint(govuk-colour("green"), 80%);
80
80
  }
81
81
  }
@@ -29,12 +29,19 @@
29
29
  // since `outline` is already used for the yellow focus state.
30
30
  box-shadow: inset 0 0 0 $govuk-border-width-form-element;
31
31
 
32
- @include govuk-if-ie8 {
32
+ @include _govuk-if-ie8 {
33
33
  // IE8 doesn't support `box-shadow` so double the border with
34
34
  // `border-width`.
35
35
  border-width: $govuk-border-width-form-element * 2;
36
36
  }
37
37
  }
38
+
39
+ &:disabled {
40
+ opacity: .5;
41
+ color: inherit;
42
+ background-color: transparent;
43
+ cursor: not-allowed;
44
+ }
38
45
  }
39
46
 
40
47
  .govuk-textarea--error {
@@ -1,3 +1,4 @@
1
+ @import "govuk-frontend-version";
1
2
  @import "links";
2
3
  @import "lists";
3
4
  @import "typography";
@@ -0,0 +1,5 @@
1
+ :root {
2
+ // This variable is automatically overwritten during builds and releases.
3
+ // It doesn't need to be updated manually.
4
+ --govuk-frontend-version: "4.7.0";
5
+ }
@@ -8,7 +8,7 @@
8
8
 
9
9
  /// Get colour
10
10
  ///
11
- /// @param {String} $colour - Name of colour from the colour palette
11
+ /// @param {String | Colour} $colour - Name of colour from the colour palette
12
12
  /// (`$govuk-colours`)
13
13
  /// @param {String} $legacy - Either the name of colour from the legacy palette
14
14
  /// or a colour literal, to return instead when in 'legacy mode' - matching
@@ -36,7 +36,10 @@
36
36
  $colour: $legacy;
37
37
  }
38
38
 
39
- $colour: quote($colour);
39
+ @if type-of($colour) == "color" {
40
+ // stylelint-disable-next-line scss/function-quote-no-quoted-strings-inside
41
+ $colour: quote("#{$colour}");
42
+ }
40
43
 
41
44
  @if not map-has-key($govuk-colours, $colour) {
42
45
  @error "Unknown colour `#{$colour}`";
@@ -16,7 +16,7 @@
16
16
 
17
17
  // Since Internet Explorer 8 does not support box-shadow, we want to force the
18
18
  // user-agent outlines
19
- @include govuk-not-ie8 {
19
+ @include _govuk-not-ie8 {
20
20
  outline: $govuk-focus-width solid transparent;
21
21
  }
22
22
  color: $govuk-focus-text-colour;
@@ -12,7 +12,7 @@
12
12
  /// @access private
13
13
 
14
14
  @mixin _govuk-font-face-gds-transport {
15
- @include govuk-not-ie8 { // In IE8, which cannot render WOFF format, we fall back to system fonts
15
+ @include _govuk-not-ie8 { // In IE8, which cannot render WOFF format, we fall back to system fonts
16
16
  @include govuk-exports("govuk/helpers/font-faces") {
17
17
  @at-root {
18
18
  /*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */ /* stylelint-disable-line scss/comment-no-loud */
@@ -16,6 +16,18 @@
16
16
  @mixin govuk-visually-hidden($important: true) {
17
17
  position: absolute if($important, !important, null);
18
18
 
19
+ // Absolute positioning has the unintended consequence of removing any
20
+ // whitespace surrounding visually hidden text from the accessibility tree.
21
+ // Insert a space character before and after visually hidden text to separate
22
+ // it from any visible text surrounding it.
23
+ &:before {
24
+ content: "\00a0";
25
+ }
26
+
27
+ &:after {
28
+ content: "\00a0";
29
+ }
30
+
19
31
  width: 1px if($important, !important, null);
20
32
  height: 1px if($important, !important, null);
21
33
  // If margin is set to a negative value it can cause text to be announced in