govuk_publishing_components 23.15.0 → 24.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +28 -0
  3. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +330 -4
  4. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +26 -10
  5. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +23 -14
  6. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/common.js +8 -0
  7. data/app/assets/stylesheets/component_guide/application.scss +0 -8
  8. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
  9. data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -2
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +298 -14
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +7 -87
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +4 -4
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +21 -5
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +105 -48
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +8 -8
  16. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +0 -5
  17. data/app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss +17 -9
  18. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +2 -2
  19. data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +1 -11
  20. data/app/models/govuk_publishing_components/audit_applications.rb +1 -1
  21. data/app/views/govuk_publishing_components/audit/show.html.erb +211 -199
  22. data/app/views/govuk_publishing_components/components/_accordion.html.erb +15 -22
  23. data/app/views/govuk_publishing_components/components/_attachment.html.erb +3 -3
  24. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +47 -36
  25. data/app/views/govuk_publishing_components/components/_document_list.html.erb +10 -1
  26. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +1 -1
  27. data/app/views/govuk_publishing_components/components/attachment/{_thumbnail_document.svg → _thumbnail_document.html.erb} +0 -0
  28. data/app/views/govuk_publishing_components/components/attachment/{_thumbnail_generic.svg → _thumbnail_generic.html.erb} +0 -0
  29. data/app/views/govuk_publishing_components/components/attachment/{_thumbnail_spreadsheet.svg → _thumbnail_spreadsheet.html.erb} +0 -0
  30. data/app/views/govuk_publishing_components/components/docs/accordion.yml +37 -3
  31. data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +5 -0
  32. data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +9 -0
  33. data/app/views/govuk_publishing_components/components/docs/document_list.yml +18 -0
  34. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +3 -3
  35. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -1
  36. data/config/initializers/assets.rb +0 -1
  37. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +61 -2
  38. data/lib/govuk_publishing_components/version.rb +1 -1
  39. data/node_modules/govuk-frontend/govuk/all.js +1 -1
  40. data/node_modules/govuk-frontend/govuk/components/_all.scss +1 -0
  41. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +10 -10
  42. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +2 -2
  43. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +2 -0
  44. data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +1 -0
  45. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +1 -1
  46. data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +13 -0
  47. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
  48. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +51 -0
  49. data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +425 -0
  50. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +132 -0
  51. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro.njk +3 -0
  52. data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +63 -0
  53. data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +2 -2
  54. data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +18 -18
  55. data/node_modules/govuk-frontend/govuk/components/header/template.njk +4 -4
  56. data/node_modules/govuk-frontend/govuk/components/table/_index.scss +21 -0
  57. data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +2 -2
  58. data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
  59. data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +94 -0
  60. data/node_modules/govuk-frontend/package.json +1 -1
  61. metadata +13 -20
  62. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg +0 -4
  63. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small.svg +0 -4
  64. data/app/assets/javascripts/govuk_publishing_components/components/header.js +0 -8
  65. data/app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js +0 -31
  66. data/app/assets/stylesheets/govuk_publishing_components/components/_chevron-banner.scss +0 -138
  67. data/app/assets/stylesheets/govuk_publishing_components/components/_list.scss +0 -1
  68. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +0 -27
  69. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_back-arrow.scss +0 -13
  70. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_clearfix.scss +0 -8
  71. data/app/views/govuk_publishing_components/components/_chevron_banner.html.erb +0 -19
  72. data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +0 -85
  73. data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +0 -33
  74. data/app/views/govuk_publishing_components/components/docs/chevron_banner.yml +0 -33
  75. data/app/views/govuk_publishing_components/components/docs/subscription-links.yml +0 -103
  76. data/app/views/govuk_publishing_components/components/docs/translation-nav.yml +0 -139
@@ -1,3 +1,4 @@
1
+ @import "govuk/components/cookie-banner/cookie-banner";
1
2
  $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
2
3
 
