govuk_publishing_components 13.6.0 → 13.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/dependencies.js +3 -3
  3. data/app/assets/javascripts/govuk_publishing_components/lib/toggle.js +52 -28
  4. data/app/views/govuk_publishing_components/components/docs/related_navigation.yml +216 -201
  5. data/lib/govuk_publishing_components/presenters/meta_tags.rb +0 -7
  6. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +3 -3
  7. data/lib/govuk_publishing_components/version.rb +1 -1
  8. data/node_modules/govuk-frontend/all.js +1197 -943
  9. data/node_modules/govuk-frontend/components/_all.scss +2 -0
  10. data/node_modules/govuk-frontend/components/accordion/README.md +17 -0
  11. data/node_modules/govuk-frontend/components/accordion/_accordion.scss +173 -0
  12. data/node_modules/govuk-frontend/components/accordion/accordion.js +1011 -0
  13. data/node_modules/govuk-frontend/components/accordion/macro-options.json +70 -0
  14. data/node_modules/govuk-frontend/components/accordion/macro.njk +3 -0
  15. data/node_modules/govuk-frontend/components/accordion/template.njk +27 -0
  16. data/node_modules/govuk-frontend/components/input/macro-options.json +7 -0
  17. data/node_modules/govuk-frontend/components/summary-list/README.md +15 -0
  18. data/node_modules/govuk-frontend/components/summary-list/_summary-list.scss +112 -0
  19. data/node_modules/govuk-frontend/components/summary-list/macro-options.json +95 -0
  20. data/node_modules/govuk-frontend/components/summary-list/macro.njk +3 -0
  21. data/node_modules/govuk-frontend/components/summary-list/template.njk +35 -0
  22. data/node_modules/govuk-frontend/helpers/_grid.scss +43 -35
  23. data/node_modules/govuk-frontend/helpers/_visually-hidden.scss +4 -2
  24. data/node_modules/govuk-frontend/objects/_grid.scss +21 -8
  25. data/node_modules/govuk-frontend/package.json +11 -11
  26. data/node_modules/govuk-frontend/settings/_measurements.scss +14 -0
  27. data/node_modules/govuk-frontend/template.njk +2 -0
  28. metadata +13 -2
@@ -18,7 +18,8 @@
18
18
 
19
19
  width: 1px iff($important, !important);
20
20
  height: 1px iff($important, !important);
21
- margin: -1px iff($important, !important);
21
+ // If margin is set to a negative value it can cause text to be announced in the wrong order in VoiceOver for OSX
22
+ margin: 0 iff($important, !important);
22
23
  padding: 0 iff($important, !important);
23
24
 
24
25
  overflow: hidden iff($important, !important);
@@ -50,7 +51,8 @@
50
51
 
51
52
  width: 1px iff($important, !important);
52
53
  height: 1px iff($important, !important);
53
- margin: -1px iff($important, !important);
54
+ // If margin is set to a negative value it can cause text to be announced in the wrong order in VoiceOver for OSX
55
+ margin: 0 iff($important, !important);
54
56
 
55
57
  overflow: hidden iff($important, !important);
56
58
  clip: rect(0 0 0 0) iff($important, !important);
@@ -1,10 +1,23 @@
1
1
  @include govuk-exports("govuk/objects/grid") {
2
- //most common usage
3
- @include govuk-grid-row;
4
- @include govuk-grid-column(one-quarter);
5
- @include govuk-grid-column(one-third);
6
- @include govuk-grid-column(one-half);
7
- @include govuk-grid-column(two-thirds);
8
- @include govuk-grid-column(three-quarters);
9
- @include govuk-grid-column(full);
2
+
3
+ .govuk-grid-row {
4
+ @include govuk-clearfix;
5
+ margin-right: - ($govuk-gutter-half);
6
+ margin-left: - ($govuk-gutter-half);
7
+ }
8
+
9
+ @each $width in map-keys($govuk-grid-widths) {
10
+ .govuk-grid-column-#{$width} {
11
+ @include govuk-grid-column($width, $class: false)
12
+ }
13
+ }
14
+
15
+ // These *must* be defined in a separate loop as they have the same
16
+ // specificity as the non-breakpoint specific classes, so need to appear after
17
+ // them in the outputted CSS
18
+ @each $width in map-keys($govuk-grid-widths) {
19
+ .govuk-grid-column-#{$width}-from-desktop {
20
+ @include govuk-grid-column($width, $at: desktop, $class: false)
21
+ }
22
+ }
10
23
  }
@@ -15,13 +15,13 @@
15
15
  ],
16
16
  "_from": "govuk-frontend@>=2.4.0 <3.0.0",
17
17
  "_hasShrinkwrap": false,
18
- "_id": "govuk-frontend@2.4.1",
18
+ "_id": "govuk-frontend@2.5.1",
19
19
  "_inCache": true,
