govuk_publishing_components 23.15.0 → 24.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +0 -4
  3. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +23 -14
  4. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
  5. data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -2
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +4 -4
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +101 -48
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +8 -8
  9. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +0 -5
  10. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +2 -2
  11. data/app/views/govuk_publishing_components/components/_document_list.html.erb +10 -1
  12. data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +5 -0
  13. data/app/views/govuk_publishing_components/components/docs/document_list.yml +18 -0
  14. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +3 -3
  15. data/config/initializers/assets.rb +0 -1
  16. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +61 -2
  17. data/lib/govuk_publishing_components/version.rb +1 -1
  18. data/node_modules/govuk-frontend/govuk/all.js +1 -1
  19. data/node_modules/govuk-frontend/govuk/components/_all.scss +1 -0
  20. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +10 -10
  21. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +2 -2
  22. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +2 -0
  23. data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +1 -0
  24. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +1 -1
  25. data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +13 -0
  26. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
  27. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +51 -0
  28. data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +425 -0
  29. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +132 -0
  30. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro.njk +3 -0
  31. data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +63 -0
  32. data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +2 -2
  33. data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +18 -18
  34. data/node_modules/govuk-frontend/govuk/components/header/template.njk +4 -4
  35. data/node_modules/govuk-frontend/govuk/components/table/_index.scss +21 -0
  36. data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +2 -2
  37. data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
  38. data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +94 -0
  39. data/node_modules/govuk-frontend/package.json +1 -1
  40. metadata +9 -17
  41. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg +0 -4
  42. data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small.svg +0 -4
  43. data/app/assets/javascripts/govuk_publishing_components/components/header.js +0 -8
  44. data/app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js +0 -31
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_chevron-banner.scss +0 -138
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_list.scss +0 -1
  47. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +0 -27
  48. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_back-arrow.scss +0 -13
  49. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_clearfix.scss +0 -8
  50. data/app/views/govuk_publishing_components/components/_chevron_banner.html.erb +0 -19
  51. data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +0 -85
  52. data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +0 -33
  53. data/app/views/govuk_publishing_components/components/docs/chevron_banner.yml +0 -33
  54. data/app/views/govuk_publishing_components/components/docs/subscription-links.yml +0 -103
  55. data/app/views/govuk_publishing_components/components/docs/translation-nav.yml +0 -139
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcb27613b799a95856f3a2125b6e5a95a0a6ef79dbb0b51b3c96abbcafbcc8ae
4
- data.tar.gz: ce5e6a4c647af7b0260ad3e3258d1edae02607a129d1de4153cb89b8fdc24eb2
3
+ metadata.gz: aba99b9b513b88a9b3ac310bdca5299af17ff94d6c296a13e8087deb510ddf64
4
+ data.tar.gz: 9238695c7fac3e53a47cda06d2de2114b7036dd805f9acba97dfc91c13151cdb
5
5
  SHA512:
6
- metadata.gz: c581512609cf6841314030d6d2ad34a930208b84cd769561b80913579e788b6b964f2b1c4feec07087ee8f5075cbda98b31dda749fc21606315ba34d0b46200d
7
- data.tar.gz: 5b11f1c74f5045f23afc9e393b77892eb2089953dfc402157cd39efbcf72b876b491a6897c51d08d54e3575f7651b7e4ef63dec194bf50975532b3c1868fc35c
6
+ metadata.gz: 8c39fe32ea761ab5d7a4c01752430b909c96947c3e8dfc9126071392a2ec10234f1948f1a4ca8724cb379c13ed712b361cf2de68f71263d4b80010043add2ba3
7
+ data.tar.gz: 53e5a2d17340534140eedd509128853c27ea1c3633110c2039f7afd9f363fcbc3f152c73829cdd32a291867b655501f58b53a8a442bcb401dc4052073c7afb23
@@ -85,10 +85,6 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
85
85
  this.$module.cookieBannerConfirmationMessage.style.display = 'block'
86
86
  }
87
87
 
88
- CookieBanner.prototype.listenForCrossOriginMessages = function () {
89
- window.addEventListener('message', this.receiveMessage.bind(this), false)
90
- }
91
-
92
88
  CookieBanner.prototype.isInCookiesPage = function () {
93
89
  return window.location.pathname === '/help/cookies'
94
90
  }
@@ -40,13 +40,13 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
40
40
  this.$module.sessionStoreLink = this.$module.sessionStoreLink + '_' + this.$module.uniqueId
41
41
  }
42
42
 
