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,12 +1,12 @@
1
1
  .gem-c-error-alert {
2
- color: $gem-text-colour;
2
+ color: $govuk-text-colour;
3
3
  padding: govuk-spacing(3);
4
- border: $gem-border-width-mobile solid $gem-error-colour;
4
+ border: $govuk-border-width-narrow solid $govuk-error-colour;
5
5
  @include govuk-responsive-margin(8, "bottom");
6
6
 
7
7
  @include govuk-media-query($from: tablet) {
8
8
  padding: govuk-spacing(4);
9
- border-width: $gem-border-width-tablet;
9
+ border-width: $govuk-border-width;
10
10
  }
11
11
  }
12
12
 
@@ -32,5 +32,5 @@
32
32
  }
33
33
 
34
34
  .gem-c-error-alert:focus {
35
- outline: $gem-focus-width solid $gem-focus-colour;
35
+ outline: $govuk-focus-width solid $govuk-focus-colour;
36
36
  }
@@ -8,41 +8,6 @@
8
8
  }
9
9
  }
10
10
 
11
- // hide without js
12
- // show with js, unless also has the js-hidden class
13
- .gem-c-feedback__js-show,
14
- .gem-c-feedback__prompt-success,
15
- .gem-c-feedback__prompt-questions,
16
- .gem-c-feedback__error-summary {
17
- display: none;
18
-
19
- .js-enabled & {
20
- display: block;
21
-
22
- &.js-hidden {
23
- display: none;
24
- }
25
- }
26
- }
27
-
28
- // maintain table display for prompt and prompt-questions
29
- .js-enabled .gem-c-feedback__prompt {
30
- @include govuk-media-query($from: tablet) {
31
- display: table;
32
- }
33
- }
34
-
35
- .js-enabled .gem-c-feedback__prompt-questions {
36
- @include govuk-media-query($from: tablet) {
37
- display: table-cell;
38
- }
39
- }
40
-
41
- // show the default feedback form without js
42
- .js-enabled .gem-c-feedback__form.js-hidden {
43
- display: none;
44
- }
45
-
46
11
  .gem-c-feedback__prompt-questions {
47
12
  text-align: center;
48
13
  border-bottom: 1px solid govuk-colour("white");
@@ -137,15 +102,6 @@
137
102
  .gem-c-feedback__email-link,
138
103
  .gem-c-feedback__prompt-link {
139
104
  position: relative;
140
-
141
- &:after {
142
- content: "";
143
- position: absolute;
144
- top: -14px;
145
- right: -14px;
146
- left: -14px;
147
- bottom: -14px;
148
- }
149
105
  }
150
106
 
151
107
  .gem-c-feedback__prompt-link:link,
@@ -282,3 +238,38 @@
282
238
  outline: $govuk-focus-width solid $govuk-focus-colour;
283
239
  }
284
240
  }
241
+
242
+ // hide without js
243
+ // show with js, unless also has the js-hidden class
244
+ .gem-c-feedback__js-show,
245
+ .gem-c-feedback__prompt-success,
246
+ .gem-c-feedback__prompt-questions,
247
+ .gem-c-feedback__error-summary {
248
+ display: none;
249
+
250
+ .js-enabled & {
251
+ display: block;
252
+
253
+ &.js-hidden {
254
+ display: none;
255
+ }
256
+ }
257
+ }
258
+
259
+ // maintain table display for prompt and prompt-questions
260
+ .js-enabled .gem-c-feedback__prompt {
261
+ @include govuk-media-query($from: tablet) {
262
+ display: table;
263
+ }
264
+ }
265
+
266
+ .js-enabled .gem-c-feedback__prompt-questions {
267
+ @include govuk-media-query($from: tablet) {
268
+ display: table-cell;
269
+ }
270
+ }
271
+
272
+ // show the default feedback form without js
273
+ .js-enabled .gem-c-feedback__form.js-hidden {
274
+ display: none;
275
+ }
@@ -1,8 +1,7 @@
1
- $stroke-width: 2px;
2
- $stroke-width-large: 3px;
3
- $number-circle-size: 26px;
1
+ $stroke-width: 1px;
2
+ $number-circle-size: 30px;
4
3
  $number-circle-size-large: 35px;
5
- $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
4
+ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
6
5
 
