govuk_publishing_components 33.0.0 → 34.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/govuk_publishing_components_manifest.js +0 -1
  3. data/app/assets/javascripts/component_guide/accessibility-test.js +0 -1
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-ecommerce-tracker.js +3 -3
  5. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +22 -1
  6. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +58 -106
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +28 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +11 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +19 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +20 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +6 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +6 -0
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +8 -0
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +83 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +6 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +15 -0
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +6 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +16 -0
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +10 -0
  20. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_contents-list-helper.scss +0 -1
  21. data/app/controllers/govuk_publishing_components/component_guide_controller.rb +6 -9
  22. data/app/views/govuk_publishing_components/component_guide/_application_stylesheet.html.erb +0 -3
  23. data/app/views/govuk_publishing_components/component_guide/index.html.erb +0 -7
  24. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +1 -2
  25. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +0 -1
  26. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +4 -1
  27. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml +34 -0
  28. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +1 -1
  29. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +1 -1
  30. data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -2
  31. data/config/locales/ar.yml +0 -7
  32. data/config/locales/az.yml +1 -7
  33. data/config/locales/be.yml +0 -7
  34. data/config/locales/bg.yml +0 -7
  35. data/config/locales/bn.yml +0 -7
  36. data/config/locales/cs.yml +0 -7
  37. data/config/locales/cy.yml +0 -7
  38. data/config/locales/da.yml +0 -7
  39. data/config/locales/de.yml +0 -7
  40. data/config/locales/dr.yml +0 -7
  41. data/config/locales/el.yml +0 -7
  42. data/config/locales/en.yml +0 -7
  43. data/config/locales/es-419.yml +0 -7
  44. data/config/locales/es.yml +0 -7
  45. data/config/locales/et.yml +0 -7
  46. data/config/locales/fa.yml +1 -7
  47. data/config/locales/fi.yml +0 -7
  48. data/config/locales/fr.yml +0 -7
  49. data/config/locales/gd.yml +0 -7
  50. data/config/locales/gu.yml +0 -7
  51. data/config/locales/he.yml +0 -7
  52. data/config/locales/hi.yml +0 -7
  53. data/config/locales/hr.yml +0 -7
  54. data/config/locales/hu.yml +0 -7
  55. data/config/locales/hy.yml +0 -7
  56. data/config/locales/id.yml +0 -7
  57. data/config/locales/is.yml +0 -7
  58. data/config/locales/it.yml +0 -7
  59. data/config/locales/ja.yml +0 -7
  60. data/config/locales/ka.yml +0 -7
  61. data/config/locales/kk.yml +0 -7
  62. data/config/locales/ko.yml +0 -7
  63. data/config/locales/lt.yml +0 -7
  64. data/config/locales/lv.yml +0 -7
  65. data/config/locales/ms.yml +0 -7
  66. data/config/locales/mt.yml +0 -7
  67. data/config/locales/nl.yml +0 -7
  68. data/config/locales/no.yml +0 -7
  69. data/config/locales/pa-pk.yml +0 -7
  70. data/config/locales/pa.yml +0 -7
  71. data/config/locales/pl.yml +0 -7
  72. data/config/locales/ps.yml +0 -7
  73. data/config/locales/pt.yml +0 -7
  74. data/config/locales/ro.yml +0 -7
  75. data/config/locales/ru.yml +0 -7
  76. data/config/locales/si.yml +0 -7
  77. data/config/locales/sk.yml +0 -7
  78. data/config/locales/sl.yml +0 -7
  79. data/config/locales/so.yml +0 -7
  80. data/config/locales/sq.yml +0 -7
  81. data/config/locales/sr.yml +0 -7
  82. data/config/locales/sv.yml +0 -7
  83. data/config/locales/sw.yml +0 -7
  84. data/config/locales/ta.yml +0 -7
  85. data/config/locales/th.yml +0 -7
  86. data/config/locales/tk.yml +0 -7
  87. data/config/locales/tr.yml +0 -7
  88. data/config/locales/uk.yml +0 -7
  89. data/config/locales/ur.yml +0 -7
  90. data/config/locales/uz.yml +0 -7
  91. data/config/locales/vi.yml +0 -7
  92. data/config/locales/zh-hk.yml +0 -7
  93. data/config/locales/zh-tw.yml +0 -7
  94. data/config/locales/zh.yml +0 -7
  95. data/lib/govuk_publishing_components/config.rb +0 -3
  96. data/lib/govuk_publishing_components/presenters/button_helper.rb +2 -1
  97. data/lib/govuk_publishing_components/version.rb +1 -1
  98. metadata +2 -17
  99. data/app/assets/stylesheets/component_guide/print.scss +0 -1
  100. data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +0 -18
  101. data/app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss +0 -28
  102. data/app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss +0 -8
  103. data/app/assets/stylesheets/govuk_publishing_components/components/print/_cards.scss +0 -4
  104. data/app/assets/stylesheets/govuk_publishing_components/components/print/_contents-list.scss +0 -19
  105. data/app/assets/stylesheets/govuk_publishing_components/components/print/_emergency-banner.scss +0 -3
  106. data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak-html-publication.scss +0 -5
  107. data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +0 -80
  108. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +0 -3
  109. data/app/assets/stylesheets/govuk_publishing_components/components/print/_organisation-logo.scss +0 -7
  110. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +0 -7
  111. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +0 -116
  112. data/app/assets/stylesheets/govuk_publishing_components/components/print/_textarea.scss +0 -13
  113. data/app/assets/stylesheets/govuk_publishing_components/components/print/_title.scss +0 -7
@@ -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
- }