govuk_publishing_components 24.9.1 → 24.10.1

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/pii.js +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +7 -0
  4. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +36 -6
  5. data/app/assets/javascripts/govuk_publishing_components/components/show-password.js +12 -0
  6. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +1 -1
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +34 -34
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -2
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +0 -8
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -37
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +1 -2
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +1 -11
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +4 -2
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +0 -1
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +0 -1
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +0 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +4 -4
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +0 -4
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +20 -20
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +0 -1
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +0 -4
  24. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +27 -24
  25. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
  26. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +17 -2
  27. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +1 -0
  28. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +1 -1
  29. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -0
  30. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -0
  31. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +1 -0
  32. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +19 -16
  33. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +1 -0
  34. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +30 -27
  35. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -0
  36. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -0
  37. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -0
  38. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +26 -21
  39. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -0
  40. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +19 -16
  41. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_summary.scss +21 -18
  42. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -0
  43. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -0
  44. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -0
  45. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss +2 -0
  46. data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +15 -0
  47. data/app/views/govuk_publishing_components/component_guide/index.html.erb +2 -2
  48. data/app/views/govuk_publishing_components/component_guide/show.html.erb +1 -1
  49. data/app/views/govuk_publishing_components/components/_accordion.html.erb +25 -0
  50. data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
  51. data/app/views/govuk_publishing_components/components/_highlight_boxes.html.erb +1 -1
  52. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +3 -3
  53. data/app/views/govuk_publishing_components/components/_metadata.html.erb +6 -6
  54. data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
  55. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +3 -3
  56. data/app/views/govuk_publishing_components/components/_print_link.html.erb +2 -2
  57. data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -1
  58. data/app/views/govuk_publishing_components/components/_show_password.html.erb +2 -0
  59. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +4 -4
  60. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +5 -5
  61. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +4 -4
  62. data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
  63. data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +1 -1
  64. data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +9 -27
  65. data/app/views/govuk_publishing_components/components/docs/accordion.yml +73 -73
  66. data/app/views/govuk_publishing_components/components/docs/show_password.yml +10 -0
  67. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +5 -0
  68. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +1 -1
  69. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
  70. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +2 -2
  71. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +4 -3
  72. data/config/locales/cy.yml +0 -5
  73. data/config/locales/en.yml +11 -8
  74. data/lib/govuk_publishing_components/version.rb +1 -1
  75. metadata +36 -3
  76. data/app/assets/javascripts/component_guide/visual-regression.js +0 -71
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed769524a5b5079bce70c275a1cb341e287f5575bdb669b389b045f3aa79e50c
4
- data.tar.gz: bf256f385c94da52726c3685d92f42239f08347d9f6506930f5773839ea81b8e
3
+ metadata.gz: 5314a0b0efdfbb0c6f6c892958401165121c5350c5dacf5a74efbc42772702f3
4
+ data.tar.gz: 205e88be5a91f61d95fc5ad8ac741a5ad07c886372c415820776cbccb0dc52c7
5
5
  SHA512:
6
- metadata.gz: b95c734d8d88b6193ce60fb522787b947b6cefd2d5d35dfa13eb681786155689714b1838f7d67aa6a3fcdf222388a72216a1ec9db78bdf854429356673225026
7
- data.tar.gz: f94cb6822b42112e4bc47516a27ffdc302163da8b27c01f9be865f06bdaad146e6d346609bd570f6197993af8e9044aec51deb59042e1a33aa2b1ef0732169c2
6
+ metadata.gz: 8ffaca1d426b22f545f48123238214fcb6cebc6500d309b56cfadb7242acdca54557819c3382eab6bf77287fd24fb26f9e26912fc7b2210dbb0d38955cb60a60
7
+ data.tar.gz: ee07a7beae52e317747039ed002271f0526afdd126b7b8de58b2d624100bebf79967c2d0188d835c99021d70f3f3f6d19a8407185822cc16452a25cd8f886335
@@ -5,7 +5,7 @@
5
5
 