7
6
  @mixin step-nav-vertical-line ($line-style: solid) {
8
7
  content: "";
@@ -16,13 +15,12 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
16
15
 
17
16
  @mixin step-nav-line-position {
18
17
  left: 0;
19
- margin-left: ($number-circle-size / 2) - ($stroke-width / 2);
18
+ margin-left: em(($number-circle-size / 2) - ($stroke-width / 2), 16);
20
19
  }
21
20
 
22
21
  @mixin step-nav-line-position-large {
23
22
  left: 0;
24
- margin-left: ($number-circle-size-large / 2) - ($stroke-width-large / 2);
25
- border-width: $stroke-width-large;
23
+ margin-left: em(($number-circle-size-large / 2) - ($stroke-width / 2), 16);
26
24
  }
27
25
 
28
26
  // custom mixin as govuk-font does undesirable things at different breakpoints
@@ -40,6 +38,13 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
40
38
  }
41
39
  }
42
40
 
41
+ // Adds a focus state for the chevron icon so that it turns black on button focus
42
+ @mixin step-nav-chevron-focus-state {
43
+ .gem-c-step-nav__chevron-stroke {
44
+ stroke: govuk-colour("black");
45
+ }
46
+ }
47
+
43
48
  .gem-c-step-nav {
44
49
  margin-bottom: govuk-spacing(6);
45
50
 
@@ -56,7 +61,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
56
61
 
57
62
  .gem-c-step-nav__controls {
58
63
  padding: 3px 3px 0 0;
59
- text-align: right;
60
64
  }
61
65
 
62
66
  .gem-c-step-nav__button {
@@ -78,14 +82,29 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
78
82
  }
79
83
 
80
84
  .gem-c-step-nav__button--title {
81
- @include step-nav-font(19, $weight: bold, $line-height: 1.4);
85
+ @include step-nav-font(19, $weight: bold, $line-height: 1.2);
82
86
  display: inline-block;
83
- padding: 0;
87
+ padding: govuk-spacing(1) 0 0;
84
88
  text-align: left;
85
89
  color: govuk-colour("black");
90
+ width: 100%;
86
91
 
87
92
  .gem-c-step-nav--large & {
88
93
  @include step-nav-font(19, $tablet-size: 24, $weight: bold, $line-height: 1.4);
94
+
95
+ @include govuk-media_query($from: tablet) {
96
+ padding-top: govuk-spacing(2);
97
+ }
98
+ }
99
+
100
+ &:focus {
101
+ box-shadow: 0 -4px govuk-colour("black");
102
+
103
+ .gem-c-step-nav__toggle-link {
104
+ color: govuk-colour("black");
105
+ }
106
+
107
+ @include step-nav-chevron-focus-state;
89
108
  }
90
109
  }
91
110
 
@@ -93,12 +112,53 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
93
112
  @include step-nav-font(14, $line-height: 1);
94
113
  position: relative;
95
114
  z-index: 1; // this and relative position stops focus outline underlap with border of accordion
96
- padding: .5em 0;
97
- text-decoration: underline;
115
+ margin: .5em 0 1.5em;
116
+ padding: 0 0 govuk-spacing(1);
117
+
118
+ &:hover .gem-c-step-nav__button-text {
119
+ text-decoration: underline;
120
+ }
98
121
 
99
122
  .gem-c-step-nav--large & {
100
123
  @include step-nav-font(14, $tablet-size: 16, $line-height: 1);
101
124
  }
125
+
126
+ &:focus {
127
+ @include step-nav-chevron-focus-state;
128
+ }
129
+ }
130
+
131
+ .gem-c-step-nav__title-text {
132
+ display: block;
133
+ margin-bottom: govuk-spacing(1);
134
+ }
135
+
136
+ .gem-c-step-nav__chevron {
137
+ display: inline-block;
138
+ vertical-align: middle;
139
+ margin-left: em(5, 14);
140
+
141
+ .gem-c-step-nav--large & {
142
+ margin-left: em(5, 16);
143
+ }
144
+ }
145
+
146
+ .gem-c-step-nav__button-text {
147
+ display: inline-block;
148
+ text-align: left;
149
+ min-width: em(35, 14);
150
+
151
+ .gem-c-step-nav--large & {
152
+ min-width: em(40, 16);
153
+ }
154
+ }
155
+
156
+ .gem-c-step-nav__button-text--all {
157
+ min-width: em(87, 14);
158
+
159
+ .gem-c-step-nav--large & {
160
+ min-width: em(100, 16);
161
+ }
102
162
  }