3
4
  .js-enabled {
@@ -7,50 +8,14 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
7
8
  }
8
9
 
9
10
  .gem-c-cookie-banner {
10
- @include govuk-font($size: 16);
11
- padding: govuk-spacing(2) 0;
12
11
  background-color: $govuk-cookie-banner-background;
13
12
  }
14
13
 
15
- .gem-c-cookie-banner--services {
14
+ // can't be used without js so implement there
15
+ .gem-c-cookie-banner .gem-c-button {
16
16
  display: none;
17
17
  }
18
18
 
19
- .gem-c-cookie-banner__message {
20
- display: inline-block;
21
- padding-bottom: govuk-spacing(2);
22
-
23
- @include govuk-font($size: 16);
24
- @include govuk-media-query($from: desktop) {
25
- padding-right: govuk-spacing(4);
26
- }
27
- }
28
-
29
- .gem-c-cookie-banner__button {
30
- &.govuk-grid-column-one-half-from-desktop {
31
- padding: 0;
32
- }
33
-
34
- .govuk-button {
35
- @include govuk-media-query($from: desktop) {
36
- width: 90%;
37
- }
38
-
39
- @include govuk-media-query($until: desktop) {
40
- margin-bottom: govuk-spacing(4);
41
- }
42
- }
43
- }
44
-
45
- // Only show accept button if users have js and can accept
46
- .gem-c-cookie-banner__button-accept {
47
- display: none;
48
- }
49
-
50
- .js-enabled .gem-c-cookie-banner__button-accept {
51
- display: inline-block;
52
- }
53
-
54
19
  .gem-c-cookie-banner__confirmation {
55
20
  display: none;
56
21
  position: relative;
@@ -81,51 +46,11 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
81
46
  }
82
47
  }
83
48
 
84
- .gem-c-cookie-banner__hide-button {
85
- @include govuk-font($size: 19);
86
- outline: 0;
87
- border: 0;
88
- background: none;
89
- text-decoration: underline;
90
- color: $govuk-link-colour;
91
- padding: govuk-spacing(0);
92
- margin-top: govuk-spacing(2);
93
-
94
- &:hover {
95
- color: $govuk-link-hover-colour;
96
- cursor: pointer;
97
- }
98
-
99
- &:focus {
100
- @include govuk-focused-text;
101
- }
102
-
103
- @include govuk-media-query($from: desktop) {
104
- margin-top: govuk-spacing(0);
105
- position: absolute;
106
- right: govuk-spacing(1);
107
- }
108
- }
109
-
110
- .gem-c-cookie-banner__buttons--flex {
111
- display: flex;
112
- flex-wrap: wrap;
113
- align-items: baseline;
114
-
115
- .govuk-button,
116
- .gem-c-cookie-banner__link {
117
- flex-grow: 1;
118
- flex-basis: 10rem;
119
- margin-right: govuk-spacing(3);
120
- margin-bottom: govuk-spacing(3);
121
- }
122
- }
123
-
124
49
  // Override the styles from govuk_template
125
50
  // stylelint-disable selector-max-id
126
51
  .gem-c-cookie-banner#global-cookie-message {
127
52
  background-color: $govuk-cookie-banner-background;
128
- padding: govuk-spacing(4) 0;
53
+ padding: 0;
129
54
  box-sizing: border-box;
130
55
 
131
56
  .gem-c-cookie-banner__message,
@@ -135,18 +60,13 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
135
60
  @include govuk-font($size: 19);
136
61
  }
137
62
 
138
- .gem-c-cookie-banner__message {
139
- margin-bottom: 0;
140
- }
141
-
142
63
  p {
143
64
  @include govuk-font($size: 19);
144
65
  margin: 0 0 govuk-spacing(2) 0;
145
66
  }
146
67
 
