govuk_publishing_components 33.1.0 → 34.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/govuk_publishing_components_manifest.js +0 -1
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +16 -27
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +2 -0
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +4 -4
  6. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +12 -69
  7. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +14 -13
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +28 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +11 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +19 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +20 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +6 -0
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +6 -0
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +8 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +83 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +253 -412
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +15 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +6 -0
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +16 -0
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +10 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_contents-list-helper.scss +0 -1
  22. data/app/controllers/govuk_publishing_components/component_guide_controller.rb +6 -9
  23. data/app/views/govuk_publishing_components/component_guide/_application_stylesheet.html.erb +0 -3
  24. data/app/views/govuk_publishing_components/component_guide/index.html.erb +0 -7
  25. data/app/views/govuk_publishing_components/components/_label.html.erb +3 -2
  26. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +1 -2
  27. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +0 -1
  28. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +94 -143
  29. data/app/views/govuk_publishing_components/components/docs/label.yml +6 -0
  30. data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -2
  31. data/config/locales/ar.yml +4 -8
  32. data/config/locales/az.yml +5 -8
  33. data/config/locales/be.yml +4 -8
  34. data/config/locales/bg.yml +4 -8
  35. data/config/locales/bn.yml +4 -8
  36. data/config/locales/cs.yml +4 -8
  37. data/config/locales/cy.yml +4 -8
  38. data/config/locales/da.yml +4 -8
  39. data/config/locales/de.yml +4 -8
  40. data/config/locales/dr.yml +4 -8
  41. data/config/locales/el.yml +4 -8
  42. data/config/locales/en.yml +6 -17
  43. data/config/locales/es-419.yml +4 -8
  44. data/config/locales/es.yml +4 -8
  45. data/config/locales/et.yml +4 -8
  46. data/config/locales/fa.yml +5 -8
  47. data/config/locales/fi.yml +4 -8
  48. data/config/locales/fr.yml +4 -8
  49. data/config/locales/gd.yml +4 -8
  50. data/config/locales/gu.yml +4 -8
  51. data/config/locales/he.yml +4 -8
  52. data/config/locales/hi.yml +4 -8
  53. data/config/locales/hr.yml +4 -8
  54. data/config/locales/hu.yml +4 -8
  55. data/config/locales/hy.yml +4 -8
  56. data/config/locales/id.yml +4 -8
  57. data/config/locales/is.yml +4 -8
  58. data/config/locales/it.yml +4 -8
  59. data/config/locales/ja.yml +4 -8
  60. data/config/locales/ka.yml +4 -8
  61. data/config/locales/kk.yml +4 -8
  62. data/config/locales/ko.yml +4 -8
  63. data/config/locales/lt.yml +4 -8
  64. data/config/locales/lv.yml +4 -8
  65. data/config/locales/ms.yml +4 -8
  66. data/config/locales/mt.yml +4 -8
  67. data/config/locales/nl.yml +4 -8
  68. data/config/locales/no.yml +4 -8
  69. data/config/locales/pa-pk.yml +4 -8
  70. data/config/locales/pa.yml +4 -8
  71. data/config/locales/pl.yml +4 -8
  72. data/config/locales/ps.yml +4 -8
  73. data/config/locales/pt.yml +4 -8
  74. data/config/locales/ro.yml +4 -8
  75. data/config/locales/ru.yml +4 -8
  76. data/config/locales/si.yml +4 -8
  77. data/config/locales/sk.yml +4 -8
  78. data/config/locales/sl.yml +4 -8
  79. data/config/locales/so.yml +4 -8
  80. data/config/locales/sq.yml +4 -8
  81. data/config/locales/sr.yml +4 -8
  82. data/config/locales/sv.yml +4 -8
  83. data/config/locales/sw.yml +4 -8
  84. data/config/locales/ta.yml +4 -8
  85. data/config/locales/th.yml +4 -8
  86. data/config/locales/tk.yml +4 -8
  87. data/config/locales/tr.yml +4 -8
  88. data/config/locales/uk.yml +4 -8
  89. data/config/locales/ur.yml +4 -8
  90. data/config/locales/uz.yml +4 -8
  91. data/config/locales/vi.yml +4 -8
  92. data/config/locales/zh-hk.yml +4 -8
  93. data/config/locales/zh-tw.yml +4 -8
  94. data/config/locales/zh.yml +4 -8
  95. data/lib/govuk_publishing_components/config.rb +0 -3
  96. data/lib/govuk_publishing_components/version.rb +1 -1
  97. data/node_modules/axe-core/axe.d.ts +75 -24
  98. data/node_modules/axe-core/axe.js +4765 -4555
  99. data/node_modules/axe-core/axe.min.js +2 -2
  100. data/node_modules/axe-core/package.json +2 -2
  101. data/node_modules/axe-core/sri-history.json +4 -0
  102. metadata +2 -17
  103. data/app/assets/stylesheets/component_guide/print.scss +0 -1
  104. data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +0 -18
  105. data/app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss +0 -28
  106. data/app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss +0 -8
  107. data/app/assets/stylesheets/govuk_publishing_components/components/print/_cards.scss +0 -4
  108. data/app/assets/stylesheets/govuk_publishing_components/components/print/_contents-list.scss +0 -19
  109. data/app/assets/stylesheets/govuk_publishing_components/components/print/_emergency-banner.scss +0 -3
  110. data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak-html-publication.scss +0 -5
  111. data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +0 -80
  112. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +0 -3
  113. data/app/assets/stylesheets/govuk_publishing_components/components/print/_organisation-logo.scss +0 -7
  114. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +0 -7
  115. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +0 -116
  116. data/app/assets/stylesheets/govuk_publishing_components/components/print/_textarea.scss +0 -13
  117. data/app/assets/stylesheets/govuk_publishing_components/components/print/_title.scss +0 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "axe-core",
