govuk_publishing_components 23.13.0 → 24.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/take-action-amber.svg +4 -0
  3. data/app/assets/images/govuk_publishing_components/take-action-green.svg +4 -0
  4. data/app/assets/images/govuk_publishing_components/take-action-red.svg +4 -0
  5. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +286 -4
  6. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +0 -4
  7. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +44 -39
  8. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/common.js +8 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
  10. data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +302 -14
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +34 -17
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +14 -8
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +4 -4
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +35 -44
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +112 -47
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +8 -8
  18. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +0 -5
  19. data/app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss +16 -9
  20. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +2 -2
  21. data/app/models/govuk_publishing_components/component_doc.rb +1 -1
  22. data/app/views/govuk_publishing_components/audit/show.html.erb +26 -26
  23. data/app/views/govuk_publishing_components/components/_accordion.html.erb +13 -20
  24. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +2 -8
  25. data/app/views/govuk_publishing_components/components/_document_list.html.erb +12 -2
  26. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +9 -4
  27. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +2 -2
  28. data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +21 -0
  29. data/app/views/govuk_publishing_components/components/docs/accordion.yml +8 -3
  30. data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +65 -1
  31. data/app/views/govuk_publishing_components/components/docs/document_list.yml +50 -7
  32. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +3 -3
  33. data/app/views/govuk_publishing_components/components/docs/layout_header.yml +11 -0
  34. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -1
  35. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +9 -4
  36. data/config/initializers/assets.rb +3 -1
  37. data/config/locales/cy.yml +6 -1
  38. data/config/locales/en.yml +8 -3
  39. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +183 -2
  40. data/lib/govuk_publishing_components/version.rb +1 -1
  41. data/node_modules/govuk-frontend/govuk/all.js +58 -1
  42. data/node_modules/govuk-frontend/govuk/components/_all.scss +2 -0
  43. data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +25 -10
  44. data/node_modules/govuk-frontend/govuk/components/back-link/fixtures.json +12 -6
  45. data/node_modules/govuk-frontend/govuk/components/back-link/macro-options.json +4 -4
  46. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +34 -13
  47. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +1 -0
  48. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +2 -2
  49. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +2 -0
  50. data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +74 -31
  51. data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +1 -0
  52. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +1 -1
  53. data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +85 -15
  54. data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +1 -1
  55. data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +145 -52
  56. data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +2 -2
  57. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
  58. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +51 -0
  59. data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +425 -0
  60. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +132 -0
  61. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro.njk +3 -0
  62. data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +63 -0
  63. data/node_modules/govuk-frontend/govuk/components/date-input/fixtures.json +84 -34
  64. data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +1 -1
  65. data/node_modules/govuk-frontend/govuk/components/date-input/template.njk +1 -1
  66. data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +35 -15
  67. data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +21 -10
  68. data/node_modules/govuk-frontend/govuk/components/error-message/macro-options.json +1 -0
  69. data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +2 -12
  70. data/node_modules/govuk-frontend/govuk/components/error-summary/fixtures.json +86 -25
  71. data/node_modules/govuk-frontend/govuk/components/fieldset/fixtures.json +20 -10
  72. data/node_modules/govuk-frontend/govuk/components/file-upload/fixtures.json +60 -13
  73. data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +37 -18
  74. data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +8 -5
  75. data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +36 -18
  76. data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +2 -2
  77. data/node_modules/govuk-frontend/govuk/components/header/template.njk +4 -4
  78. data/node_modules/govuk-frontend/govuk/components/hint/fixtures.json +17 -8
  79. data/node_modules/govuk-frontend/govuk/components/input/fixtures.json +130 -40
  80. data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +1 -1
  81. data/node_modules/govuk-frontend/govuk/components/inset-text/fixtures.json +17 -8
  82. data/node_modules/govuk-frontend/govuk/components/label/fixtures.json +20 -11
  83. data/node_modules/govuk-frontend/govuk/components/label/macro-options.json +1 -1
  84. data/node_modules/govuk-frontend/govuk/components/notification-banner/README.md +15 -0
  85. data/node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
  86. data/node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
  87. data/node_modules/govuk-frontend/govuk/components/notification-banner/fixtures.json +212 -0
  88. data/node_modules/govuk-frontend/govuk/components/notification-banner/macro-options.json +68 -0
  89. data/node_modules/govuk-frontend/govuk/components/notification-banner/macro.njk +3 -0
  90. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +61 -0
  91. data/node_modules/govuk-frontend/govuk/components/notification-banner/template.njk +47 -0
  92. data/node_modules/govuk-frontend/govuk/components/panel/fixtures.json +30 -13
  93. data/node_modules/govuk-frontend/govuk/components/phase-banner/fixtures.json +20 -9
  94. data/node_modules/govuk-frontend/govuk/components/radios/fixtures.json +167 -50
  95. data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +97 -18
  96. data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +1 -1
  97. data/node_modules/govuk-frontend/govuk/components/skip-link/fixtures.json +21 -9
  98. data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +118 -25
  99. data/node_modules/govuk-frontend/govuk/components/table/_index.scss +21 -0
  100. data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +92 -22
  101. data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +2 -2
  102. data/node_modules/govuk-frontend/govuk/components/tabs/fixtures.json +75 -18
  103. data/node_modules/govuk-frontend/govuk/components/tabs/macro-options.json +1 -1
  104. data/node_modules/govuk-frontend/govuk/components/tag/fixtures.json +28 -14
  105. data/node_modules/govuk-frontend/govuk/components/textarea/fixtures.json +68 -17
  106. data/node_modules/govuk-frontend/govuk/components/warning-text/fixtures.json +19 -14
  107. data/node_modules/govuk-frontend/govuk/helpers/_links.scss +94 -0
  108. data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
  109. data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +94 -0
  110. data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +9 -0
  111. data/node_modules/govuk-frontend/govuk/settings/_typography-font.scss +3 -0
  112. data/node_modules/govuk-frontend/package.json +1 -1
  113. metadata +21 -18
  114. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg +0 -4
  115. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small.svg +0 -4
  116. data/app/assets/javascripts/govuk_publishing_components/components/header.js +0 -8
  117. data/app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js +0 -31
  118. data/app/assets/stylesheets/govuk_publishing_components/components/_chevron-banner.scss +0 -138
  119. data/app/assets/stylesheets/govuk_publishing_components/components/_list.scss +0 -1
  120. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +0 -27
  121. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_back-arrow.scss +0 -13
  122. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_clearfix.scss +0 -8
  123. data/app/views/govuk_publishing_components/components/_chevron_banner.html.erb +0 -19
  124. data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +0 -85
  125. data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +0 -33
  126. data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_related_links.html.erb +0 -6
  127. data/app/views/govuk_publishing_components/components/docs/chevron_banner.yml +0 -33
  128. data/app/views/govuk_publishing_components/components/docs/subscription-links.yml +0 -103
  129. data/app/views/govuk_publishing_components/components/docs/translation-nav.yml +0 -139