147
- .gem-c-cookie-banner__confirmation-message {
148
- @include govuk-media-query($from: desktop) {
149
- margin-bottom: 0;
150
- }
68
+ .gem-c-cookie-banner__message,
69
+ .gem-c-cookie-banner__confirmation {
70
+ margin-bottom: - govuk-spacing(2);
151
71
  }
152
72
  }
@@ -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
  }
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  .gem-c-layout-header--search-left {
34
- .gem-c-header__menu-button {
34
+ .gem-c-header__menu-button.govuk-header__menu-button {
35
35
  margin-top: - govuk-spacing(7);
36
36
  left: 0;
37
37
  }
@@ -70,7 +70,7 @@
70
70
  margin-top: 0;
71
71
  }
72
72
 
73
- .gem-c-header__content {
73
+ .gem-c-header__content.govuk-header__content {
74
74
  @include govuk-grid-column(two-thirds);
75
75
  padding-left: govuk-spacing(6);
76
76
  padding-right: govuk-spacing(1);
@@ -78,10 +78,16 @@
78
78
  }
79
79
  }
80
80
 
81
+ .gem-c-layout-header__search.govuk-grid-column-one-third-from-desktop,
82
+ .gem-c-layout-header__logo.govuk-grid-column-one-third-from-desktop,
83
+ .gem-c-layout-header__search.govuk-grid-column-one-third,
84
+ .gem-c-layout-header__logo.govuk-grid-column-two-thirds {
85
+ padding-right: 0;
86
+ padding-left: 0;
87
+ }
88
+
81
89
  .gem-c-layout-header__logo,
82
90
  .gem-c-layout-header__search {
83
- padding: 0;
84
-
85
91
  @include govuk-media-query($until: "tablet") {
86
92
  margin-bottom: govuk-spacing(3);
87
93
  }
@@ -96,8 +102,9 @@
96
102
  }
97
103
  }
98
104
 
99
- .gem-c-header__content {
105
+ .gem-c-header__content.govuk-header__content {
100
106
  width: auto;
107
+ padding-left: 0;
101
108
 
102
109
  @include govuk-media-query($from: desktop) {
103
110
  float: right;
@@ -159,3 +166,12 @@
159
166
  display: block;
160
167
  }
161
168
  }
169
+
170
+ .govuk-header__menu-button.gem-c-header__menu-button {
171
+ top: govuk-spacing(4);
172
+ right: 0;
173
+ }
174
+
175
+ .gem-c-header__nav {
176
+ clear: both;
177
+ }
@@ -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
 
@@ -77,14 +82,29 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
77
82
  }
78
83
 
79
84
  .gem-c-step-nav__button--title {
80
- @include step-nav-font(19, $weight: bold, $line-height: 1.4);
85
+ @include step-nav-font(19, $weight: bold, $line-height: 1.2);
81
86
  display: inline-block;
82
- padding: 0;
87
+ padding: govuk-spacing(1) 0 0;
83
88
  text-align: left;
84
89
  color: govuk-colour("black");
90
+ width: 100%;
85
91
 
86
92
  .gem-c-step-nav--large & {
87
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;
88
108
  }
89
109
  }
90
110
 
@@ -92,15 +112,20 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
92
112
  @include step-nav-font(14, $line-height: 1);
93
113
  position: relative;
94
114
  z-index: 1; // this and relative position stops focus outline underlap with border of accordion
95
- padding: .5em 0 1.5em;
115
+ margin: .5em 0 1.5em;
116
+ padding: 0 0 govuk-spacing(1);
96
117
 
97
- &:hover {
118
+ &:hover .gem-c-step-nav__button-text {
98
119
  text-decoration: underline;
99
120
  }
100
121
 
101
122
  .gem-c-step-nav--large & {
102
123
  @include step-nav-font(14, $tablet-size: 16, $line-height: 1);
103
124
  }
125
+
126
+ &:focus {
127
+ @include step-nav-chevron-focus-state;
128
+ }
104
129
  }
105
130
 
106
131
  .gem-c-step-nav__title-text {
@@ -109,8 +134,35 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
109
134
  }
