govuk_publishing_components 35.16.0 → 35.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/action-link-arrow--light.png +0 -0
  3. data/app/assets/images/govuk_publishing_components/action-link-arrow--light.svg +7 -0
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +2 -5
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +19 -15
  6. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-video-tracker.js +7 -1
  7. data/app/assets/javascripts/govuk_publishing_components/components/option-select.js +9 -9
  8. data/app/assets/stylesheets/component_guide/application.scss +6 -6
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +33 -15
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +3 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +3 -3
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +5 -5
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +1 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +1 -1
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +2 -2
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +5 -5
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +40 -35
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +1 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +24 -5
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +5 -0
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +23 -19
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +6 -6
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +2 -1
  25. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +3 -1
  26. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +4 -4
  27. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss +2 -2
  28. data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
  29. data/app/views/govuk_publishing_components/components/_attachment.html.erb +1 -1
  30. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +20 -10
  31. data/app/views/govuk_publishing_components/components/_metadata.html.erb +1 -1
  32. data/app/views/govuk_publishing_components/components/_option_select.html.erb +3 -3
  33. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +6 -6
  34. data/app/views/govuk_publishing_components/components/_search.html.erb +3 -0
  35. data/app/views/govuk_publishing_components/components/_share_links.html.erb +9 -9
  36. data/app/views/govuk_publishing_components/components/docs/action_link.yml +5 -0
  37. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +1 -0
  38. data/app/views/govuk_publishing_components/components/docs/search.yml +11 -0
  39. data/config/locales/ar.yml +1 -0
  40. data/config/locales/az.yml +1 -0
  41. data/config/locales/be.yml +1 -0
  42. data/config/locales/bg.yml +1 -0
  43. data/config/locales/bn.yml +1 -0
  44. data/config/locales/cs.yml +1 -0
  45. data/config/locales/cy.yml +1 -0
  46. data/config/locales/da.yml +1 -0
  47. data/config/locales/de.yml +1 -0
  48. data/config/locales/dr.yml +1 -0
  49. data/config/locales/el.yml +1 -0
  50. data/config/locales/en.yml +2 -1
  51. data/config/locales/es-419.yml +1 -0
  52. data/config/locales/es.yml +1 -0
  53. data/config/locales/et.yml +1 -0
  54. data/config/locales/fa.yml +1 -0
  55. data/config/locales/fi.yml +1 -0
  56. data/config/locales/fr.yml +1 -0
  57. data/config/locales/gd.yml +1 -0
  58. data/config/locales/gu.yml +1 -0
  59. data/config/locales/he.yml +1 -0
  60. data/config/locales/hi.yml +1 -0
  61. data/config/locales/hr.yml +1 -0
  62. data/config/locales/hu.yml +1 -0
  63. data/config/locales/hy.yml +1 -0
  64. data/config/locales/id.yml +1 -0
  65. data/config/locales/is.yml +1 -0
  66. data/config/locales/it.yml +1 -0
  67. data/config/locales/ja.yml +1 -0
  68. data/config/locales/ka.yml +1 -0
  69. data/config/locales/kk.yml +1 -0
  70. data/config/locales/ko.yml +1 -0
  71. data/config/locales/lt.yml +1 -0
  72. data/config/locales/lv.yml +1 -0
  73. data/config/locales/ms.yml +1 -0
  74. data/config/locales/mt.yml +1 -0
  75. data/config/locales/nl.yml +1 -0
  76. data/config/locales/no.yml +1 -0
  77. data/config/locales/pa-pk.yml +1 -0
  78. data/config/locales/pa.yml +1 -0
  79. data/config/locales/pl.yml +1 -0
  80. data/config/locales/ps.yml +1 -0
  81. data/config/locales/pt.yml +1 -0
  82. data/config/locales/ro.yml +1 -0
  83. data/config/locales/ru.yml +1 -0
  84. data/config/locales/si.yml +1 -0
  85. data/config/locales/sk.yml +1 -0
  86. data/config/locales/sl.yml +1 -0
  87. data/config/locales/so.yml +1 -0
  88. data/config/locales/sq.yml +1 -0
  89. data/config/locales/sr.yml +1 -0
  90. data/config/locales/sv.yml +1 -0
  91. data/config/locales/sw.yml +1 -0
  92. data/config/locales/ta.yml +1 -0
  93. data/config/locales/th.yml +1 -0
  94. data/config/locales/tk.yml +1 -0
  95. data/config/locales/tr.yml +1 -0
  96. data/config/locales/uk.yml +1 -0
  97. data/config/locales/ur.yml +1 -0
  98. data/config/locales/uz.yml +1 -0
  99. data/config/locales/vi.yml +1 -0
  100. data/config/locales/zh-hk.yml +1 -0
  101. data/config/locales/zh-tw.yml +1 -0
  102. data/config/locales/zh.yml +1 -0
  103. data/lib/govuk_publishing_components/presenters/contents_list_helper.rb +8 -0
  104. data/lib/govuk_publishing_components/presenters/meta_tags.rb +3 -0
  105. data/lib/govuk_publishing_components/version.rb +1 -1
  106. metadata +5 -3
