govuk_publishing_components 25.3.0 → 25.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/track-click.js +15 -7
  3. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +10 -6
  4. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +3 -7
  5. data/app/assets/javascripts/govuk_publishing_components/modules.js +1 -1
  6. data/app/assets/stylesheets/component_guide/application.scss +0 -6
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +4 -9
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +22 -24
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -4
  10. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +1 -1
  11. data/app/views/govuk_publishing_components/components/_image_card.html.erb +0 -1
  12. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +5 -2
  13. data/app/views/govuk_publishing_components/components/docs/image_card.yml +9 -0
  14. data/lib/govuk_publishing_components/presenters/image_card_helper.rb +3 -2
  15. data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +3 -0
  16. data/lib/govuk_publishing_components/version.rb +1 -1
  17. data/node_modules/govuk-frontend/govuk/all.js +61 -3
  18. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +1 -0
  19. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +10 -4
  20. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +49 -34
  21. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +61 -3
  22. data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +122 -41
  23. data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +12 -0
  24. data/node_modules/govuk-frontend/govuk/components/checkboxes/template.njk +37 -39
  25. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +22 -10
  26. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +11 -7
  27. data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +18 -18
  28. data/node_modules/govuk-frontend/govuk/components/header/template.njk +5 -11
  29. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +4 -0
  30. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +2 -0
  31. data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +0 -1
  32. data/node_modules/govuk-frontend/govuk/core/_template.scss +0 -1
  33. data/node_modules/govuk-frontend/govuk/helpers/_links.scss +6 -0
  34. data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +9 -2
  35. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +4 -0
  36. data/node_modules/govuk-frontend/govuk/template.njk +1 -1
  37. data/node_modules/govuk-frontend/package.json +1 -1
  38. metadata +4 -4
@@ -11,7 +11,9 @@
11
11
 
12
12
  // Respect 'display cutout' safe area (avoids notches and rounded corners)
13
13
  @supports (padding: unquote("max(calc(0px))")) {
14
+ $padding-safe-area-right: -webkit-calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
14
15
  $padding-safe-area-right: calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
16
+ $padding-safe-area-left: -webkit-calc(#{govuk-spacing(3)} + env(safe-area-inset-left));
15
17
  $padding-safe-area-left: calc(#{govuk-spacing(3)} + env(safe-area-inset-left));
16
18
 
17
19
  // Use max() to pick largest padding, default or with safe area
@@ -43,7 +43,6 @@
43
43
  // Prevent the exclamation mark from being included when the warning text
44
44
  // is copied, for example.
45
45
  -webkit-user-select: none;
46
- -moz-user-select: none;
47
46
  -ms-user-select: none;
48
47
  user-select: none;
49
48
 
@@ -15,7 +15,6 @@
15
15
  // Prevent automatic text sizing, as we already cater for small devices and
16
16
  // would like the browser to stay on 100% text zoom by default.
17
17
  -webkit-text-size-adjust: 100%;
18
- -moz-text-size-adjust: 100%;
19
18
  -ms-text-size-adjust: 100%;
20
19
  text-size-adjust: 100%;
21
20
 
@@ -52,6 +52,12 @@
52
52
  @mixin govuk-link-hover-decoration {
53
53
  @if ($govuk-new-link-styles and $govuk-link-hover-underline-thickness) {
54
54
  text-decoration-thickness: $govuk-link-hover-underline-thickness;
55
+ // Disable ink skipping on underlines on hover. Browsers haven't
56
+ // standardised on this part of the spec yet, so set both properties
57
+ -webkit-text-decoration-skip-ink: none;
58
+ text-decoration-skip-ink: none; // Chromium, Firefox
59
+ -webkit-text-decoration-skip: none;
60
+ text-decoration-skip: none; // Safari
55
61
  }
56
62
  }
57
63
 
@@ -30,13 +30,16 @@
30
30
  // doesn't play nicely with it
31
31
  // (https://github.com/w3c/csswg-drafts/issues/3559)
32
32
  display: -webkit-box;
33
+ display: -webkit-flex;
33
34
  display: -ms-flexbox;
34
35
  display: flex;
35
36
  -webkit-box-orient: vertical;
36
37
  -webkit-box-direction: normal;
38
+ -webkit-flex-direction: column;
37
39
  -ms-flex-direction: column;
38
40
  flex-direction: column;
39
41
  -webkit-box-align: center;
42
+ -webkit-align-items: center;
40
43
  -ms-flex-align: center;
41
44
  align-items: center;
42
45
 
@@ -72,12 +75,16 @@
72
75
 
73
76
  -webkit-box-direction: normal;
74
77
 
78
+ -webkit-flex-direction: row;
79
+
75
80
  -ms-flex-direction: row;
76
81
 
77
82
  flex-direction: row;
78
- -ms-flex-wrap: wrap;
79
- flex-wrap: wrap;
83
+ -webkit-flex-wrap: wrap;
84
+ -ms-flex-wrap: wrap;
85
+ flex-wrap: wrap;
80
86
  -webkit-box-align: baseline;
87
+ -webkit-align-items: baseline;
81
88
  -ms-flex-align: baseline;
82
89
  align-items: baseline;
83
90
 
@@ -28,7 +28,9 @@
28
28
 
29
29
  // Respect 'display cutout' safe area (avoids notches and rounded corners)
30
30
  @supports (margin: unquote("max(calc(0px))")) {
31
+ $gutter-safe-area-right: -webkit-calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
31
32
  $gutter-safe-area-right: calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
33
+ $gutter-safe-area-left: -webkit-calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
32
34
  $gutter-safe-area-left: calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
33
35
 
34
36
  // Use max() to pick largest margin, default or with safe area
@@ -44,7 +46,9 @@
44
46
 
45
47
  // Respect 'display cutout' safe area (avoids notches and rounded corners)
46
48
  @supports (margin: unquote("max(calc(0px))")) {
49
+ $gutter-safe-area-right: -webkit-calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
47
50
  $gutter-safe-area-right: calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
51
+ $gutter-safe-area-left: -webkit-calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
48
52
  $gutter-safe-area-left: calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
49
53
 
50
54
  // Use max() to pick largest margin, default or with safe area
@@ -28,7 +28,7 @@
28
28
  <meta property="og:image" content="{{ assetUrl | default('/assets') }}/images/govuk-opengraph-image.png">
29
29
  </head>
30
30
  <body class="govuk-template__body {{ bodyClasses }}" {%- for attribute, value in bodyAttributes %} {{attribute}}="{{value}}"{% endfor %}>
31
- <script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
31
+ <script{% if cspNonce %} nonce="{{ cspNonce }}"{% endif %}>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
32
32
  {% block bodyStart %}{% endblock %}
33
33
 
34
34
  {% block skipLink %}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "govuk-frontend",
3
3
  "description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.",
4
- "version": "3.12.0",
4
+ "version": "3.13.0",
5
5
  "main": "govuk/all.js",
6
6
  "sass": "govuk/all.scss",
7
7
  "engines": {
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: 25.3.0
4
+ version: 25.6.0
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: 2021-08-12 00:00:00.000000000 Z
11
+ date: 2021-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 3.8.0
201
+ version: 3.9.2
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 3.8.0
208
+ version: 3.9.2
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: jasmine_selenium_runner
211
211
  requirement: !ruby/object:Gem::Requirement