110
135
 
111
136
  .gem-c-step-nav__chevron {
112
- vertical-align: text-top;
113
- margin-right: govuk-spacing(1);
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
+ svg {
146
+ pointer-events: none;
147
+ }
148
+ }
149
+
150
+ .gem-c-step-nav__button-text {
151
+ display: inline-block;
152
+ text-align: left;
153
+ min-width: em(35, 14);
154
+
155
+ .gem-c-step-nav--large & {
156
+ min-width: em(40, 16);
157
+ }
158
+ }
159
+
160
+ .gem-c-step-nav__button-text--all {
161
+ min-width: em(87, 14);
162
+
163
+ .gem-c-step-nav--large & {
164
+ min-width: em(100, 16);
165
+ }
114
166
  }
115
167
 
116
168
  .gem-c-step-nav__steps {
@@ -120,23 +172,23 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
120
172
 
121
173
  .gem-c-step-nav__step {
122
174
  position: relative;
123
- padding-left: govuk-spacing(6) + govuk-spacing(3);
175
+ padding-left: em(govuk-spacing(6) + govuk-spacing(3), 16);
124
176
  list-style: none;
125
177
 
126
178
  // line down the side of a step
127
179
  &:after {
128
180
  @include step-nav-vertical-line;
129
181
  @include step-nav-line-position;
130
- top: govuk-spacing(3);
182
+ top: em(govuk-spacing(3), 16);
131
183
  }
132
184
 
133
185
  .gem-c-step-nav--large & {
134
186
  @include govuk-media-query($from: tablet) {
135
- padding-left: govuk-spacing(9);
187
+ padding-left: em(govuk-spacing(9), 16);
136
188
 
137
189
  &:after { // stylelint-disable-line max-nesting-depth
138
190
  @include step-nav-line-position-large;
139
- top: govuk-spacing(6);
191
+ top: em(govuk-spacing(6), 16);
140
192
  }
141
193
  }
142
194
  }
@@ -170,7 +222,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
170
222
  &:before {
171
223
  margin-left: $number-circle-size-large / 4;
172
224
  width: $number-circle-size-large / 2;
173
- border-width: $stroke-width-large;
174
225
  }
175
226
 
176
227
  &:after {
@@ -193,10 +244,10 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
193
244
  box-sizing: border-box;
194
245
  position: absolute;
195
246
  z-index: 5;
196
- top: govuk-spacing(1);
247
+ top: 3px;
197
248
  left: 0;
198
- width: $number-circle-size;
199
- height: $number-circle-size;
249
+ width: em($number-circle-size, 16);
250
+ height: em($number-circle-size, 16);
200
251
  color: govuk-colour("black");
201
252
  background: govuk-colour("white");
202
253
  border-radius: 100px;
@@ -204,31 +255,44 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
204
255
 
205
256
  .gem-c-step-nav--large & {
206
257
  @include govuk-media-query($from: tablet) {
207
- top: govuk-spacing(3);
208
- width: $number-circle-size-large;
209
- height: $number-circle-size-large;
258
+ top: 11px;
259
+ width: em($number-circle-size-large, 19);
260
+ height: em($number-circle-size-large, 19);
210
261
  }
211
262
  }
212
263
  }
213
264
 
214
265
  .gem-c-step-nav__circle--number {
215
- @include step-nav-font(16, $weight: bold, $line-height: 23px);
266
+ @include step-nav-font(16, $weight: bold, $line-height: 29px);
216
267
  border: solid $stroke-width govuk-colour("mid-grey", $legacy: "grey-2");
217
268
 
218
269
  .gem-c-step-nav--large & {
219
- @include step-nav-font(16, $tablet-size: 19, $weight: bold, $line-height: 23px, $tablet-line-height: 30px);
270
+ @include step-nav-font(16, $tablet-size: 19, $weight: bold, $line-height: 25px, $tablet-line-height: 34px);
271
+ }
220
272
 
221
- @include govuk-media-query($from: tablet) {
222
- border-width: $stroke-width-large;
273
+ .gem-c-step-nav__step--active & {
274
+ background-color: govuk-colour("black");
275
+
276
+ .gem-c-step-nav__circle-background {
277
+ text-shadow: none;
278
+ color: govuk-colour("white");
223
279
  }
224
280
  }
225
281
  }
226
282
 
227
283
  .gem-c-step-nav__circle--logic {
228
- @include step-nav-font(16, $weight: bold, $line-height: 28px);
284
+ @include step-nav-font(19, $weight: bold, $line-height: 28px);
285
+ left: 3px;
286
+ width: em($number-circle-size, 19);
287
+ height: em($number-circle-size, 19);
229
288
 
230
289
  .gem-c-step-nav--large & {
231
- @include step-nav-font(16, $tablet-size: 19, $weight: bold, $line-height: 28px, $tablet-line-height: 34px);
290
+ @include step-nav-font(19, $tablet-size: 24, $weight: bold, $line-height: 28px, $tablet-line-height: 34px);
291
+
292
+ @include govuk-media-query($from: tablet) {
293
+ width: em($number-circle-size-large, 24);
294
+ height: em($number-circle-size-large, 24);
295
+ }
232
296
  }
233
297
  }
234
298
 
@@ -252,21 +316,19 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
252
316
  }
253
317
 
254
318
  .gem-c-step-nav__header {
255
- padding: govuk-spacing(1) 0 govuk-spacing(3);
256
319
  border-top: $top-border;
320
+ padding: govuk-spacing(1) 0 govuk-spacing(6);
257
321
 
258
- .gem-c-step-nav--active & {
259
- cursor: pointer;
322
+ .gem-c-step-nav--large & {
323
+ padding-top: govuk-spacing(2);
260
324
  }
261
325
 
262
- .gem-c-step-nav__button {
263
- &:focus {
264
- @include govuk-focused-text;
326
+ .js-enabled & {
327
+ padding: 0;
328
+ }
265
329
 
266
- .gem-c-step-nav__toggle-link {
267
- @include govuk-focused-text;
268
- }
269
- }
330
+ .gem-c-step-nav--active & {
331
+ cursor: pointer;
270
332
  }
271
333
 
272
334
  &:hover {
@@ -275,16 +337,10 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
275
337
  color: $govuk-link-colour;
276
338
  }
277
339
 
278
- .gem-c-step-nav__toggle-link {
340
+ .gem-c-step-nav__button-text {
279
341
  text-decoration: underline;
280
342
  }
281
343
  }
282
-
283
- .gem-c-step-nav--large & {
284
- @include govuk-media-query($from: tablet) {
285
- padding: govuk-spacing(2) 0 govuk-spacing(6);
286
- }
287
- }
288
344
  }
289
345
 
290
346
  .gem-c-step-nav__title {
@@ -302,6 +358,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
302
358
  display: block;
303
359
  color: $govuk-link-colour;
304
360
  text-transform: capitalize;
361
+ padding-bottom: govuk-spacing(6);
305
362
 
306
363
  .gem-c-step-nav--large & {
307
364
  @include step-nav-font(14, $tablet-size: 16, $line-height: 1.2);
@@ -311,6 +368,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
311
368
  .gem-c-step-nav__panel {
312
369
  @include govuk-text-colour;
313
370
  @include step-nav-font(16);
371
+ padding-bottom: govuk-spacing(5);
314
372
 
315
373
  .gem-c-step-nav--large & {
316
374
  @include step-nav-font(16, $tablet-size: 19);
@@ -411,7 +469,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
411
469
  &:before {
412
470
  left: -(govuk-spacing(9));
413
471
  margin-left: ($number-circle-size-large / 2);
414
- height: $stroke-width-large;
415
472
  }
416
473
  }
417
474
  }