3
3
  "description": "Accessibility engine for automated Web UI testing",
4
- "version": "4.5.2",
4
+ "version": "4.6.0",
5
5
  "license": "MPL-2.0",
6
6
  "engines": {
7
7
  "node": ">=4"
@@ -174,7 +174,7 @@
174
174
  "typedarray": "^0.0.6",
175
175
  "typescript": "^4.7.4",
176
176
  "uglify-js": "^3.16.2",
177
- "wcag-act-rules": "github:w3c/wcag-act-rules#a60a4e62f2",
177
+ "wcag-act-rules": "github:w3c/wcag-act-rules#9416ea6",
178
178
  "weakmap-polyfill": "^2.0.4"
179
179
  },
180
180
  "lint-staged": {
@@ -322,5 +322,9 @@
322
322
  "4.5.2": {
323
323
  "axe.js": "sha256-GY6QNA/wTZYR80KdSFkH5BevH8QfsZGGbJ9qFzCkneY=",
324
324
  "axe.min.js": "sha256-4Jw5rCVL57KrRYPfrx9AC87f3txwWIpgTM5n/LbSPTQ="
325
+ },
326
+ "4.6.0": {
327
+ "axe.js": "sha256-THkPfmokl4bJu3OupcpOt0ndrVCtSuKHPAbmah9KOfI=",
328
+ "axe.min.js": "sha256-14jwyUq9PSLhUTnee2RUaKm1i5z93fVEhUTgPCLzGO0="
325
329
  }
326
330
  }
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: 33.1.0
4
+ version: 34.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: 2022-12-02 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -515,9 +515,7 @@ files:
515
515
  - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/common.js
516
516
  - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/indexOf.js
517
517
  - app/assets/stylesheets/component_guide/application.scss
518
- - app/assets/stylesheets/component_guide/print.scss
519
518
  - app/assets/stylesheets/govuk_publishing_components/_all_components.scss
520
- - app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss
521
519
  - app/assets/stylesheets/govuk_publishing_components/component_support.scss
522
520
  - app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
523
521
  - app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss
@@ -624,19 +622,6 @@ files:
624
622
  - app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss
625
623
  - app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
626
624
  - app/assets/stylesheets/govuk_publishing_components/components/mixins/_prefixed-transform.scss
627
- - app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss
628
- - app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss
629
- - app/assets/stylesheets/govuk_publishing_components/components/print/_cards.scss
630
- - app/assets/stylesheets/govuk_publishing_components/components/print/_contents-list.scss
631
- - app/assets/stylesheets/govuk_publishing_components/components/print/_emergency-banner.scss
632
- - app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak-html-publication.scss
633
- - app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss
634
- - app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss
635
- - app/assets/stylesheets/govuk_publishing_components/components/print/_organisation-logo.scss
636
- - app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss
637
- - app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss
638
- - app/assets/stylesheets/govuk_publishing_components/components/print/_textarea.scss
639
- - app/assets/stylesheets/govuk_publishing_components/components/print/_title.scss
640
625
  - app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss
641
626
  - app/controllers/govuk_publishing_components/application_controller.rb
642
627
  - app/controllers/govuk_publishing_components/audit_controller.rb