103
163
 
104
164
  .gem-c-step-nav__steps {
@@ -108,23 +168,23 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
108
168
 
109
169
  .gem-c-step-nav__step {
110
170
  position: relative;
111
- padding-left: govuk-spacing(6) + govuk-spacing(3);
171
+ padding-left: em(govuk-spacing(6) + govuk-spacing(3), 16);
112
172
  list-style: none;
113
173
 
114
174
  // line down the side of a step
115
175
  &:after {
116
176
  @include step-nav-vertical-line;
117
177
  @include step-nav-line-position;
118
- top: govuk-spacing(3);
178
+ top: em(govuk-spacing(3), 16);
119
179
  }
120
180
 
121
181
  .gem-c-step-nav--large & {
122
182
  @include govuk-media-query($from: tablet) {
123
- padding-left: govuk-spacing(9);
183
+ padding-left: em(govuk-spacing(9), 16);
124
184
 
125
185
  &:after { // stylelint-disable-line max-nesting-depth
126
186
  @include step-nav-line-position-large;
127
- top: govuk-spacing(6);
187
+ top: em(govuk-spacing(6), 16);
128
188
  }
129
189
  }
130
190
  }
@@ -158,7 +218,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
158
218
  &:before {
159
219
  margin-left: $number-circle-size-large / 4;
160
220
  width: $number-circle-size-large / 2;
161
- border-width: $stroke-width-large;
162
221
  }
163
222
 
164
223
  &:after {
@@ -181,10 +240,10 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
181
240
  box-sizing: border-box;
182
241
  position: absolute;
183
242
  z-index: 5;
184
- top: govuk-spacing(3);
243
+ top: 3px;
185
244
  left: 0;
186
- width: $number-circle-size;
187
- height: $number-circle-size;
245
+ width: em($number-circle-size, 16);
246
+ height: em($number-circle-size, 16);
188
247
  color: govuk-colour("black");
189
248
  background: govuk-colour("white");
190
249
  border-radius: 100px;
@@ -192,31 +251,44 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
192
251
 
193
252
  .gem-c-step-nav--large & {
194
253
  @include govuk-media-query($from: tablet) {
195
- top: govuk-spacing(6);
196
- width: $number-circle-size-large;
197
- height: $number-circle-size-large;
254
+ top: 11px;
255
+ width: em($number-circle-size-large, 19);
256
+ height: em($number-circle-size-large, 19);
198
257
  }
199
258
  }
200
259
  }
201
260
 
202
261
  .gem-c-step-nav__circle--number {
203
- @include step-nav-font(16, $weight: bold, $line-height: 23px);
262
+ @include step-nav-font(16, $weight: bold, $line-height: 29px);
204
263
  border: solid $stroke-width govuk-colour("mid-grey", $legacy: "grey-2");
205
264
 
206
265
  .gem-c-step-nav--large & {
207
- @include step-nav-font(16, $tablet-size: 19, $weight: bold, $line-height: 23px, $tablet-line-height: 30px);
266
+ @include step-nav-font(16, $tablet-size: 19, $weight: bold, $line-height: 25px, $tablet-line-height: 34px);
267
+ }
208
268
 
209
- @include govuk-media-query($from: tablet) {
210
- border-width: $stroke-width-large;
269
+ .gem-c-step-nav__step--active & {
270
+ background-color: govuk-colour("black");
271
+
272
+ .gem-c-step-nav__circle-background {
273
+ text-shadow: none;
274
+ color: govuk-colour("white");
211
275
  }
212
276
  }
213
277
  }
214
278
 
215
279
  .gem-c-step-nav__circle--logic {
216
- @include step-nav-font(16, $weight: bold, $line-height: 28px);
280
+ @include step-nav-font(19, $weight: bold, $line-height: 28px);
281
+ left: 3px;
282
+ width: em($number-circle-size, 19);
283
+ height: em($number-circle-size, 19);
217
284
 
218
285
  .gem-c-step-nav--large & {
219
- @include step-nav-font(16, $tablet-size: 19, $weight: bold, $line-height: 28px, $tablet-line-height: 34px);
286
+ @include step-nav-font(19, $tablet-size: 24, $weight: bold, $line-height: 28px, $tablet-line-height: 34px);
287
+
288
+ @include govuk-media-query($from: tablet) {
289
+ width: em($number-circle-size-large, 24);
290
+ height: em($number-circle-size-large, 24);
291
+ }
220
292
  }
221
293
  }
222
294
 
@@ -240,21 +312,19 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
240
312
  }
241
313
 
242
314
  .gem-c-step-nav__header {
243
- padding: govuk-spacing(3) 0;
244
315
  border-top: $top-border;
316
+ padding: govuk-spacing(1) 0 govuk-spacing(6);
245
317
 
246
- .gem-c-step-nav--active & {
247
- cursor: pointer;
318
+ .gem-c-step-nav--large & {
319
+ padding-top: govuk-spacing(2);
248
320
  }
249
321
 
250
- .gem-c-step-nav__button {
251
- &:focus {
252
- @include govuk-focused-text;
322
+ .js-enabled & {
323
+ padding: 0;
324
+ }
253
325
 
254
- .gem-c-step-nav__toggle-link {
255
- @include govuk-focused-text;
256
- }
257
- }
326
+ .gem-c-step-nav--active & {
327
+ cursor: pointer;
258
328
  }
259
329
 
260
330
  &:hover {
@@ -263,16 +333,10 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
263
333
  color: $govuk-link-colour;
264
334
  }
265
335
 
266
- .gem-c-step-nav__toggle-link {
336
+ .gem-c-step-nav__button-text {
267
337
  text-decoration: underline;
268
338
  }
269
339
  }
270
-
271
- .gem-c-step-nav--large & {
272
- @include govuk-media-query($from: tablet) {
273
- padding: govuk-spacing(6) 0;
274
- }
275
- }
276
340
  }
277
341
 
278
342
  .gem-c-step-nav__title {
@@ -290,6 +354,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
290
354
  display: block;
291
355
  color: $govuk-link-colour;
292
356
  text-transform: capitalize;
357
+ padding-bottom: govuk-spacing(6);
293
358
 
294
359
  .gem-c-step-nav--large & {
295
360
  @include step-nav-font(14, $tablet-size: 16, $line-height: 1.2);
@@ -299,6 +364,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
299
364
  .gem-c-step-nav__panel {
300
365
  @include govuk-text-colour;
301
366
  @include step-nav-font(16);
367
+ padding-bottom: govuk-spacing(5);
302
368
 
303
369
  .gem-c-step-nav--large & {
304
370
  @include step-nav-font(16, $tablet-size: 19);
@@ -399,7 +465,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
399
465
  &:before {
400
466
  left: -(govuk-spacing(9));
401
467
  margin-left: ($number-circle-size-large / 2);
402
- height: $stroke-width-large;
403
468
  }
404
469
  }
405
470
  }
@@ -1,12 +1,12 @@
1
1
  .gem-c-success-alert {
2
- color: $gem-text-colour;
3
- padding: $gem-spacing-scale-3;
4
- border: $gem-border-width-mobile solid $gem-success-colour;
2
+ color: $govuk-text-colour;
3
+ padding: govuk-spacing(3);
4
+ border: $govuk-border-width-narrow solid $govuk-success-colour;
5
5
  @include govuk-responsive-margin(8, "bottom");
6
6
 
7
7
  @include govuk-media-query($from: tablet) {
8
- padding: $gem-spacing-scale-4;
9
- border-width: $gem-border-width-tablet;
8
+ padding: govuk-spacing(4);
9
+ border-width: $govuk-border-width;
10
10
  }
11
11
  }
12
12
 
@@ -17,10 +17,10 @@
17
17
 
18
18
  .gem-c-success-summary__title {
19
19
  margin-top: 0;
20
- margin-bottom: $gem-spacing-scale-3;
20
+ margin-bottom: govuk-spacing(3);
21
21
 
22
22
  @include govuk-media-query($from: tablet) {
23
- margin-bottom: $gem-spacing-scale-4;
23
+ margin-bottom: govuk-spacing(4);
24
24
  }
25
25
 
26
26
  @include govuk-font(24, $weight: bold);
@@ -32,5 +32,5 @@
32
32
  }
33
33
 
34
34
  .gem-c-success-alert:focus {
35
- outline: $gem-focus-width solid $gem-focus-colour;
35
+ outline: $govuk-focus-width solid $govuk-focus-colour;
36
36
  }