20
20
  "_location": "/govuk-frontend",
21
21
  "_nodeVersion": "8.9.4",
22
22
  "_npmOperationalInternal": {
23
23
  "host": "s3://npm-registry-packages",
24
- "tmp": "tmp/govuk-frontend_2.4.1_1544540702171_0.2508607154492737"
24
+ "tmp": "tmp/govuk-frontend_2.5.1_1547637318677_0.8220506682257378"
25
25
  },
26
26
  "_npmUser": {
27
27
  "name": "govuk-patterns-and-tools",
@@ -41,8 +41,8 @@
41
41
  "_requiredBy": [
42
42
  "/"
43
43
  ],
44
- "_resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-2.4.1.tgz",
45
- "_shasum": "4e8e3b16aa588a25e6b7f97ab3ac0045df52c60c",
44
+ "_resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-2.5.1.tgz",
45
+ "_shasum": "96082aedfef23bfce6591c3520b06d803be2d7fa",
46
46
  "_shrinkwrap": null,
47
47
  "_spec": "govuk-frontend@^2.4.0",
48
48
  "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
@@ -59,12 +59,12 @@
59
59
  "devDependencies": {},
60
60
  "directories": {},
61
61
  "dist": {
62
- "integrity": "sha512-6cqX9YxypQfE7gfuexqSll3EAQLW2MDgL2w8LUEnmfW36cadUktZHjzyusOY/ggJxDAiiyEcC+9R8Oj57g90mw==",
63
- "shasum": "4e8e3b16aa588a25e6b7f97ab3ac0045df52c60c",
64
- "tarball": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-2.4.1.tgz",
65
- "fileCount": 245,
66
- "unpackedSize": 1272757,
67
- "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcD9IeCRA9TVsSAnZWagAATyUP/0O0UQpHi0EUxuu08AFu\ncMcs1szsB3CzyD96TOhRYgnGUyqlfKKgHSZ9l7qdLSGpsTq1MueSBGUrR3wT\nLwHU6ILJvG4lPbUg6Lzk/j8BVEZmYVFcNqkwEKaYlOWvgdIdXoCXHtzaXW37\nxezsr5Eu8HLwZrc+SpDGGUN5oloqRssfjAQNOyaIEiZilPJDKNJe08dSdSuZ\nlmqQCLjyYpDtpN7TZo5VDeGD5c0plQPqION24Ppoa7OUaqd9WAjtptiru0NX\njz3HsV2asoeyYSmemvtzdeHBZgNfFYEa1ENYZW+42dGyoNYxOAC62jPI75Yt\nv8yQ1UYkdMtDDfqXiiMJoyL2YOs405v5/MRV2+swrnSfPqXDjpcjLZOFlu1E\nJEXEGfGrrTDp5RUe4b8ELF0tzsGBEJS5F7+Xs5Jn+ZThGaLMycyCpp/9T8a9\nl4NM1obmZAdvlyVV8t61p3gdG8U+zR1MOfw7wkKTxd/MliIM/6pd5ag6K37g\ngmVcAiNIO9tIvBPfU9tGJZ9/fSdEX95ORCeN7Ne5wbRg87P0jLrHaFx0RRWu\n+ZCgJdMJ2GL9gKyuBmcOiqPYThww0hmJJa8C3bIJUEdV7gkzizcIZJLulhev\naeGjp92s51ct4u3QI0qgn7T4qFpiUd3CVKMrXp8PJn4n8vfoo0jq8iLM8zGB\nqleR\r\n=jS0G\r\n-----END PGP SIGNATURE-----\r\n"
62
+ "integrity": "sha512-DDi1HGRTNRH/UmqOYACOR01V+aae36pnHHf5/g08spscJO5AazA/BQTenlNm8WFJ4UAeikb1TrCbgGWJE4Vypw==",
63
+ "shasum": "96082aedfef23bfce6591c3520b06d803be2d7fa",
64
+ "tarball": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-2.5.1.tgz",
65
+ "fileCount": 256,
66
+ "unpackedSize": 1341333,
67
+ "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPxJHCRA9TVsSAnZWagAAHpoP/0M5mrc5AA4/NkSyTpfJ\n0mbatgQeaTw0ABdK267bb0VWsk5+Jg0O5hnOF1SxTgWLWEU96gikjAZ46u3C\nfS09ycAhJ7bwykmz851JLnbG6UWgB3COkT/ZHhIuAjy9ulI8TvXf3ruFs4cT\nkEHHEpZlDxRJo6tbyzcp9s6t91vSqP899w8RxSj0/0l8v/t1Dbjx8CC7wJl9\nc6wl/ZyxfmvTFyKsZDD1h21K+5TsI4Xdukj64IwVA05PVAQMhXEMLWO1Khw0\nkFvUeDyr31topkGLbPgkvyoMqyRgIt+0FeumED+F8De7KYHc9xVbX0zGzYlR\n//5bgE9K2I+JQDYxIkDzDDjboiay70mWNFuhQJbOl4zXpkkxYJ5hWN6YqG4W\ntRPVBZR9L2GCWyYRvgim64zz+6uuJ2kGD+a3QoH4N0Pgw6VwJ9HnaBy+qo/a\nDCKPyST4xwP18O9Pb80CKzWQ6Am5jTkjiJfxmc83dgHnc8B48k+6O0vGGDuL\nTKCyPLJb4Xm0yYfXpDz23Xr2N+ahPjPHVVEJpKHBHVJemhcM4EBfUaJFkUfR\nCovhp+AqCUWYj00b3PTPb/TKEvMXti70kQ9hhEpg3HQV0HJOoyqaGk5GnB0B\n2I6oPzwaF0JOFTXtkoUawQRu3lb4cuqcrk2rdE8vwU3Lmm5cl0O6a6Tjat4u\ngkbT\r\n=f9P7\r\n-----END PGP SIGNATURE-----\r\n"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">= 4.2.0"
@@ -92,5 +92,5 @@
92
92
  "url": "git+https://github.com/alphagov/govuk-frontend.git"
93
93
  },
94
94
  "sass": "all.scss",
95
- "version": "2.4.1"
95
+ "version": "2.5.1"
96
96
  }