6
6
  var GOVUK = global.GOVUK || {}
7
7
  var EMAIL_PATTERN = /[^\s=/?&]+(?:@|%40)[^\s=/?&]+/g
8
- var POSTCODE_PATTERN = /[A-PR-UWYZ][A-HJ-Z]?[0-9][0-9A-HJKMNPR-Y]?(?:[\s+]|%20)*[0-9](?!refund)[ABD-HJLNPQ-Z]{2,3}/gi
8
+ var POSTCODE_PATTERN = /\b[A-PR-UWYZ][A-HJ-Z]?[0-9][0-9A-HJKMNPR-Y]?(?:[\s+]|%20)*[0-9](?!refund)[ABD-HJLNPQ-Z]{2,3}\b/gi
9
9
  var DATE_PATTERN = /\d{4}(-?)\d{2}(-?)\d{2}/g
10
10
  var ESCAPE_REGEX_PATTERN = /[|\\{}()[\]^$+*?.]/g
11
11
 
@@ -433,6 +433,13 @@
433
433
  ['Percent', 60],
434
434
  ['Percent', 80],
435
435
  ['Percent', 100]
436
+ ],
437
+ '/get-coronavirus-test': [
438
+ ['Percent', 20],
439
+ ['Percent', 40],
440
+ ['Percent', 60],
441
+ ['Percent', 80],
442
+ ['Percent', 100]
436
443
  ]
437
444
  }
438
445
 
@@ -31,7 +31,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
31
31
  this.upChevonIconClass = 'gem-c-accordion-nav__chevron'
32
32
  this.downChevonIconClass = 'gem-c-accordion-nav__chevron--down'
33
33
 
34
- // Indicate that js has worked
34
+ // Translated component content and language attribute pulled from data attributes
35
+ this.$module.actions = {}
36
+ this.$module.actions.locale = this.$module.getAttribute('data-locale')
37
+ this.$module.actions.showText = this.$module.getAttribute('data-show-text')
38
+ this.$module.actions.hideText = this.$module.getAttribute('data-hide-text')
39
+ this.$module.actions.showAllText = this.$module.getAttribute('data-show-all-text')
40
+ this.$module.actions.hideAllText = this.$module.getAttribute('data-hide-all-text')
41
+ this.$module.actions.thisSectionVisuallyHidden = this.$module.getAttribute('data-this-section-visually-hidden')
42
+
43
+ // Indicate that JavaScript has worked
35
44
  this.$module.classList.add('gem-c-accordion--active')
36
45
 
37
46
  this.initControls()
@@ -117,7 +126,11 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
117
126
  // Build additional copy for assistive technology
118
127
  var srAdditionalCopy = document.createElement('span')
119
128
  srAdditionalCopy.classList.add('govuk-visually-hidden')
120
- srAdditionalCopy.innerHTML = ' this section'
129
+ srAdditionalCopy.innerHTML = this.$module.actions.thisSectionVisuallyHidden
130
+
131
+ if (this.$module.actions.locale) {
132
+ srAdditionalCopy.lang = this.filterLocale('this_section_visually_hidden')
133
+ }
121
134
 
122
135
  // Build additional wrapper for toggle text, place icon after wrapped text.
123
136
  var wrapperShowHideIcon = document.createElement('span')
@@ -178,12 +191,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
178
191
  var icon = section.querySelector('.' + this.upChevonIconClass)
179
192
  var showHideText = section.querySelector('.' + this.sectionShowHideTextClass)
180
193
  var button = section.querySelector('.' + this.sectionButtonClass)
181
- var newButtonText = expanded ? 'Hide' : 'Show'
194
+ var newButtonText = expanded ? this.$module.actions.hideText : this.$module.actions.showText
182
195
 
183
196
  showHideText.innerHTML = newButtonText