43
- this.$module.upChevronSvg = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="gem-c-step-nav__chevron">' +
44
- '<path d="M19.5 10C19.5 15.2467 15.2467 19.5 10 19.5C4.75329 19.5 0.499997 15.2467 0.499998 10C0.499999 4.7533 4.7533 0.500001 10 0.500002C15.2467 0.500003 19.5 4.7533 19.5 10Z" stroke="#1D70B8"/>' +
45
- '<path d="M6.32617 12.3262L10 8.65234L13.6738 12.3262" stroke="#1D70B8" stroke-width="2"/>' +
43
+ this.$module.upChevronSvg = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">' +
44
+ '<path class="gem-c-step-nav__chevron-stroke" d="M19.5 10C19.5 15.2467 15.2467 19.5 10 19.5C4.75329 19.5 0.499997 15.2467 0.499998 10C0.499999 4.7533 4.7533 0.500001 10 0.500002C15.2467 0.500003 19.5 4.7533 19.5 10Z" stroke="#1D70B8"/>' +
45
+ '<path class="gem-c-step-nav__chevron-stroke" d="M6.32617 12.3262L10 8.65234L13.6738 12.3262" stroke="#1D70B8" stroke-width="2"/>' +
46
46
  '</svg>'
47
- this.$module.downChevronSvg = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="gem-c-step-nav__chevron">' +
48
- '<path d="M0.499997 10C0.499998 4.75329 4.75329 0.499999 10 0.499999C15.2467 0.5 19.5 4.75329 19.5 10C19.5 15.2467 15.2467 19.5 10 19.5C4.75329 19.5 0.499997 15.2467 0.499997 10Z" stroke="#1D70B8"/>' +
49
- '<path d="M13.6738 8.67383L10 12.3477L6.32617 8.67383" stroke="#1D70B8" stroke-width="2"/>' +
47
+ this.$module.downChevronSvg = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">' +
48
+ '<path class="gem-c-step-nav__chevron-stroke" d="M0.499997 10C0.499998 4.75329 4.75329 0.499999 10 0.499999C15.2467 0.5 19.5 4.75329 19.5 10C19.5 15.2467 15.2467 19.5 10 19.5C4.75329 19.5 0.499997 15.2467 0.499997 10Z" stroke="#1D70B8"/>' +
49
+ '<path class="gem-c-step-nav__chevron-stroke" d="M13.6738 8.67383L10 12.3477L6.32617 8.67383" stroke="#1D70B8" stroke-width="2"/>' +
50
50
  '</svg>'
51
51
 
52
52
  var stepNavTracker = new this.StepNavTracker(this.$module.uniqueId, this.$module.totalSteps, this.$module.totalLinks)
@@ -76,8 +76,8 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
76
76
  var showall = document.createElement('div')
77
77
  showall.className = 'gem-c-step-nav__controls'
78
78
  showall.innerHTML = '<button aria-expanded="false" class="gem-c-step-nav__button gem-c-step-nav__button--controls js-step-controls-button">' +
79
- this.$module.downChevronSvg +
80
- this.$module.actions.showAllText +
79
+ '<span class="gem-c-step-nav__button-text gem-c-step-nav__button-text--all js-step-controls-button-text">' + this.$module.actions.showAllText + '</span>' +
80
+ '<span class="gem-c-step-nav__chevron js-step-controls-button-icon">' + this.$module.downChevronSvg + '</span>' +
81
81
  '</button>'
82
82
 
83
83
  var steps = this.$module.querySelectorAll('.gem-c-step-nav__steps')[0]