@@ -15,6 +15,20 @@
15
15
 
16
16
  $govuk-page-width: 960px !default;
17
17
 
18
+ /// Map of grid column widths
19
+ ///
20
+ /// @type Map
21
+ /// @access public
22
+
23
+ $govuk-grid-widths: (
24
+ one-quarter: 25%,
25
+ one-third: 33.3333%,
26
+ one-half: 50%,
27
+ two-thirds: 66.6666%,
28
+ three-quarters: 75%,
29
+ full: 100%
30
+ ) !default;
31
+
18
32
  /// Width of gutter between grid columns
19
33
  ///
20
34
  /// @type Number
@@ -10,6 +10,8 @@
10
10
  <title>{% block pageTitle %}GOV.UK - The best place to find government services and information{% endblock %}</title>
11
11
  <meta name="viewport" content="width=device-width, initial-scale=1">
12
12
  <meta name="theme-color" content="{{ themeColor | default('#0b0c0c') }}" /> {# Hardcoded value of $govuk-black #}
13
+ {# Ensure that older IE versions always render with the correct rendering engine #}
14
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
13
15
 
14
16
  {% block headIcons %}
15
17
  <link rel="shortcut icon" sizes="16x16 32x32 48x48" href="{{ assetPath | default('/assets') }}/images/favicon.ico" type="image/x-icon" />
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.6.0
4
+ version: 13.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-09 00:00:00.000000000 Z
11
+ date: 2019-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govspeak
@@ -682,6 +682,12 @@ files:
682
682
  - node_modules/govuk-frontend/assets/images/icon-pointer.png
683
683
  - node_modules/govuk-frontend/common.js
684
684
  - node_modules/govuk-frontend/components/_all.scss
685
+ - node_modules/govuk-frontend/components/accordion/README.md
686
+ - node_modules/govuk-frontend/components/accordion/_accordion.scss
687
+ - node_modules/govuk-frontend/components/accordion/accordion.js
688
+ - node_modules/govuk-frontend/components/accordion/macro-options.json
689
+ - node_modules/govuk-frontend/components/accordion/macro.njk
690
+ - node_modules/govuk-frontend/components/accordion/template.njk
685
691
  - node_modules/govuk-frontend/components/back-link/README.md
686
692
  - node_modules/govuk-frontend/components/back-link/_back-link.scss
687
693
  - node_modules/govuk-frontend/components/back-link/macro-options.json
@@ -800,6 +806,11 @@ files:
800
806
  - node_modules/govuk-frontend/components/skip-link/macro-options.json
801
807
  - node_modules/govuk-frontend/components/skip-link/macro.njk
802
808
  - node_modules/govuk-frontend/components/skip-link/template.njk
809
+ - node_modules/govuk-frontend/components/summary-list/README.md
810
+ - node_modules/govuk-frontend/components/summary-list/_summary-list.scss
811
+ - node_modules/govuk-frontend/components/summary-list/macro-options.json
812
+ - node_modules/govuk-frontend/components/summary-list/macro.njk
813
+ - node_modules/govuk-frontend/components/summary-list/template.njk
803
814
  - node_modules/govuk-frontend/components/table/README.md
804
815
  - node_modules/govuk-frontend/components/table/_table.scss
805
816
  - node_modules/govuk-frontend/components/table/macro-options.json