184
197
  button.setAttribute('aria-expanded', expanded)
185
198
  button.classList.add(this.toggleLinkClass)
186
199
 
200
+ if (this.$module.actions.locale) {
201
+ showHideText.lang = this.filterLocale(expanded ? 'hide_text' : 'show_text')
202
+ }
203
+
187
204
  // Swap icon, change class
188
205
  if (expanded) {
189
206
  section.classList.add(this.sectionExpandedClass)
@@ -218,10 +235,15 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
218
235
  GemAccordion.prototype.updateOpenAllButton = function (expanded) {
219
236
  var icon = this.openAllButton.querySelector('.' + this.upChevonIconClass)
220
237
  var openAllCopy = this.openAllButton.querySelector('.' + this.openAllTextClass)
221
- var newButtonText = expanded ? 'Hide all sections' : 'Show all sections'
238
+ var newButtonText = expanded ? this.$module.actions.hideAllText : this.$module.actions.showAllText
239
+
222
240
  this.openAllButton.setAttribute('aria-expanded', expanded)
223
241
  openAllCopy.innerHTML = newButtonText
224
242
 
243
+ if (this.$module.actions.locale) {
244
+ openAllCopy.lang = this.filterLocale(expanded ? 'hide_all_text' : 'show_all_text')
245
+ }
246
+
225
247
  // Swap icon, toggle class
226
248
  if (expanded) {
227
249
  icon.classList.remove(this.downChevonIconClass)
@@ -304,8 +326,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
304
326
  // Adding an event listener to all anchor link a tags in an accordion is risky but we circumvent this risk partially by only being a layer of accordion behaviour instead of any sort of change to link behaviour
305
327
  GemAccordion.prototype.addEventListenersForAnchors = function () {
306
328
  var links = this.$module.querySelectorAll('.' + this.sectionInnerContent + ' a[href*="#"]')
307
-
308
- links.forEach(function (link) {
329
+ nodeListForEach(links, function (link) {
309
330
  if (link.pathname === window.location.pathname) {
310
331
  link.addEventListener('click', this.openForAnchor.bind(this, link.hash.split('#')[1]))
311
332
  }
@@ -329,5 +350,14 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
329
350
  return target
330
351
  }
331
352
 
353
+ GemAccordion.prototype.filterLocale = function (key) {
354
+ if (this.$module.actions.locale && this.$module.actions.locale.indexOf('{') !== -1) {
355
+ var locales = JSON.parse(this.$module.actions.locale)
356
+ return locales[key]
357
+ } else if (this.$module.actions.locale) {
358
+ return this.$module.actions.locale
359
+ }
360
+ }
361
+
332
362
  Modules.GemAccordion = GemAccordion
333
363
  })(window.GOVUK.Modules)
@@ -41,6 +41,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
41
41
  this.wrapper.insertBefore(this.statusText, this.showHide.nextSibling)
42
42
 
43
43
  this.showHide.addEventListener('click', this.$module.togglePassword)
44
+ this.moveDataAttributesToButton()
44
45
 
45
46
  this.parentForm = this.input.form
46
47
  var disableFormSubmitCheck = this.$module.getAttribute('data-disable-form-submit-check')
@@ -65,5 +66,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
65
66
  this.input.setAttribute('type', 'password')
66
67
  }
67
68
 
69
+ ShowPassword.prototype.moveDataAttributesToButton = function () {
70
+ var attrs = this.input.attributes
71
+ for (var i = attrs.length; i >= 0; i--) {
72
+ var attr = attrs[i]
73
+ if (attr && /^data-button/.test(attr.name)) {
74
+ this.showHide.setAttribute(attr.name.replace('-button', ''), attr.value)
75
+ this.input.removeAttribute(attr.name)
76
+ }
77
+ }
78
+ }
79
+
68
80
  Modules.ShowPassword = ShowPassword
69
81
  })(window.GOVUK.Modules)
@@ -188,7 +188,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
188
188
  toggleStatus.classList.add('govuk-visually-hidden', 'mc-toggle-status')
189
189
  toggleStatus.setAttribute('role', 'alert')
190
190
 
191
- link.classList.add('mc-toggle-button')
191
+ link.classList.add('govuk-body-s', 'mc-toggle-button')
192
192
  link.appendChild(toggleText)
193
193
  link.appendChild(toggleStatus)
194
194
 
@@ -68,17 +68,17 @@ $gem-c-accordion-bottom-border-width: 1px;
68
68
  display: inline-block;
69
69
  box-sizing: border-box;
70
70
  position: relative;
71
- width: em(20, 14);
72
- height: em(20, 14);
73
- margin-left: em(5, 14);
74
- border: em(1, 14) solid;
75
- border-radius: em(100, 14);
71
+ width: govuk-em(20, 14);
72
+ height: govuk-em(20, 14);
73
+ margin-left: govuk-em(5, 14);
74
+ border: govuk-em(1, 14) solid;
75
+ border-radius: govuk-em(100, 14);
76
76
  // Main icon size across views, yet keep responsive for zoom
77
77
  @include govuk-media-query($from: tablet) {
78
- width: em(20, 16);
79
- height: em(20, 16);
80
- margin-left: em(5, 16);
81
- border: em(1, 16) solid;
78
+ width: govuk-em(20, 16);
79
+ height: govuk-em(20, 16);
80
+ margin-left: govuk-em(5, 16);
81
+ border: govuk-em(1, 16) solid;
82
82
  }
83
83
 
84
84
  &:after {
@@ -87,20 +87,20 @@ $gem-c-accordion-bottom-border-width: 1px;
87
87
  box-sizing: border-box;
88
88
  position: absolute;
89
89
  overflow: visible;
90
- width: em(6, 14);
91
- height: em(6, 14);
92
- border-top: em(2, 14) solid;
93
- border-right: em(2, 14) solid;
90
+ width: govuk-em(6, 14);
91
+ height: govuk-em(6, 14);
92
+ border-top: govuk-em(2, 14) solid;
93
+ border-right: govuk-em(2, 14) solid;
94
94
  transform: rotate(-45deg);
95
- left: em(6, 14);
96
- bottom: em(5, 14);
95
+ left: govuk-em(6, 14);
96
+ bottom: govuk-em(5, 14);
97
97
  @include govuk-media-query($from: tablet) {
98
- width: em(6, 16);
99
- height: em(6, 16);
100
- border-top: em(2, 16) solid;
101
- border-right: em(2, 16) solid;
102
- left: em(6, 16);
103
- bottom: em(5, 16);
98
+ width: govuk-em(6, 16);
99
+ height: govuk-em(6, 16);
100
+ border-top: govuk-em(2, 16) solid;
101
+ border-right: govuk-em(2, 16) solid;
102
+ left: govuk-em(6, 16);
103
+ bottom: govuk-em(5, 16);
104
104
  }
105
105
  }
106
106
  }
@@ -227,12 +227,12 @@ $gem-c-accordion-bottom-border-width: 1px;
227
227
 
228
228
  // Setting width of the text, so the icon doesn't shift (left / right) when toggled
229
229
  .gem-c-accordion__toggle-text {
230
- min-width: em(40, 16);
230
+ min-width: govuk-em(40, 16);
231
231
  display: inline-block;
232
232
  }
233
233
 
234
234
  .gem-c-accordion__open-all-text {
235
- min-width: em(120, 16);
235
+ min-width: govuk-em(120, 16);
236
236
  display: inline-block;
237
237
  text-align: left;
238
238
  }
@@ -277,20 +277,20 @@ $gem-c-accordion-bottom-border-width: 1px;
277
277
 
278
278
  // Reduce Chevron size
279
279
  .gem-c-accordion-nav__chevron {
280
- width: em(20, 14);
281
- height: em(20, 14);
282
- margin-left: em(5, 14);
283
- border: em(1, 14) solid;
284
- border-radius: em(100, 14);
280
+ width: govuk-em(20, 14);
281
+ height: govuk-em(20, 14);
282
+ margin-left: govuk-em(5, 14);
283
+ border: govuk-em(1, 14) solid;
284
+ border-radius: govuk-em(100, 14);
285
285
  transform: scale(.875);
286
286
 
287
287
  &:after {
288
- width: em(6, 14);
289
- height: em(6, 14);
290
- border-top: em(2, 14) solid;
291
- border-right: em(2, 14) solid;
292
- left: em(6, 14);
293
- bottom: em(5, 14);
288
+ width: govuk-em(6, 14);
289
+ height: govuk-em(6, 14);
290
+ border-top: govuk-em(2, 14) solid;
291
+ border-right: govuk-em(2, 14) solid;
292
+ left: govuk-em(6, 14);
293
+ bottom: govuk-em(5, 14);
294
294
  }
295
295
  }
296
296
 
@@ -1,5 +1,3 @@
1
- $gem-hover-dark-background: #dddcdb;
2
-
3
1
  .gem-c-action-link {
4
2
  display: table;
5
3
 
@@ -1,13 +1,5 @@
1
1
  @import "govuk/components/button/button";
2
2
 
3
- $gem-secondary-button-colour: #00823b;
4
- $gem-secondary-button-hover-colour: darken($gem-secondary-button-colour, 5%);
5
- $gem-secondary-button-background-colour: govuk-colour("white");
6
- $gem-secondary-button-hover-background-colour: govuk-colour("light-grey", $legacy: "grey-4");
7
-
8
- $gem-quiet-button-colour: govuk-colour("dark-grey", $legacy: "grey-1");
9
- $gem-quiet-button-hover-colour: darken($gem-quiet-button-colour, 5%);
10
-
11
3
  // Because govuk-frontend adds a responsive bottom margin by default for each component
12
4
  // we reset it to zero so we can set it separately using `gem-c-button--bottom-margin`
13
5
  // If we decide to use responsive margins consistently across components we can remove this
@@ -1,12 +1,10 @@
1
1
  $transition-campaign-red: #ff003b;
2
- $transition-campaign-dark-blue: #1e1348;
3
2
 
4
3
  .gem-c-contextual-sidebar__brexit-related-links {
5
4
  border-top: 2px solid $govuk-brand-colour;
6
5
  }
7
6
 
8
7
  .gem-c-contextual-sidebar__brexit-heading {
9
- @extend %govuk-heading-s;
10
8
  margin-top: govuk-spacing(3);
11
9
  margin-bottom: govuk-spacing(2);
12
10
  }
@@ -24,45 +22,10 @@ $transition-campaign-dark-blue: #1e1348;
24
22
  }
25
23
 
26
24
  .gem-c-contextual-sidebar__brexit-text {
27
- @extend %govuk-link;
28
25
  @include govuk-font(16);
29
-
30
- margin-top: 0;
31
26
  margin-bottom: govuk-spacing(1);
32
- text-decoration: underline;
33
-
34
27
  @include govuk-media-query($from: tablet) {
35
28
  margin-bottom: govuk-spacing(2);
36
29
  }
37
30
  }
38
31
  }