@@ -1,3 +1,4 @@
1
+ @import "button-group";
1
2
  @import "form-group";
2
3
  @import "grid";
3
4
  @import "main-wrapper";
@@ -0,0 +1,94 @@
1
+ @import "../base";
2
+
3
+ @include govuk-exports("govuk/objects/button-group") {
4
+ // Button groups can be used to group buttons and links together as a group.
5
+ //
6
+ // Within a button group:
7
+ //
8
+ // - links are styled to line up visually with the buttons, including being
9
+ // centre-aligned on mobile
10
+ // - spacing between the buttons and links is handled automatically, including
11
+ // when they wrap across multiple lines
12
+ .govuk-button-group {
13
+ $horizontal-gap: govuk-spacing(3);
14
+ $vertical-gap: govuk-spacing(3);
15
+
16
+ // These need to be kept in sync with the button component's styles
17
+ $button-padding: govuk-spacing(2);
18
+ $button-shadow-size: $govuk-border-width-form-element;
19
+
20
+ $link-spacing: govuk-spacing(1);
21
+
22
+ @include govuk-responsive-margin(6, "bottom", $adjustment: $vertical-gap * -1);
23
+
24
+ // Flexbox is used to center-align links on mobile, align everything along
25
+ // the baseline on tablet and above, and to removes extra whitespace that
26
+ // we'd get between the buttons and links because they're inline-blocks.
27
+ //
28
+ // Ideally we'd use `gap` with flexbox rather than having to do it all with
29
+ // margins, but unfortunately the support isn't there (yet) and @supports
30
+ // doesn't play nicely with it
31
+ // (https://github.com/w3c/csswg-drafts/issues/3559)
32
+ display: -webkit-box;
33
+ display: -ms-flexbox;
34
+ display: flex;
35
+ -webkit-box-orient: vertical;
36
+ -webkit-box-direction: normal;
37
+ -ms-flex-direction: column;
38
+ flex-direction: column;
39
+ -webkit-box-align: center;
40
+ -ms-flex-align: center;
41
+ align-items: center;
42
+
43
+ // Give links within the button group the same font-size and line-height
44
+ // as buttons.
45
+ //
46
+ // Because we want the focus state to be tight around the link text, we use
47
+ // margins where the buttons would use padding.
48
+ .govuk-link {
49
+ @include govuk-font($size: 19, $line-height: 19px);
50
+ display: inline-block;
51
+ // Prevent links overflowing their container in IE10/11 because of bug
52
+ // with align-items: center
53
+ max-width: 100%;
54
+ margin-top: $link-spacing;
55
+ margin-bottom: $link-spacing + $vertical-gap;
56
+ text-align: center;
57
+ }
58
+
59
+ // Reduce the bottom margin to the size of the vertical gap (accommodating
60
+ // the button shadow) – the 'lost' margin is moved to the button-group.
61
+ .govuk-button {
62
+ margin-bottom: $vertical-gap + $button-shadow-size;
63
+ }
64
+
65
+ // On tablet and above, we also introduce a 'column gap' between the
66
+ // buttons and links in each row and left align links
67
+ @include govuk-media-query($from: tablet) {
68
+ // Cancel out the column gap for the last item in each row
69
+ margin-right: ($horizontal-gap * -1);
70
+
71
+ -webkit-box-orient: horizontal;
72
+
73
+ -webkit-box-direction: normal;
74
+
75
+ -ms-flex-direction: row;
76
+
77
+ flex-direction: row;
78
+ -ms-flex-wrap: wrap;
79
+ flex-wrap: wrap;
80
+ -webkit-box-align: baseline;
81
+ -ms-flex-align: baseline;
82
+ align-items: baseline;
83
+
84
+ .govuk-button,
85
+ .govuk-link {
86
+ margin-right: $horizontal-gap;
87
+ }
88
+
89
+ .govuk-link {
90
+ text-align: left;
91
+ }
92
+ }
93
+ }
94
+ }
@@ -86,6 +86,15 @@ $govuk-focus-text-colour: govuk-colour("black") !default;
86
86
 