@@ -1 +0,0 @@
1
- @import "govuk_publishing_components/all_components_print";
@@ -1,18 +0,0 @@
1
- // This is the file that the application needs to include in order to use
2
- // the components.
3
-
4
- @import "govuk_frontend_support";
5
-
6
- @import "components/print/accordion";
7
- @import "components/print/button";
8
- @import "components/print/cards";
9
- @import "components/print/contents-list";
10
- @import "components/print/emergency-banner";
11
- @import "components/print/govspeak-html-publication";
12
- @import "components/print/govspeak";
13
- @import "components/print/layout-super-navigation-header";
14
- @import "components/print/organisation-logo";
15
- @import "components/print/step-by-step-nav-header";
16
- @import "components/print/step-by-step-nav";
17
- @import "components/print/textarea";
18
- @import "components/print/title";
@@ -1,28 +0,0 @@
1
- // This is in place until a proper fix comes through from GOV.UK Frontend.
2
- //
3
- // TODO: Replace with the print styles that will come from GOV.UK Frontend.
4
-
5
- @import "govuk_publishing_components/component_support";
6
- @import "../accordion";
7
-
8
- // Open all of the accordion sections.
9
- .govuk-accordion__section-content {
10
- display: block !important; // stylelint-disable-line declaration-no-important
11
- }
12
-
13
- // Change the colour from the blue link colour to black.
14
- .govuk-accordion__section-button {
15
- color: govuk-colour("black") !important; // stylelint-disable-line declaration-no-important
16
- }
17
-
18
- // Change the summary subheading size.
19
- .govuk-accordion__section-summary {
20
- @include govuk-typography-common;
21
- @include govuk-typography-responsive($size: 16, $important: true);
22
- }
23
-
24
- // Hide the unusable "Open all" button and the "+" icons.
25
- .govuk-accordion__open-all,
26
- .govuk-accordion__icon {
27
- display: none !important; // stylelint-disable-line declaration-no-important
28
- }
@@ -1,8 +0,0 @@
1
- .gem-c-button {
2
- @include govuk-font(14);
3
- display: inline-block;
4
- padding: govuk-spacing(1);
5
- border: solid 1px govuk-colour("black");
6
- color: $govuk-text-colour;
7
- text-decoration: none;
8
- }
@@ -1,4 +0,0 @@
1
- .gem-c-cards__sub-heading {
2
- margin-top: govuk-spacing(6);
3
- margin-bottom: govuk-spacing(1);
4
- }
@@ -1,19 +0,0 @@
1
- @import "../helpers/contents-list-helper";
2
-
3
- // Override default browser indentation
4
- .gem-c-contents-list__list,
5
- .gem-c-contents-list__nested-list {
6
- padding-left: 0;
7
- margin-left: 0;
8
- }
9
-
10
- // Put indentation back where we use list style types
11
- .gem-c-contents-list__list-item--dashed {
12
- margin-left: govuk-spacing(3);
13
- list-style-type: disc;
14
- }
15
-
16
- .gem-c-contents-list__list-item--numbered,
17
- .gem-c-contents-list__list-item--parent {
18
- list-style-type: none;
19
- }
@@ -1,3 +0,0 @@
1
- .gem-c-emergency-banner {
2
- display: none;
3
- }
@@ -1,5 +0,0 @@
1
- .gem-c-govspeak-html-publication {
2
- .govuk-sticky-element {
3
- display: none;
4
- }
5
- }
@@ -1,80 +0,0 @@
1
- // stylelint-disable max-nesting-depth
2
-
3
- .gem-c-govspeak {
4
- .media-player {
5
- display: none;
6
- }
7
-
8
- .info-notice,
9
- .help-notice,
10
- .call-to-action {
11
- margin: govuk-spacing(3) 0;
12
- }
13
-
14
- .call-to-action {
15
- background: none;
16
- border: 1pt solid $govuk-border-colour;
17
- padding: govuk-spacing(3);
18
- }
19
-
20
- .help-notice p {
21
- font-weight: 700;
22
- }
23
-
24
- .fraction {
25
- img {
26
- display: inline-block;
27
- margin-bottom: -7px;
28
- }
29
- }
30
-
31
- .attachment {
32
- margin: govuk-spacing(6) 0;
33
-
34
- &:first-child {
35
- margin-top: 0;
36
- }
37
-
38
- .attachment-thumb {
39
- display: none;
40
- }
41
-
42
- .attachment-details {
43
- .download {
44
- display: block;
45
- }
46
- }
47
-
48
- .accessibility-warning {
49
- h2 {
50
- @include govuk-font(14);
51
- }
52
-
53
- .toggler {
54
- display: none;
55
- }
56
- }
57
- }
58
-
59
- .footnotes {
60
- border-top: 1px solid $govuk-text-colour;
61
-
62
- a[role="doc-backlink"] {
63
- display: none;
64
- }
65
- }
66
-
67
- .legislative-list {
68
- padding-left: 0;
69
-
70
- &,
71
- ol {
72
- list-style: none;
73
- }
74
- }
75
-
76
- .mc-toggle-button,
77
- .mc-chart-container {
78
- display: none;
79
- }
80
- }
@@ -1,3 +0,0 @@
1
- .gem-c-layout-super-navigation-header__content {
2
- display: none;
3
- }
@@ -1,7 +0,0 @@
1
- .gem-c-organisation-logo {
2
- width: 25%;
3
- }
4
-
5
- .gem-c-organisation-logo__image {
6
- max-width: 100%;
7
- }
@@ -1,7 +0,0 @@
1
- .gem-c-step-nav-header__part-of {
2
- display: block;
3
- }
4
-
5
- .gem-c-step-nav-header__title {
6
- @include govuk-font(24, $weight: bold);
7
- }
@@ -1,116 +0,0 @@
1
- $grey-2: #bfc1c3;
2
- $white: #ffffff;
3
- $number-circle-size: 35px;
4
- $stroke-width: 1px;
5
-
6
- .gem-c-step-nav:not(.gem-c-step-nav--large),
7
- .gem-c-step-nav__controls,
8
- .gem-c-step-nav__toggle-link,
9
- .gem-c-step-nav__help {
10
- display: none;
11
- }
12
-
13
- .gem-c-step-nav {
14
- position: relative;
15
-
16
- &:before {
17
- content: "";
18
- position: absolute;
19
- top: 0;
20
- left: $number-circle-size / 2;
21
- width: 3px;
22
- height: 100%;
23
- margin-left: -1.5px;
24
- border-left: solid $stroke-width $grey-2;
25
- }
26
-
27
- &:after {
28
- content: "";
29
- position: absolute;
30
- z-index: 6;
31
- bottom: 0;
32
- left: 0;
33
- margin-left: $number-circle-size / 4;
34
- width: $number-circle-size / 2;
35
- height: 0;
36
- border-bottom: solid $stroke-width $grey-2;
37
- }
38
- }
39
-
40
- .gem-c-step-nav__step {
41
- padding-left: 60px;
42
- position: relative;
43
- }
44
-
45
- .gem-c-step-nav__steps {
46
- padding: 0;
47
- list-style: none;
48
- }
49
-
50
- .gem-c-step-nav__circle {
51
- box-sizing: border-box;
52
- position: absolute;
53
- top: 0;
54
- left: 0;
55
- width: $number-circle-size;
56
- height: $number-circle-size;
57
- background: govuk-colour("white");
58
- border-radius: 100px;
59
- text-align: center;
60
- font-size: 19px;
61
- font-weight: bold;
62
- line-height: 1.5;
63
- }
64
-
65
- .gem-c-step-nav__circle--number {
66
- border: solid 1px $grey-2;
67
- }
68
-
69
- .gem-c-step-nav__step,
70
- .gem-c-step-nav__paragraph,
71
- .gem-c-step-nav__links {
72
- @include govuk-font(16);
73
- padding-bottom: 1em;
74
- }
75
-
76
- .gem-c-step-nav__title {
77
- @include govuk-font(19, $weight: bold);
78
- margin: 0 0 .5em;
79
- padding: 0;
80
- }
81
-
82
- .gem-c-step-nav__button--title {
83
- @include govuk-font(19, $weight: bold);
84
- padding: 0;
85
- border: 0;
86
- background: none;
87
- }
88
-
89
- .gem-c-step-nav__context {
90
- &:before {
91
- content: " \2013 ";
92
- }
93
- }
94
-
95
- .gem-c-step-nav__panel-link--active {
96
- font-weight: bold;
97
- }
98
-
99
- .gem-c-step-nav__links {
100
- padding-left: 0;
101
- list-style: none;
102
- }
103
-
104
- .gem-c-step-nav__links--choice {
105
- padding-left: 30px;
106
- list-style: disc;
107
- }
108
-
109
- .gem-c-step-nav__link {
110
- margin-bottom: .3em;
111
- }
112
-
113
- .gem-c-step-nav__circle-step-label,
114
- .gem-c-step-nav__circle-step-colon {
115
- display: none;
116
- }
@@ -1,13 +0,0 @@
1
- .gem-c-textarea {
2
- .gem-c-label,
3
- .gem-c-error-message,
4
- .govuk-hint,
5
- .govuk-character-count__message {
6
- display: block;
7
- }
8
-
9
- .govuk-textarea {
10
- width: 400px;
11
- height: 40px;
12
- }
13
- }
@@ -1,7 +0,0 @@
1
- .gem-c-title__context {
2
- margin: 0;
3
- }
4
-
5
- .gem-c-title__text {
6
- margin-top: 0;
7
- }