39
-
40
- .gem-c-contextual-sidebar__brexit-cta:focus {
41
- .gem-c-contextual-sidebar__brexit-text {
42
- text-decoration: none;
43
- }
44
- }
45
-
46
- .gem-c-contextual-sidebar__take-action-traffic-lights {
47
- text-align: left;
48
- margin-bottom: govuk-spacing(2);
49
- }
50
-
51
- .gem-c-contextual-sidebar__take-action-traffic-lights > li {
52
- white-space: nowrap;
53
- display: inline;
54
- margin-right: 7px;
55
- margin-bottom: govuk-spacing(1);
56
- }
57
-
58
- .gem-c-contextual-sidebar__take-action-traffic-lists-icon {
59
- vertical-align: middle;
60
- margin-top: -2px;
61
- width: 22px;
62
- margin-right: 2px;
63
- }
64
-
65
- .gem-c-contextual-sidebar__take-action-traffic-lists-text {
66
- @include govuk-font($size: 19, $weight: bold, $line-height: 2);
67
- vertical-align: middle;
68
- }
@@ -21,6 +21,7 @@
21
21
  @import "govspeak/typography";
22
22
  @import "govspeak/warning-callout";
23
23
 
24
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
24
25
  .gem-c-govspeak {
25
26
  &.direction-rtl {
26
27
  direction: rtl;
@@ -50,11 +50,10 @@
50
50
  }
51
51
 
52
52
  .gem-c-highlight-boxes__title {
53
- @extend %govuk-link;
54
53
  @include govuk-font(19, $weight: bold);
55
54
  display: block;
56
55
  text-decoration: underline;
57
- margin-bottom: 5px;
56
+ margin-bottom: govuk-spacing(1);
58
57
  }
59
58
 
60
59
  .gem-c-highlight-boxes--inverse .gem-c-highlight-boxes__title {
@@ -33,7 +33,7 @@
33
33
  .gem-c-layout-header--search-left {
34
34
  .gem-c-header__menu-button.govuk-header__menu-button {
35
35
  margin-top: - govuk-spacing(7);
36
- left: 0;
36
+ left: govuk-spacing(3);
37
37
  }
38
38
 
39
39
  .gem-c-header__nav-wrapper {
@@ -78,16 +78,6 @@
78
78
  }
79
79
  }
80
80
 
81
- @include govuk-compatibility(govuk_template) {
82
- .gem-c-layout-header__search.govuk-grid-column-one-third-from-desktop,
83
- .gem-c-layout-header__logo.govuk-grid-column-one-third-from-desktop,
84
- .gem-c-layout-header__search.govuk-grid-column-one-third,
85
- .gem-c-layout-header__logo.govuk-grid-column-two-thirds {
86
- padding-right: 0;
87
- padding-left: 0;
88
- }
89
- }
90
-
91
81
  .gem-c-layout-header__logo,
92
82
  .gem-c-layout-header__search {
93
83
  @include govuk-media-query($until: "tablet") {
@@ -6,7 +6,7 @@
6
6
  clear: both;
7
7
  border: $govuk-border-width solid govuk-colour("blue");
8
8
 
9
- .govuk-govspeak, {
9
+ .govuk-govspeak {
10
10
  p:last-child {
11
11
  margin-bottom: 0;
12
12
  }
@@ -27,7 +27,9 @@
27
27
  }
28
28
 
29
29
  a {
30
- @extend %govuk-link;
30
+ @include govuk-link-common;
31
+ @include govuk-link-style-default;
32
+ @include govuk-link-print-friendly;
31
33
  }
32
34
  }
33
35
 
@@ -18,7 +18,6 @@
18
18
  }
19
19
 
20
20
  .gem-c-pagination__link {
21
- @extend %govuk-link;
22
21
  display: block;
23
22
  text-decoration: none;
24
23
  padding-bottom: govuk-spacing(4);
@@ -41,7 +41,6 @@ $gem-c-print-link-background-height: 18px;
41
41
  }
42
42
 
43
43
  .gem-c-print-link__button {
44
- @extend %govuk-body-s;
45
44
  border: 1px solid $govuk-border-colour;
46
45
  color: $govuk-link-colour;
47
46
  cursor: pointer;
@@ -66,7 +66,6 @@
66
66
  }
67
67
 
68
68
  .gem-c-related-navigation__section-link {
69
- @extend %govuk-link;
70
69
  font-weight: bold;
71
70
 
72
71
  @include govuk-template-link-focus-override;