@@ -182,7 +182,7 @@ $after-button-padding-left: govuk-spacing(4);
182
182
  }
183
183
  }
184
184
 
185
- &:after {
185
+ &::after {
186
186
  @include make-selectable-area-bigger;
187
187
  @include pseudo-underline($left: $after-link-padding, $right: $after-link-padding);
188
188
  }
@@ -193,14 +193,14 @@ $after-button-padding-left: govuk-spacing(4);
193
193
  font-size: govuk-px-to-rem(16px);
194
194
  height: govuk-spacing(4);
195
195
 
196
- &:before {
196
+ &::before {
197
197
  @include chevron(govuk-colour("white"), true);
198
198
  }
199
199
 
200
200
  &:hover {
201
201
  color: govuk-colour("mid-grey");
202
202
 
203
- &:after {
203
+ &::after {
204
204
  background: govuk-colour("mid-grey");
205
205
  }
206
206
  }
@@ -216,7 +216,7 @@ $after-button-padding-left: govuk-spacing(4);
216
216
  box-shadow: none;
217
217
  color: $govuk-focus-text-colour;
218
218
 
219
- &:after {
219
+ &::after {
220
220
  background: $govuk-focus-text-colour;
221
221
  }
222
222
  }
@@ -235,12 +235,12 @@ $after-button-padding-left: govuk-spacing(4);
235
235
  &:hover {
236
236
  color: govuk-colour("mid-grey");
237
237
 
238
- &:after {
238
+ &::after {
239
239
  background: govuk-colour("mid-grey");
240
240
  }
241
241
  }
242
242
 
243
- &:after {
243
+ &::after {
244
244
  background: none;
245
245
  }
246
246
  }
@@ -255,14 +255,14 @@ $after-button-padding-left: govuk-spacing(4);
255
255
  padding: 0;
256
256
  margin: 0;
257
257
 
258
- &:after {
258
+ &::after {
259
259
  @include pseudo-underline($left: $after-button-padding-left, $right: $after-button-padding-right, $width: 100%);
260
260
  }
261
261
  }
262
262
  // stylelint-enable max-nesting-depth
263
263
  }
264
264
 
265
- &:after {
265
+ &::after {
266
266
  @include make-selectable-area-bigger;
267
267
  }
268
268
  }
@@ -299,7 +299,7 @@ $after-button-padding-left: govuk-spacing(4);
299
299
  &:hover {
300
300
  background: govuk-colour("black");
301
301
 
302
- &:before {
302
+ &::before {
303
303
  left: 0;
304
304
  right: 0;
305
305
  }
@@ -308,12 +308,12 @@ $after-button-padding-left: govuk-spacing(4);
308
308
  &:focus {
309
309
  background: $govuk-focus-colour;
310
310
 
311
- &:before {
311
+ &::before {
312
312
  content: none;
313
313
  }
314
314
  }
315
315
 
316
- &:after {
316
+ &::after {
317
317
  left: 0;
318
318
  right: 0;
319
319
  width: 100%;
@@ -332,8 +332,8 @@ $after-button-padding-left: govuk-spacing(4);
332
332
  background: $govuk-focus-colour;
333
333
  }
334
334
 
335
- &:after,
336
- &:hover:after {
335
+ &::after,
336
+ &:hover::after {
337
337
  background: $govuk-focus-colour;
338
338
  }
339
339
  }
@@ -364,19 +364,19 @@ $after-button-padding-left: govuk-spacing(4);
364
364
  @include govuk-link-style-no-visited-state;
365
365
  @include govuk-link-style-no-underline;
366
366
 
367
- &:after {
367
+ &::after {
368
368
  @include pseudo-underline($left: $after-button-padding-left, $right: $after-button-padding-right);
369
369
  }
370
370
 
371
371
  &:hover {
372
372
  color: govuk-colour("mid-grey");
373
373
 
374
- &:after {
374
+ &::after {
375
375
  background: govuk-colour("mid-grey");
376
376
  }
377
377
 
378
378
  .gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
379
- &:before {
379
+ &::before {
380
380
  border-color: govuk-colour("mid-grey");
381
381
  }
382
382
  }
@@ -411,11 +411,11 @@ $after-button-padding-left: govuk-spacing(4);
411
411
  .gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
412
412
  color: govuk-colour("black");
413
413
 
414
- &:after {
414
+ &::after {
415
415
  background: govuk-colour("black");
416
416
  }
417
417
 
418
- &:before {
418
+ &::before {
419
419
  @include chevron(govuk-colour("black"), true);
420
420
  }
421
421
  }
@@ -428,22 +428,23 @@ $after-button-padding-left: govuk-spacing(4);
428
428
  box-shadow: none;
429
429
 
430
430
  &:hover {
431
- &:after {
431
+ &::after {
432
432
  background-color: govuk-colour("black");
433
433
  }
434
434
  }
435
435
 
436
- &:after {
436
+ &::after {
437
437
  background-color: govuk-colour("black");
438
438
  }
439
-
439
+ // stylelint-disable max-nesting-depth
440
440
  .gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
441
441
  border-color: $govuk-focus-colour;
442
442
 
443
- &:before {
443
+ &::before {
444
444
  @include chevron(govuk-colour("black"), true);
445
445
  }
446
446
  }
447
+ // stylelint-enable max-nesting-depth
447
448
  }
448
449
 
449
450
  // Undoes the :focus styles *only* for browsers that support :focus-visible.
@@ -453,16 +454,17 @@ $after-button-padding-left: govuk-spacing(4);
453
454
  box-shadow: none;
454
455
  color: govuk-colour("white");
455
456
 
457
+ // stylelint-disable max-nesting-depth
456
458
  &:hover {
457
459
  .gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
458
- &:before {
460
+ &::before {
459
461
  @include chevron(govuk-colour("mid-grey"), true);
460
462
  }
461
463
 
462
464
  color: govuk-colour("mid-grey");
463
465
  }
464
466
 
465
- &:after {
467
+ &::after {
466
468
  background: govuk-colour("mid-grey");
467
469
  }
468
470
  }
@@ -471,11 +473,12 @@ $after-button-padding-left: govuk-spacing(4);
471
473
  border-color: $button-pipe-colour;
472
474
 
473
475
  @include govuk-media-query($from: 360px) {
474
- &:before {
476
+ &::before {
475
477
  @include chevron(govuk-colour("white"), true);
476
478
  }
477
479
  }
478
480
  }
481
+ // stylelint-enable max-nesting-depth
479
482
  }
480
483
 
481
484
  // Open button modifier
@@ -485,7 +488,7 @@ $after-button-padding-left: govuk-spacing(4);
485
488
  @include govuk-focused-text;
486
489
  box-shadow: none;
487
490
 
488
- &:after {
491
+ &::after {
489
492
  background-color: govuk-colour("black");
490
493
  }
491
494
 
@@ -494,7 +497,7 @@ $after-button-padding-left: govuk-spacing(4);
494
497
  border-color: $govuk-focus-colour;
495
498
 
496
499
  @include govuk-media-query($from: 360px) {
497
- &:before {
500
+ &::before {
498
501
  @include chevron(govuk-colour("black"), true);
499
502
  @include prefixed-transform($rotate: 225deg, $translateY: 1px);
500
503
  }
@@ -505,7 +508,7 @@ $after-button-padding-left: govuk-spacing(4);
505
508
  @include focus-not-focus-visible {
506
509
  background: govuk-colour("light-grey");
507
510
 
508
- &:after {
511
+ &::after {
509
512
  background-color: $govuk-link-colour;
510
513
  }
511
514
 
@@ -514,7 +517,7 @@ $after-button-padding-left: govuk-spacing(4);
514
517
  border-color: govuk-colour("light-grey");
515
518
 
516
519
  @include govuk-media-query($from: 360px) {
517
- &:before {
520
+ &::before {
518
521
  @include chevron($govuk-link-colour);
519
522
  @include prefixed-transform($rotate: 225deg, $translateY: 1px);
520
523
  }
@@ -533,7 +536,7 @@ $after-button-padding-left: govuk-spacing(4);
533
536
  padding: govuk-spacing(1) govuk-spacing(4);
534
537
 
535
538
  @include govuk-media-query($from: 360px) {
536
- &:before {
539
+ &::before {
537
540
  @include chevron(govuk-colour("white"));
538
541
  }
539
542
  }
@@ -597,11 +600,13 @@ $after-button-padding-left: govuk-spacing(4);
597
600
  box-shadow: none;
598
601
  color: $govuk-focus-colour;
599
602
 
603
+ // stylelint-disable max-nesting-depth
600
604
  @include govuk-media-query($from: 360px) {
601
- &:before {
605
+ &::before {
602
606
  @include chevron($govuk-focus-colour, true);
603
607
  }
604
608
  }
609
+ // stylelint-enable max-nesting-depth
605
610
  }
606
611
 
607
612
  @include focus-not-focus-visible {
@@ -708,14 +713,14 @@ $after-button-padding-left: govuk-spacing(4);
708
713
  font-size: govuk-px-to-rem(16px);
709
714
  font-weight: bold;
710
715
 
711
- &:after {
716
+ &::after {
712
717
  @include make-selectable-area-bigger;
713
718
  }
714
719
 
715
720
  @include govuk-media-query($from: "desktop") {
716
721
  padding: 0;
717
722
 
718
- &:after {
723
+ &::after {
719
724
  @include make-selectable-area-bigger;
720
725
  }
721
726
  }
@@ -726,7 +731,7 @@ $after-button-padding-left: govuk-spacing(4);
726
731
  font-size: govuk-px-to-rem(16px);
727
732
  font-weight: bold;
728
733
 
729
- &:after {
734
+ &::after {
730
735
  @include make-selectable-area-bigger;
731
736
  height: calc(100% - 20px);
732
737
  }
@@ -756,7 +761,7 @@ $after-button-padding-left: govuk-spacing(4);
756
761
  font-size: govuk-px-to-rem(16px);
757
762
  padding: 0;
758
763
 
759
- &:after {
764
+ &::after {
760
765
  @include make-selectable-area-bigger;
761
766
  }
762
767
  }
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  // Extend the touch area of the button to span the heading
66
- &:after {
66
+ &::after {
67
67
  content: "";
68
68
  position: absolute;
69
69
  top: 0;
@@ -55,7 +55,7 @@ $large-input-size: 50px;
55
55
  }
56
56
  }
57
57
 
58
- %gem-c-search-input-focus {
58
+ @mixin gem-c-search-input-focus {
59
59
  outline: $govuk-focus-width solid $govuk-focus-colour;
60
60
  // Ensure outline appears outside of the element
61
61
  outline-offset: 0;
@@ -89,7 +89,7 @@ $large-input-size: 50px;
89
89
  }
90
90
 
91
91
  &:focus {
92
- @extend %gem-c-search-input-focus;
92
+ @include gem-c-search-input-focus;
93
93
  }
94
94
  }
95
95
 
@@ -168,10 +168,9 @@ $large-input-size: 50px;
168
168
  // Ensure outline appears outside of the element
169
169
  outline-offset: 0;
170
170
 
171
- // no need for black outline as there is enough contrast
172
- // with the blue background
173
171
  &:focus {
174
- box-shadow: none;
172
+ @include gem-c-search-input-focus;
173
+ box-shadow: inset 0 0 0 4px;
175
174
  }
176
175
  }
177
176
 
@@ -191,6 +190,17 @@ $large-input-size: 50px;
191
190
  }
192
191
  }
193
192
 
193
+ .gem-c-search--homepage {
194
+ .gem-c-search__submit {
195
+ background-color: #d2e2f1;
196
+ color: govuk-colour("blue");
197
+
198
+ &:hover {
199
+ background-color: lighten(#d2e2f1, 5%);
200
+ }
201
+ }
202
+ }
203
+
194
204
  .gem-c-search--on-white {
195
205
  .gem-c-search__submit {
196
206
  background-color: govuk-colour("blue");
@@ -211,6 +221,10 @@ $large-input-size: 50px;
211
221
  }
212
222
  }
213
223
 
224
+ .gem-c-search__label--white {
225
+ color: govuk-colour("white");
226
+ }
227
+
214
228
  .gem-c-search--no-border {
215
229
  .gem-c-search__label {
216
230
  color: govuk-colour("white");
@@ -218,6 +232,11 @@ $large-input-size: 50px;
218
232
 
219
233
  .gem-c-search__input[type="search"] {
220
234
  border: 0;
235
+
236
+ &:focus {
237
+ @include gem-c-search-input-focus;
238
+ box-shadow: inset 0 0 0 4px;
239
+ }
221
240
  }
222
241
 
223
242
  .js-enabled & {
@@ -37,6 +37,11 @@ $share-button-height: 30px;
37
37
  line-height: $share-button-height;
38
38
  }
39
39
 
40
+ .gem-c-share-links__svg {
41
+ width: 100%;
42
+ height: 100%;
43
+ }
44
+
40
45
  .direction-rtl {
41
46
  .gem-c-share-links__link {
42
47
  display: inline-block;
@@ -89,7 +89,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
89
89
  }
90
90
 
91
91
  // Create inner chevron arrow
92
- &:after {
92
+ &::after {
93
93
  content: "";
94
94
  box-sizing: border-box;
95
95
  display: block;
@@ -128,7 +128,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
128
128
  background: govuk-colour("black");
129
129
  }
130
130
 
131
- .gem-c-step-nav__chevron:after {
131
+ .gem-c-step-nav__chevron::after {
132
132
  color: govuk-colour("light-grey");
133
133
  }
134
134
 
@@ -145,7 +145,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
145
145
  background: govuk-colour("black");
146
146
  }
147
147
 
148
- .gem-c-step-nav__chevron:after {
148
+ .gem-c-step-nav__chevron::after {
149
149
  color: $govuk-focus-colour;
150
150
  }
151
151
 
@@ -234,7 +234,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
234
234
  list-style: none;
235
235
 
236
236
  // line down the side of a step
237
- &:after {
237
+ &::after {
238
238
  @include step-nav-vertical-line;
239
239
  @include step-nav-line-position;
240
240
  top: govuk-em(govuk-spacing(3), 16);
@@ -244,7 +244,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
244
244
  @include govuk-media-query($from: tablet) {
245
245
  padding-left: govuk-em(govuk-spacing(9), 16);
246
246
 
247
- &:after { // stylelint-disable-line max-nesting-depth
247
+ &::after { // stylelint-disable-line max-nesting-depth
248
248
  @include step-nav-line-position-large;
249
249
  top: govuk-em(govuk-spacing(6), 16);
250
250
  }
@@ -254,7 +254,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
254
254
 
255
255
  .gem-c-step-nav__step:last-child {
256
256
  // little dash at the bottom of the line
257
- &:before {
257
+ &::before {
258
258
  content: "";
259
259
  position: absolute;
260
260
  z-index: 6;
@@ -266,23 +266,23 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
266
266
  border-bottom: solid $stroke-width govuk-colour("mid-grey", $legacy: "grey-2");
267
267
  }
268
268
 
269
- &:after {
269
+ &::after {
270
270
  height: -webkit-calc(100% - #{govuk-spacing(3)}); // fallback for iphone 4
271
271
  height: calc(100% - #{govuk-spacing(3)});
272
272
  }
273
273
 
274
- .gem-c-step-nav__help:after {
274
+ .gem-c-step-nav__help::after {
275
275
  height: 100%;
276
276
  }
277
277
 
278
278
  .gem-c-step-nav--large & {
279
279
  @include govuk-media-query($from: tablet) {
280
- &:before {
280
+ &::before {
281
281
  margin-left: $number-circle-size-large / 4;
282
282
  width: $number-circle-size-large / 2;
283
283
  }
284
284
 
285
- &:after {
285
+ &::after {
286
286
  height: calc(100% - #{govuk-spacing(6)});
287
287
  }
288
288
  }
@@ -290,10 +290,10 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
290
290
  }
291
291
 
292
292
  .gem-c-step-nav__step--active {
293
- &:last-child:before,
293
+ &:last-child::before,
294
294
  .gem-c-step-nav__circle--number,
295
- &:after,
296
- .gem-c-step-nav__help:after {
295
+ &::after,
296
+ .gem-c-step-nav__help::after {
297
297
  border-color: govuk-colour("black");
298
298
  }
299
299
  }
@@ -365,7 +365,11 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
365
365
  $shadow-colour: govuk-colour("white");
366
366
 
367
367
  // to make numbers readable for users zooming text only in browsers such as Firefox
368
- text-shadow: 0 -#{$shadow-offset} 0 $shadow-colour, $shadow-offset 0 0 $shadow-colour, 0 $shadow-offset 0 $shadow-colour, -#{$shadow-offset} 0 0 $shadow-colour;
368
+ text-shadow:
369
+ 0 -#{$shadow-offset} 0 $shadow-colour,
370
+ $shadow-offset 0 0 $shadow-colour,
371
+ 0 $shadow-offset 0 $shadow-colour,
372
+ -#{$shadow-offset} 0 0 $shadow-colour;
369
373
  }
370
374
 
371
375
  .gem-c-step-nav__circle-step-label,
@@ -468,13 +472,13 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
468
472
  margin-left: $links-margin;
469
473
  list-style: disc;
470
474
 
471
- .gem-c-step-nav__list-item--active:before {
475
+ .gem-c-step-nav__list-item--active::before {
472
476
  left: -(govuk-spacing(6) + govuk-spacing(3)) - $links-margin;
473
477
  }
474
478
 
475
479
  .gem-c-step-nav--large & {
476
480
  @include govuk-media-query($from: tablet) {
477
- .gem-c-step-nav__list-item--active:before {
481
+ .gem-c-step-nav__list-item--active::before {
478
482
  left: -(govuk-spacing(9)) - $links-margin;
479
483
  }
480
484
  }
@@ -497,7 +501,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
497
501
  .gem-c-step-nav__list-item--active {
498
502
  position: relative;
499
503
 
500
- &:before {
504
+ &::before {
501
505
  box-sizing: border-box;
502
506
  content: "";
503
507
  position: absolute;
@@ -513,7 +517,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
513
517
 
514
518
  .gem-c-step-nav--large & {
515
519
  @include govuk-media-query($from: tablet) {
516
- &:before {
520
+ &::before {
517
521
  left: -(govuk-spacing(9));
518
522
  margin-left: ($number-circle-size-large / 2);
519
523
  }
@@ -530,7 +534,7 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
530
534
  font-weight: normal;
531
535
  color: govuk-colour("dark-grey", $legacy: "grey-1");
532
536
 
533
- &:before {
537
+ &::before {
534
538
  content: " \2013\00a0"; // dash followed by  
535
539
  }
536
540
  }
@@ -44,7 +44,7 @@ $table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4")
44
44
  @include govuk-focused-text;
45
45
  }
46
46
 
47
- .app-table__sort-link:after {
47
+ .app-table__sort-link::after {
48
48
  content: "";
49
49
  position: absolute;
50
50
  top: 5px;
@@ -52,7 +52,7 @@ $table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4")
52
52
  @include govuk-shape-arrow($direction: up, $base: $sort-link-arrow-size-small, $display: block);
53
53
  }
54
54
 
55
- .app-table__sort-link:before {
55
+ .app-table__sort-link::before {
56
56
  content: "";
57
57
  position: absolute;
58
58
  top: 13px;
@@ -80,12 +80,12 @@ $table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4")
80
80
  }
81
81
  }
82
82
 
83
- .app-table__sort-link--ascending:before,
84
- .app-table__sort-link--descending:before {
83
+ .app-table__sort-link--ascending::before,
84
+ .app-table__sort-link--descending::before {
85
85
  content: none;
86
86
  }
87
87
 
88
- .app-table__sort-link--ascending:after {
88
+ .app-table__sort-link--ascending::after {
89
89
  content: "";
90
90
  position: absolute;
91
91
  top: $sort-link-arrow-spacing;
@@ -95,7 +95,7 @@ $table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4")
95
95
  @include govuk-shape-arrow($direction: up, $base: $sort-link-arrow-size, $display: inline-block);
96
96
  }
97
97
 
98
- .app-table__sort-link--descending:after {
98
+ .app-table__sort-link--descending::after {
99
99
  content: "";
100
100
  position: absolute;
101
101
  top: $sort-link-arrow-spacing;
@@ -10,7 +10,8 @@
10
10
  }
11
11
 
12
12
  // We have some styles within GOVUK (.content-block) which can leak into the list styles for this component.
13
- // These styles are defined in Static: https://github.com/alphagov/static/blob/a815620cada7ea1c65428c1c3b3ac4dbe28977bf/app/assets/stylesheets/helpers/_text.scss
13
+ // These styles are defined in Static:
14
+ // https://github.com/alphagov/static/blob/a815620cada7ea1c65428c1c3b3ac4dbe28977bf/app/assets/stylesheets/helpers/_text.scss
14
15
  // This sets more specific selectors so those unwanted styles are overidden
15
16
  ul.govuk-tabs__list { // stylelint-disable-line selector-no-qualifying-type
16
17
  margin: 0;
@@ -17,7 +17,8 @@
17
17
  width: 100%;
18
18
  box-sizing: border-box;
19
19
 
20
- &:before {
20
+ // stylelint-disable max-nesting-depth
21
+ &::before {
21
22
  background-color: govuk-colour("black");
22
23
  border-radius: 50%;
23
24
  color: govuk-colour("white");
@@ -37,6 +38,7 @@
37
38
  content: "#{$i}";
38
39
  }
39
40
  }
41
+ // stylelint-enable max-nesting-depth
40
42
  }
41
43
  }
42
44
  }
@@ -49,14 +49,14 @@
49
49
  padding-left: govuk-spacing(6);
50
50
  }
51
51
 
52
- &:before {
52
+ &::before {
53
53
  content: "\201C";
54
54
  float: left;
55
55
  clear: both;
56
56
  margin-left: (- govuk-spacing(3));
57
57
  }
58
58
 
59
- &:last-child:after {
59
+ &:last-child::after {
60
60
  content: "\201D";
61
61
  }
62
62
  }
@@ -78,14 +78,14 @@
78
78
  padding-left: 0;
79
79
  }
80
80
 
81
- &:before {
81
+ &::before {
82
82
  content: "\201D";
83
83
  float: right;
84
84
  margin-right: (- govuk-spacing(3));
85
85
  margin-left: 0;
86
86
  }
87
87
 
88
- &:last-child:after {
88
+ &:last-child::after {
89
89
  content: "\201C";
90
90
  }
91
91
  }
@@ -10,11 +10,11 @@ $is-ie: false !default;
10
10
  @mixin media-down($size: false, $max-width: false, $min-width: false) {
11
11
  @if $is-ie == false {
12
12
  @if $size == mobile {
13
- @media (max-width: 640px) {
13
+ @media (max-width: 640px) { // stylelint-disable-line media-feature-range-notation
14
14
  @content;
15
15
  }
16
16
  } @else if $size == tablet {
17
- @media (max-width: 800px) {
17
+ @media (max-width: 800px) { // stylelint-disable-line media-feature-range-notation
18
18
  @content;
19
19
  }
20
20
  }
@@ -17,6 +17,7 @@
17
17
  simple_light ||= false
18
18
  dark_icon ||= false
19
19
  dark_large_icon ||= false
20
+ light_icon ||= false
20
21
  small_icon ||= false
21
22
  nhs_icon ||= false
22
23
  brexit_icon ||= false
@@ -31,6 +32,7 @@
31
32
  css_classes << "gem-c-action-link--dark-large-icon" if dark_large_icon
32
33
  css_classes << "gem-c-action-link--small-icon" if small_icon
33
34
  css_classes << "gem-c-action-link--transparent-icon" if transparent_icon
35
+ css_classes << "gem-c-action-link--light-icon" if light_icon
34
36
  css_classes << "gem-c-action-link--nhs" if nhs_icon
35
37
  css_classes << "gem-c-action-link--brexit" if brexit_icon
36
38
  css_classes << "gem-c-action-link--blue-arrow" if blue_arrow
@@ -99,7 +99,7 @@
99
99
  <% end %>
100
100
 
101
101
  <% if attachment.preview_url.present? %>
102
- <%= tag.p link_to(t("components.attachment.preview_link"), attachment.preview_url, class: "govuk-link"), class: "gem-c-attachment__metadata" %>
102
+ <%= tag.p link_to(t("components.attachment.preview_link"), attachment.preview_url, class: "govuk-link", "aria-label": t("components.attachment.preview_aria_label", title: attachment.title)), class: "gem-c-attachment__metadata" %>
103
103
  <% end %>
104
104
 
105
105
  <% if attachment.is_official_document && !hide_order_copy_link %>