@@ -93,13 +93,20 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
93
93
  if (!thisel.querySelectorAll('.js-toggle-link').length) {
94
94
  var span = document.createElement('span')
95
95
  var showHideSpan = document.createElement('span')
96
+ var showHideSpanText = document.createElement('span')
97
+ var showHideSpanIcon = document.createElement('span')
96
98
  var commaSpan = document.createElement('span')
97
99
  var thisSectionSpan = document.createElement('span')
98
100
 
99
101
  showHideSpan.className = 'gem-c-step-nav__toggle-link js-toggle-link'
102
+ showHideSpanText.className = 'gem-c-step-nav__button-text js-toggle-link-text'
103
+ showHideSpanIcon.className = 'gem-c-step-nav__chevron js-toggle-link-icon'
100
104
  commaSpan.className = 'govuk-visually-hidden'
101
105
  thisSectionSpan.className = 'govuk-visually-hidden'
102
106
 
107
+ showHideSpan.appendChild(showHideSpanText)
108
+ showHideSpan.appendChild(showHideSpanIcon)
109
+
103
110
  commaSpan.innerHTML = ', '
104
111
  thisSectionSpan.innerHTML = ' this section'
105
112
 
@@ -351,12 +358,12 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
351
358
 
352
359
  Gemstepnav.prototype.setShowHideAllText = function () {
353
360
  var shownSteps = this.$module.querySelectorAll('.step-is-shown').length
361
+
354
362
  // Find out if the number of is-opens == total number of steps
355
- if (shownSteps === this.$module.totalSteps) {
356
- this.$module.showOrHideAllButton.innerHTML = this.$module.upChevronSvg + this.$module.actions.hideAllText
357
- } else {
358
- this.$module.showOrHideAllButton.innerHTML = this.$module.downChevronSvg + this.$module.actions.showAllText
359
- }
363
+ var shownStepsIsTotalSteps = shownSteps === this.$module.totalSteps
364
+
365
+ this.$module.showOrHideAllButton.querySelector('.js-step-controls-button-text').innerHTML = shownStepsIsTotalSteps ? this.$module.actions.hideAllText : this.$module.actions.showAllText
366
+ this.$module.showOrHideAllButton.querySelector('.js-step-controls-button-icon').innerHTML = shownStepsIsTotalSteps ? this.$module.upChevronSvg : this.$module.downChevronSvg
360
367
  }
361
368
 
362
369
  Gemstepnav.prototype.StepView = function (stepElement, $module) {
@@ -394,7 +401,9 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
394
401
 
395
402
  this.titleButton.setAttribute('aria-expanded', isShown)
396
403
  var showHideText = this.stepElement.querySelectorAll('.js-toggle-link')[0]
397
- showHideText.innerHTML = isShown ? this.upChevronSvg + this.hideText : this.downChevronSvg + this.showText
404
+
405
+ showHideText.querySelector('.js-toggle-link-text').innerHTML = isShown ? this.hideText : this.showText
406
+ showHideText.querySelector('.js-toggle-link-icon').innerHTML = isShown ? this.upChevronSvg : this.downChevronSvg
398
407
  }
399
408
 
400
409
  this.isShown = function () {
@@ -17,7 +17,6 @@
17
17
  @import "components/button";
18
18
  @import "components/character-count";
19
19
  @import "components/checkboxes";
20
- @import "components/chevron-banner";
21
20
  @import "components/contents-list";
22
21
  @import "components/contextual-guidance";
23
22
  @import "components/contextual-sidebar";
@@ -6,12 +6,10 @@
6
6
  @import "govuk/utilities/all";
7
7
  @import "govuk/overrides/all";
8
8
 
9
- @import "govuk_publishing_components/components/helpers/variables";
10
9
  @import "govuk_publishing_components/components/helpers/brand-colours";
11
10
  @import "govuk_publishing_components/components/helpers/link";
12
11
  @import "govuk_publishing_components/components/helpers/px-to-em";
13
12
  @import "govuk_publishing_components/components/mixins/govuk-template-link-focus-override";
14
13
  @import "govuk_publishing_components/components/mixins/media-down";
15
14
  @import "govuk_publishing_components/components/mixins/margins";
16
- @import "govuk_publishing_components/components/mixins/clearfix";
17
15
  @import "govuk_publishing_components/components/mixins/css3";
@@ -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
  }
@@ -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,31 @@ $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
+
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
+ }
114
162
  }
115
163
 