87
87
  $govuk-error-colour: govuk-colour("red") !default;
88
88
 
89
+ /// Success colour
90
+ ///
91
+ /// Used to highlight success messages and banners
92
+ ///
93
+ /// @type Colour
94
+ /// @access public
95
+
96
+ $govuk-success-colour: govuk-colour("green") !default;
97
+
89
98
  /// Border colour
90
99
  ///
91
100
  /// Used in for example borders, separators, rules and keylines.
@@ -52,6 +52,9 @@ $govuk-font-family-tabular: if(
52
52
 
53
53
  /// Font families to use for print media
54
54
  ///
55
+ /// We recommend that you use system fonts when printing. This will avoid issues
56
+ /// with some printer drivers and operating systems.
57
+ ///
55
58
  /// @type List
56
59
  /// @access public
57
60
 
@@ -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.9.1",
4
+ "version": "3.11.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: 23.13.0
4
+ version: 24.1.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-01-15 00:00:00.000000000 Z
11
+ date: 2021-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -325,8 +325,6 @@ files:
325
325
  - app/assets/images/govuk_publishing_components/action-link-arrow--transparent.svg
326
326
  - app/assets/images/govuk_publishing_components/action-link-arrow.png
327
327
  - app/assets/images/govuk_publishing_components/action-link-arrow.svg
328
- - app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg
329
- - app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small.svg
330
328
  - app/assets/images/govuk_publishing_components/crests/bis_crest_13px.png
331
329
  - app/assets/images/govuk_publishing_components/crests/bis_crest_13px_x2-2.png
332
330
  - app/assets/images/govuk_publishing_components/crests/bis_crest_13px_x2.png
@@ -390,6 +388,9 @@ files:
390
388
  - app/assets/images/govuk_publishing_components/icon-print-2x.png
391
389
  - app/assets/images/govuk_publishing_components/icon-print.png
392
390
  - app/assets/images/govuk_publishing_components/search-button.png
391
+ - app/assets/images/govuk_publishing_components/take-action-amber.svg
392
+ - app/assets/images/govuk_publishing_components/take-action-green.svg
393
+ - app/assets/images/govuk_publishing_components/take-action-red.svg
393
394
  - app/assets/javascripts/component_guide/accessibility-test.js
394
395
  - app/assets/javascripts/component_guide/application.js
395
396
  - app/assets/javascripts/component_guide/filter-components.js
@@ -425,7 +426,6 @@ files:
425
426
  - app/assets/javascripts/govuk_publishing_components/components/error-summary.js
426
427
  - app/assets/javascripts/govuk_publishing_components/components/feedback.js
427
428
  - app/assets/javascripts/govuk_publishing_components/components/govspeak.js
428
- - app/assets/javascripts/govuk_publishing_components/components/header.js
429
429
  - app/assets/javascripts/govuk_publishing_components/components/layout-header.js
430
430
  - app/assets/javascripts/govuk_publishing_components/components/modal-dialogue.js
431
431
  - app/assets/javascripts/govuk_publishing_components/components/print-link.js
@@ -436,7 +436,6 @@ files:
436
436
  - app/assets/javascripts/govuk_publishing_components/dependencies.js
437
437
  - app/assets/javascripts/govuk_publishing_components/ie.js
438
438
  - app/assets/javascripts/govuk_publishing_components/lib.js
439
- - app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js
440
439
  - app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js
441
440
  - app/assets/javascripts/govuk_publishing_components/lib/current-location.js
442
441
  - app/assets/javascripts/govuk_publishing_components/lib/govspeak/barchart-enhancement.js
@@ -454,6 +453,7 @@ files:
454
453
  - app/assets/javascripts/govuk_publishing_components/vendor/json2.js
455
454
  - app/assets/javascripts/govuk_publishing_components/vendor/modernizr.js
456
455
  - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/closest.js
456
+ - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/common.js
457
457
  - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/indexOf.js
458
458
  - app/assets/stylesheets/component_guide/application.scss
459
459
  - app/assets/stylesheets/component_guide/print.scss
@@ -469,7 +469,6 @@ files:
469
469
  - app/assets/stylesheets/govuk_publishing_components/components/_button.scss
470
470
  - app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss
471
471
  - app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
472
- - app/assets/stylesheets/govuk_publishing_components/components/_chevron-banner.scss
473
472
  - app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss
474
473
  - app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss
475
474
  - app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss
@@ -499,7 +498,6 @@ files:
499
498
  - app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss
500
499
  - app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss
501
500
  - app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss
502
- - app/assets/stylesheets/govuk_publishing_components/components/_list.scss
503
501
  - app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss
504
502
  - app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss
505
503
  - app/assets/stylesheets/govuk_publishing_components/components/_notice.scss
@@ -556,9 +554,6 @@ files:
556
554
  - app/assets/stylesheets/govuk_publishing_components/components/helpers/_link.scss
557
555
  - app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss
558
556
  - app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss
559
- - app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss
560
- - app/assets/stylesheets/govuk_publishing_components/components/mixins/_back-arrow.scss
561
- - app/assets/stylesheets/govuk_publishing_components/components/mixins/_clearfix.scss
562
557
  - app/assets/stylesheets/govuk_publishing_components/components/mixins/_css3.scss
563
558
  - app/assets/stylesheets/govuk_publishing_components/components/mixins/_govuk-template-link-focus-override.scss
564
559
  - app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss
@@ -615,7 +610,6 @@ files:
615
610
  - app/views/govuk_publishing_components/components/_button.html.erb
616
611
  - app/views/govuk_publishing_components/components/_character_count.html.erb
617
612
  - app/views/govuk_publishing_components/components/_checkboxes.html.erb
618
- - app/views/govuk_publishing_components/components/_chevron_banner.html.erb
619
613
  - app/views/govuk_publishing_components/components/_contents_list.html.erb
620
614
  - app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
621
615
  - app/views/govuk_publishing_components/components/_contextual_footer.html.erb
@@ -670,7 +664,6 @@ files:
670
664
  - app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb
671
665
  - app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb
672
666
  - app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb
673
- - app/views/govuk_publishing_components/components/_subscription-links.html.erb
674
667
  - app/views/govuk_publishing_components/components/_subscription_links.html.erb
675
668
  - app/views/govuk_publishing_components/components/_success_alert.html.erb
676
669
  - app/views/govuk_publishing_components/components/_summary_list.html.erb
@@ -679,14 +672,12 @@ files:
679
672
  - app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
680
673
  - app/views/govuk_publishing_components/components/_textarea.html.erb
681
674
  - app/views/govuk_publishing_components/components/_title.html.erb
682
- - app/views/govuk_publishing_components/components/_translation-nav.html.erb
683
675
  - app/views/govuk_publishing_components/components/_translation_nav.html.erb
684
676
  - app/views/govuk_publishing_components/components/_warning_text.html.erb
685
677
  - app/views/govuk_publishing_components/components/attachment/_thumbnail_document.svg
686
678
  - app/views/govuk_publishing_components/components/attachment/_thumbnail_generic.svg
687
679
  - app/views/govuk_publishing_components/components/attachment/_thumbnail_spreadsheet.svg
688
680
  - app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
689
- - app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_related_links.html.erb
690
681
  - app/views/govuk_publishing_components/components/docs/accordion.yml
691
682
  - app/views/govuk_publishing_components/components/docs/action_link.yml
692
683
  - app/views/govuk_publishing_components/components/docs/admin_analytics.yml
@@ -697,7 +688,6 @@ files:
697
688
  - app/views/govuk_publishing_components/components/docs/button.yml
698
689
  - app/views/govuk_publishing_components/components/docs/character_count.yml
699
690
  - app/views/govuk_publishing_components/components/docs/checkboxes.yml
700
- - app/views/govuk_publishing_components/components/docs/chevron_banner.yml
701
691
  - app/views/govuk_publishing_components/components/docs/contents_list.yml
702
692
  - app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml
703
693
  - app/views/govuk_publishing_components/components/docs/contextual_footer.yml
@@ -752,7 +742,6 @@ files:
752
742
  - app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml
753
743
  - app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml
754
744
  - app/views/govuk_publishing_components/components/docs/step_by_step_nav_related.yml
755
- - app/views/govuk_publishing_components/components/docs/subscription-links.yml
756
745
  - app/views/govuk_publishing_components/components/docs/subscription_links.yml
757
746
  - app/views/govuk_publishing_components/components/docs/success_alert.yml
758
747
  - app/views/govuk_publishing_components/components/docs/summary_list.yml
@@ -761,7 +750,6 @@ files:
761
750
  - app/views/govuk_publishing_components/components/docs/taxonomy_list.yml
762
751
  - app/views/govuk_publishing_components/components/docs/textarea.yml
763
752
  - app/views/govuk_publishing_components/components/docs/title.yml
764
- - app/views/govuk_publishing_components/components/docs/translation-nav.yml
765
753
  - app/views/govuk_publishing_components/components/docs/translation_nav.yml
766
754
  - app/views/govuk_publishing_components/components/docs/warning_text.yml
767
755
  - app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb
@@ -1500,6 +1488,12 @@ files:
1500
1488
  - node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json
1501
1489
  - node_modules/govuk-frontend/govuk/components/checkboxes/macro.njk
1502
1490
  - node_modules/govuk-frontend/govuk/components/checkboxes/template.njk
1491
+ - node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss
1492
+ - node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss
1493
+ - node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json
1494
+ - node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json
1495
+ - node_modules/govuk-frontend/govuk/components/cookie-banner/macro.njk
1496
+ - node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk
1503
1497
  - node_modules/govuk-frontend/govuk/components/date-input/README.md
1504
1498
  - node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss
1505
1499
  - node_modules/govuk-frontend/govuk/components/date-input/_index.scss
@@ -1588,6 +1582,14 @@ files:
1588
1582
  - node_modules/govuk-frontend/govuk/components/label/macro-options.json
1589
1583
  - node_modules/govuk-frontend/govuk/components/label/macro.njk
1590
1584
  - node_modules/govuk-frontend/govuk/components/label/template.njk
1585
+ - node_modules/govuk-frontend/govuk/components/notification-banner/README.md
1586
+ - node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss
1587
+ - node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss
1588
+ - node_modules/govuk-frontend/govuk/components/notification-banner/fixtures.json
1589
+ - node_modules/govuk-frontend/govuk/components/notification-banner/macro-options.json
1590
+ - node_modules/govuk-frontend/govuk/components/notification-banner/macro.njk
1591
+ - node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js
1592
+ - node_modules/govuk-frontend/govuk/components/notification-banner/template.njk
1591
1593
  - node_modules/govuk-frontend/govuk/components/panel/README.md
1592
1594
  - node_modules/govuk-frontend/govuk/components/panel/_index.scss
1593
1595
  - node_modules/govuk-frontend/govuk/components/panel/_panel.scss
@@ -1688,6 +1690,7 @@ files:
1688
1690
  - node_modules/govuk-frontend/govuk/helpers/_typography.scss
1689
1691
  - node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss
1690
1692
  - node_modules/govuk-frontend/govuk/objects/_all.scss
1693
+ - node_modules/govuk-frontend/govuk/objects/_button-group.scss
1691
1694
  - node_modules/govuk-frontend/govuk/objects/_form-group.scss
1692
1695
  - node_modules/govuk-frontend/govuk/objects/_grid.scss
1693
1696
  - node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg viewBox="0 0 104 122" xmlns="http://www.w3.org/2000/svg">
3
- <path d="m0.81268 5.0662l51.363 54.069c1.0996 1.1575 1.1 2.9735 8.258e-4 4.1315l-50.942 53.668c-1.1407 1.2017-1.0912 3.1006 0.11054 4.2412 0.55745 0.52914 1.2967 0.82413 2.0653 0.82413h41.812c0.8157 0 1.5962-0.33215 2.1618-0.91994l55.613-57.799c1.1179-1.1618 1.1176-2.9994-7.29e-4 -4.1609l-56.04-58.201c-0.56552-0.58733-1.3457-0.91919-2.1611-0.91919h-41.809c-1.6569 0-3 1.3431-3 3 0 0.76901 0.29531 1.5087 0.82496 2.0662z" fill-rule="evenodd"/>
4
- </svg>
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg viewBox="0 0 104 122" xmlns="http://www.w3.org/2000/svg">
3
- <path d="m0.81268 5.0662l51.363 54.069c1.0996 1.1575 1.1 2.9735 8.258e-4 4.1315l-50.942 53.668c-1.1407 1.2017-1.0912 3.1006 0.11054 4.2412 0.55745 0.52914 1.2967 0.82413 2.0653 0.82413h41.812c0.8157 0 1.5962-0.33215 2.1618-0.91994l55.613-57.799c1.1179-1.1618 1.1176-2.9994-7.29e-4 -4.1609l-56.04-58.201c-0.56552-0.58733-1.3457-0.91919-2.1611-0.91919h-41.809c-1.6569 0-3 1.3431-3 3 0 0.76901 0.29531 1.5087 0.82496 2.0662z" fill="#FFF" fill-rule="evenodd"/>
4
- </svg>
@@ -1,8 +0,0 @@
1
- // DO NOT MAKE CHANGES TO THIS FILE
2
- // It is a temporary copy of layout-header.js and will be deleted shortly
3
-
4
- // This component relies on JavaScript from GOV.UK Frontend
5
- // = require govuk/components/header/header.js
6
- window.GOVUK = window.GOVUK || {}
7
- window.GOVUK.Modules = window.GOVUK.Modules || {}
8
- window.GOVUK.Modules.Header = window.GOVUKFrontend
@@ -1,31 +0,0 @@
1
- // migrated from govuk_frontend_toolkit
2
- ;(function (global) {
3
- 'use strict'
4
-
5
- var GOVUK = global.GOVUK || {}
6
- GOVUK.Modules = GOVUK.Modules || {}
7
-
8
- GOVUK.Modules.AutoTrackEvent = function () {
9
- this.start = function (element) {
10
- var options = { nonInteraction: 1 } // automatic events shouldn't affect bounce rate
11
- var category = element.data('track-category')
12
- var action = element.data('track-action')
13
- var label = element.data('track-label')
14
- var value = element.data('track-value')
15
-
16
- if (typeof label === 'string') {
17
- options.label = label
18
- }
19
-
20
- if (value || value === 0) {
21
- options.value = value
22
- }
23
-
24
- if (GOVUK.analytics && GOVUK.analytics.trackEvent) {
25
- GOVUK.analytics.trackEvent(category, action, options)
26
- }
27
- }
28
- }
29
-
30
- global.GOVUK = GOVUK
31
- })(window)
@@ -1,138 +0,0 @@
1
- $red: #e61e32;
2
- $dark-red: #b31424;
3
- $yellow: #ffdd00;
4
-
5
- .gem-c-chevron-banner {
6
- position: relative;
7
- }
8
-
9
- .gem-c-chevron-banner__chevron-point,
10
- .gem-c-chevron-banner__chevron-base {
11
- stroke: $red;
12
- stroke-width: 2.4;
13
- }
14
-
15
- .gem-c-chevron-banner:hover,
16
- .gem-c-chevron-banner--hover-border:hover {
17
- .gem-c-chevron-banner__text {
18
- background-color: $dark-red;
19
- border-color: $dark-red;
20
- }
21
-
22
- .gem-c-chevron-banner__chevron-point,
23
- .gem-c-chevron-banner__chevron-base {
24
- fill: $dark-red;
25
- stroke: $dark-red;
26
- }
27
- }
28
-
29
- .gem-c-chevron-banner--hover-border:hover {
30
- .gem-c-chevron-banner__text {
31
- border-color: govuk-colour("white");
32
- }
33
-
34
- .gem-c-chevron-banner__chevron-point,
35
- .gem-c-chevron-banner__chevron-base {
36
- stroke: govuk-colour("white");
37
- }
38
- }
39
-
40
- .gem-c-chevron-banner__link:focus {
41
- background-color: transparent; // This is to override some generic link styling which sets a background colour on focus
42
- text-decoration: none;
43
- outline: 0;
44
-
45
- .gem-c-chevron-banner__text {
46
- color: govuk-colour("black");
47
- background-color: $yellow;
48
- border-color: govuk-colour("black");
49
- }
50
-
51
- .gem-c-chevron-banner__text:after {
52
- background-image: image-url("govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg");
53
- }
54
-
55
- .gem-c-chevron-banner__chevron-point,
56
- .gem-c-chevron-banner__chevron-base {
57
- fill: $yellow;
58
- stroke: govuk-colour("black");
59
- }
60
- }
61
-
62
- .gem-c-chevron-banner__chevron {
63
- display: none;
64
-
65
- @include govuk-media-query(450px) {
66
- display: inline-block;
67
- height: 100%;
68
- position: absolute;
69
- left: 70%;
70
- margin-left: (45px + govuk-spacing(4));
71
- top: 0;
72
- }
73
-
74
- @include govuk-media-query($from: 450px, $until: desktop) {
75
- margin-left: (25px + govuk-spacing(2));
76
- }
77
- }
78
-
79
- .gem-c-chevron-banner__text:after {
80
- content: "";
81
- position: absolute;
82
- right: 15px;
83
- top: 0;
84
- width: 25px;
85
- height: 100%;
86
- background-image: image-url("govuk_publishing_components/chevron-banner/chevron-banner-small.svg");
87
- background-size: 25px 25px;
88
- background-repeat: no-repeat;
89
- background-position: center right;
90
-
91
- @include govuk-media-query(450px) {
92
- display: none;
93
- }
94
- }
95
-
96
- .gem-c-chevron-banner__text {
97
- display: block;
98
- position: relative;
99
- padding: govuk-spacing(4) 45px govuk-spacing(4) govuk-spacing(4);
100
- background-color: $red;
101
- border-radius: 5px;
102
- box-sizing: border-box;
103
- width: 100%;
104
- border: 2px solid $red;
105
- z-index: 1;
106
-
107
- @include govuk-media-query($from: 450px, $until: desktop) {
108
- padding: govuk-spacing(2) 25px govuk-spacing(2) govuk-spacing(2);
109
- }
110
-
111
- @include govuk-media-query($from: 450px) {
112
- border-radius: 5px 0 0 5px;
113
- border-right: 0;
114
- width: 70%;
115
- box-sizing: content-box;
116
- }
117
- }
118
-
119
- .gem-c-chevron-banner__link:link,
120
- .gem-c-chevron-banner__link:visited,
121
- .gem-c-chevron-banner__link:hover {
122
- @include govuk-font(24, $weight: bold);
123
- color: govuk-colour("white");
124
- text-decoration: none;
125
- }
126
-
127
- // IE "hack" to stop the chevron SVG being stretched
128
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
129
- .gem-c-chevron-banner__chevron {
130
- max-width: 160px;
131
- }
132
- }
133
-
134
- @media screen and (min-width: 0\0) {
135
- .gem-c-chevron-banner__chevron {
136
- max-width: 160px;
137
- }
138
- }