116
164
  .gem-c-step-nav__steps {
@@ -120,23 +168,23 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
120
168
 
121
169
  .gem-c-step-nav__step {
122
170
  position: relative;
123
- padding-left: govuk-spacing(6) + govuk-spacing(3);
171
+ padding-left: em(govuk-spacing(6) + govuk-spacing(3), 16);
124
172
  list-style: none;
125
173
 
126
174
  // line down the side of a step
127
175
  &:after {
128
176
  @include step-nav-vertical-line;
129
177
  @include step-nav-line-position;
130
- top: govuk-spacing(3);
178
+ top: em(govuk-spacing(3), 16);
131
179
  }
132
180
 
133
181
  .gem-c-step-nav--large & {
134
182
  @include govuk-media-query($from: tablet) {
135
- padding-left: govuk-spacing(9);
183
+ padding-left: em(govuk-spacing(9), 16);
136
184
 
137
185
  &:after { // stylelint-disable-line max-nesting-depth
138
186
  @include step-nav-line-position-large;
139
- top: govuk-spacing(6);
187
+ top: em(govuk-spacing(6), 16);
140
188
  }
141
189
  }
142
190
  }
@@ -170,7 +218,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
170
218
  &:before {
171
219
  margin-left: $number-circle-size-large / 4;
172
220
  width: $number-circle-size-large / 2;
173
- border-width: $stroke-width-large;
174
221
  }
175
222
 
176
223
  &:after {
@@ -193,10 +240,10 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
193
240
  box-sizing: border-box;
194
241
  position: absolute;
195
242
  z-index: 5;
196
- top: govuk-spacing(1);
243
+ top: 3px;
197
244
  left: 0;
198
- width: $number-circle-size;
199
- height: $number-circle-size;
245
+ width: em($number-circle-size, 16);
246
+ height: em($number-circle-size, 16);
200
247
  color: govuk-colour("black");
201
248
  background: govuk-colour("white");
202
249
  border-radius: 100px;
@@ -204,31 +251,44 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
204
251
 
205
252
  .gem-c-step-nav--large & {
206
253
  @include govuk-media-query($from: tablet) {
207
- top: govuk-spacing(3);
208
- width: $number-circle-size-large;
209
- height: $number-circle-size-large;
254
+ top: 11px;
255
+ width: em($number-circle-size-large, 19);
256
+ height: em($number-circle-size-large, 19);
210
257
  }
211
258
  }
212
259
  }
213
260
 
214
261
  .gem-c-step-nav__circle--number {
215
- @include step-nav-font(16, $weight: bold, $line-height: 23px);
262
+ @include step-nav-font(16, $weight: bold, $line-height: 29px);
216
263
  border: solid $stroke-width govuk-colour("mid-grey", $legacy: "grey-2");
217
264
 
218
265
  .gem-c-step-nav--large & {
219
- @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
+ }
220
268
 
221
- @include govuk-media-query($from: tablet) {
222
- 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");
223
275
  }
224
276
  }
225
277
  }
226
278
 
227
279
  .gem-c-step-nav__circle--logic {
228
- @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);
229
284
 
230
285
  .gem-c-step-nav--large & {
231
- @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
+ }
232
292
  }
233
293
  }
234
294
 
@@ -252,21 +312,19 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
252
312
  }
253
313
 
254
314
  .gem-c-step-nav__header {
255
- padding: govuk-spacing(1) 0 govuk-spacing(3);
256
315
  border-top: $top-border;
316
+ padding: govuk-spacing(1) 0 govuk-spacing(6);
257
317
 
258
- .gem-c-step-nav--active & {
259
- cursor: pointer;
318
+ .gem-c-step-nav--large & {
319
+ padding-top: govuk-spacing(2);
260
320
  }
261
321
 
262
- .gem-c-step-nav__button {
263
- &:focus {
264
- @include govuk-focused-text;
322
+ .js-enabled & {
323
+ padding: 0;
324
+ }
265
325
 
266
- .gem-c-step-nav__toggle-link {
267
- @include govuk-focused-text;
268
- }
269
- }
326
+ .gem-c-step-nav--active & {
327
+ cursor: pointer;
270
328
  }
271
329
 
272
330
  &:hover {
@@ -275,16 +333,10 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
275
333
  color: $govuk-link-colour;
276
334
  }
277
335
 
278
- .gem-c-step-nav__toggle-link {
336
+ .gem-c-step-nav__button-text {
279
337
  text-decoration: underline;
280
338
  }
281
339
  }
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
340
  }
289
341
 
290
342
  .gem-c-step-nav__title {
@@ -302,6 +354,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
302
354
  display: block;
303
355
  color: $govuk-link-colour;
304
356
  text-transform: capitalize;
357
+ padding-bottom: govuk-spacing(6);
305
358
 
306
359
  .gem-c-step-nav--large & {
307
360
  @include step-nav-font(14, $tablet-size: 16, $line-height: 1.2);
@@ -311,6 +364,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
311
364
  .gem-c-step-nav__panel {
312
365
  @include govuk-text-colour;
313
366
  @include step-nav-font(16);
367
+ padding-bottom: govuk-spacing(5);
314
368
 
315
369
  .gem-c-step-nav--large & {
316
370
  @include step-nav-font(16, $tablet-size: 19);
@@ -411,7 +465,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
411
465
  &:before {
412
466
  left: -(govuk-spacing(9));
413
467
  margin-left: ($number-circle-size-large / 2);
414
- height: $stroke-width-large;
415
468
  }
416
469
  }
417
470
  }