govuk_publishing_components 27.11.0 → 27.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +6 -4
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +81 -41
  4. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_prefixed-transform.scss +5 -0
  5. data/app/views/govuk_publishing_components/components/_input.html.erb +35 -22
  6. data/app/views/govuk_publishing_components/components/_search.html.erb +2 -1
  7. data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +4 -5
  8. data/app/views/govuk_publishing_components/components/docs/input.yml +10 -0
  9. data/config/locales/ar.yml +0 -3
  10. data/config/locales/az.yml +0 -3
  11. data/config/locales/be.yml +0 -3
  12. data/config/locales/bg.yml +0 -3
  13. data/config/locales/bn.yml +0 -3
  14. data/config/locales/cs.yml +0 -3
  15. data/config/locales/cy.yml +0 -3
  16. data/config/locales/da.yml +0 -3
  17. data/config/locales/de.yml +0 -3
  18. data/config/locales/dr.yml +0 -3
  19. data/config/locales/el.yml +0 -3
  20. data/config/locales/en.yml +0 -3
  21. data/config/locales/es-419.yml +0 -3
  22. data/config/locales/es.yml +0 -3
  23. data/config/locales/et.yml +0 -3
  24. data/config/locales/fa.yml +0 -3
  25. data/config/locales/fi.yml +0 -3
  26. data/config/locales/fr.yml +0 -3
  27. data/config/locales/gd.yml +0 -3
  28. data/config/locales/gu.yml +0 -3
  29. data/config/locales/he.yml +0 -3
  30. data/config/locales/hi.yml +0 -3
  31. data/config/locales/hr.yml +0 -3
  32. data/config/locales/hu.yml +0 -3
  33. data/config/locales/hy.yml +0 -3
  34. data/config/locales/id.yml +0 -3
  35. data/config/locales/is.yml +0 -3
  36. data/config/locales/it.yml +0 -3
  37. data/config/locales/ja.yml +0 -3
  38. data/config/locales/ka.yml +0 -3
  39. data/config/locales/kk.yml +0 -3
  40. data/config/locales/ko.yml +0 -3
  41. data/config/locales/lt.yml +0 -3
  42. data/config/locales/lv.yml +0 -3
  43. data/config/locales/ms.yml +0 -3
  44. data/config/locales/mt.yml +0 -3
  45. data/config/locales/nl.yml +0 -3
  46. data/config/locales/no.yml +0 -3
  47. data/config/locales/pa-pk.yml +0 -3
  48. data/config/locales/pa.yml +0 -3
  49. data/config/locales/pl.yml +0 -3
  50. data/config/locales/ps.yml +0 -3
  51. data/config/locales/pt.yml +0 -3
  52. data/config/locales/ro.yml +0 -3
  53. data/config/locales/ru.yml +0 -3
  54. data/config/locales/si.yml +0 -3
  55. data/config/locales/sk.yml +0 -3
  56. data/config/locales/sl.yml +0 -3
  57. data/config/locales/so.yml +0 -3
  58. data/config/locales/sq.yml +0 -3
  59. data/config/locales/sr.yml +0 -3
  60. data/config/locales/sv.yml +0 -3
  61. data/config/locales/sw.yml +0 -3
  62. data/config/locales/ta.yml +0 -3
  63. data/config/locales/th.yml +0 -3
  64. data/config/locales/tk.yml +0 -3
  65. data/config/locales/tr.yml +0 -3
  66. data/config/locales/uk.yml +0 -3
  67. data/config/locales/ur.yml +0 -3
  68. data/config/locales/uz.yml +0 -3
  69. data/config/locales/vi.yml +0 -3
  70. data/config/locales/zh-hk.yml +0 -3
  71. data/config/locales/zh-tw.yml +0 -3
  72. data/config/locales/zh.yml +0 -3
  73. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +11 -0
  74. data/lib/govuk_publishing_components/version.rb +1 -1
  75. data/lib/govuk_publishing_components.rb +0 -1
  76. metadata +3 -3
  77. data/lib/govuk_publishing_components/presenters/brexit_cta_helper.rb +0 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cdfb123c38b321591389c84e2e9b397c5667f9782bc657efaaa59468d535f6a
4
- data.tar.gz: 8d71ce616148c775034f93537252b16b40b134918ed34ff46bfb971963f93ca4
3
+ metadata.gz: fd11f04405f2a42af38607551e706bf8587d8dab56687f9dd7f9f568a76ee9da
4
+ data.tar.gz: c365b23d1ce8a71ff06cc0fb2510a9c1f7aadb984a21ccb481256a441aaa0ef6
5
5
  SHA512:
6
- metadata.gz: 16d792dd3e4cdf1350cf32bd1b5090e7dfe097ae3bbad51637b820745fb84d0ddb9ef9b0aa697c100f721ff9845c519cd335b1c459a10ba392c883eaaaca7cb0
7
- data.tar.gz: 02a880a029f8991916315ed45ca24e87bdc59db3c426966b005f8ab043f21fbcb9a7c00fcc9686a4e12a6fe6502168f4d022fdc0c32f5cbebcc1a2e5c54d7e71
6
+ metadata.gz: d4a1581abd6a891e2473feffcdf0a15c18d11536438d89387a6bfff055fa1c874f0cc38ec6f9299fba4f4dcd30ed5d4239d6f5133fac4c0e47dfffb62eca8eea
7
+ data.tar.gz: 92c5a4c880e24c071d1ecec8a72fbe6ca1b852e23406e6cf61466930de1a21e49b086a98d12d60451a62b2fcad664ac2b0ea8b8918d8993ab4fb84b153df6ad1
@@ -1,3 +1,5 @@
1
+ @import "mixins/prefixed-transform";
2
+
1
3
  $gem-c-accordion-border-width: 3px;
2
4
  $gem-c-accordion-bottom-border-width: 1px;
3
5
 
@@ -69,6 +71,7 @@ $gem-c-accordion-bottom-border-width: 1px;
69
71
  }
70
72
 
71
73
  &:after {
74
+ @include prefixed-transform($rotate: -45deg);
72
75
  content: "";
73
76
  display: block;
74
77
  box-sizing: border-box;
@@ -78,7 +81,6 @@ $gem-c-accordion-bottom-border-width: 1px;
78
81
  height: govuk-em(6, 14);
79
82
  border-top: govuk-em(2, 14) solid;
80
83
  border-right: govuk-em(2, 14) solid;
81
- transform: rotate(-45deg);
82
84
  left: govuk-em(6, 14);
83
85
  bottom: govuk-em(5, 14);
84
86
 
@@ -111,7 +113,7 @@ $gem-c-accordion-bottom-border-width: 1px;
111
113
 
112
114
  // Rotate icon to create "Down" version
113
115
  .gem-c-accordion-nav__chevron--down {
114
- transform: rotate(180deg);
116
+ @include prefixed-transform($rotate: 180deg);
115
117
  }
116
118
 
117
119
  .gem-c-accordion__section-heading {
@@ -296,12 +298,12 @@ $gem-c-accordion-bottom-border-width: 1px;
296
298
 
297
299
  // Reduce Chevron size
298
300
  .gem-c-accordion-nav__chevron {
301
+ @include prefixed-transform($scale: .875);
299
302
  width: govuk-em(20, 14);
300
303
  height: govuk-em(20, 14);
301
304
  margin-left: govuk-em(5, 14);
302
305
  border: govuk-em(1, 14) solid;
303
306
  border-radius: govuk-em(100, 14);
304
- transform: scale(.875);
305
307
 
306
308
  &:after {
307
309
  width: govuk-em(6, 14);
@@ -314,7 +316,7 @@ $gem-c-accordion-bottom-border-width: 1px;
314
316
  }
315
317
 
316
318
  .gem-c-accordion-nav__chevron--down {
317
- transform: scale(.875) rotate(180deg);
319
+ @include prefixed-transform($rotate: 180deg, $scale: .875);
318
320
  }
319
321
 
320
322
  .gem-c-accordion__section-summary {
@@ -1,3 +1,5 @@
1
+ @import "mixins/prefixed-transform";
2
+
1
3
  /// Set grid row or column value using the fraction unit.
2
4
  ///
3
5
  /// @param {Integer} $number - number of fractions that the grid row or column
@@ -98,19 +100,21 @@
98
100
 
99
101
  $icon-size: 20px;
100
102
  $chevron-indent-spacing: 7px;
103
+ $black-bar-height: 50px;
104
+ $search-width-or-height: $black-bar-height;
101
105
 
102
106
  @mixin chevron($colour, $update: false) {
103
107
  @if ($update == true) {
104
108
  border-bottom-color: $colour;
105
109
  border-right-color: $colour;
106
110
  } @else {
107
- border-bottom: 3px solid $colour;
108
- border-right: 3px solid $colour;
111
+ @include prefixed-transform($rotate: 45deg, $translateY: -35%);
112
+ border-bottom: 2px solid $colour;
113
+ border-right: 2px solid $colour;
109
114
  content: " ";
110
115
  display: inline-block;
111
116
  height: 8px;
112
117
  margin: 0 8px 0 2px;
113
- transform: translateY(-35%) rotate(45deg);
114
118
  vertical-align: middle;
115
119
  width: 8px;
116
120
  }
@@ -131,9 +135,9 @@ $chevron-indent-spacing: 7px;
131
135
  bottom: 0;
132
136
  content: " ";
133
137
  height: govuk-spacing(1);
134
- left: govuk-spacing(4);
138
+ left: govuk-spacing(3);
135
139
  position: absolute;
136
- right: govuk-spacing(4);
140
+ right: govuk-spacing(3);
137
141
  top: auto;
138
142
  }
139
143
 
@@ -165,7 +169,7 @@ $chevron-indent-spacing: 7px;
165
169
  position: relative;
166
170
 
167
171
  .lte-ie8 & {
168
- height: govuk-spacing(9);
172
+ height: $black-bar-height;
169
173
  }
170
174
 
171
175
  [hidden] {
@@ -183,8 +187,8 @@ $chevron-indent-spacing: 7px;
183
187
 
184
188
  .gem-c-layout-super-navigation-header__header-logo {
185
189
  height: govuk-spacing(6);
186
- padding-bottom: govuk-spacing(3);
187
- padding-top: govuk-spacing(3);
190
+ padding-bottom: govuk-spacing(2);
191
+ padding-top: govuk-spacing(2);
188
192
 
189
193
  @include govuk-media-query($from: "desktop") {
190
194
  display: block;
@@ -228,24 +232,18 @@ $chevron-indent-spacing: 7px;
228
232
  @include govuk-media-query($from: "desktop") {
229
233
  display: inline-block;
230
234
  }
231
-
232
- .js-module-initialised & {
233
- padding: 0 0 govuk-spacing(9) 0;
234
-
235
- @include govuk-media-query($from: "desktop") {
236
- padding: 0;
237
- }
238
- }
239
235
  }
240
236
 
241
237
  .gem-c-layout-super-navigation-header__navigation-item,
242
238
  .gem-c-layout-super-navigation-header__search-item {
243
239
  display: block;
244
- margin: 0 govuk-spacing(3);
240
+ margin: 0;
241
+ padding: govuk-spacing(2) govuk-spacing(3);
245
242
  position: relative;
246
243
 
247
244
  @include govuk-media-query($from: "tablet") {
248
245
  margin: 0 govuk-spacing(6);
246
+ padding: govuk-spacing(2) 0;
249
247
  }
250
248
 
251
249
  @include govuk-media-query($from: "desktop") {
@@ -261,8 +259,15 @@ $chevron-indent-spacing: 7px;
261
259
  .gem-c-layout-super-navigation-header__navigation-item {
262
260
  border-bottom: 1px solid $govuk-border-colour;
263
261
 
262
+ .js-module-initialised & {
263
+ &:last-child {
264
+ border-bottom: none;
265
+ }
266
+ }
267
+
264
268
  @include govuk-media-query($from: "desktop") {
265
269
  border-bottom: 0;
270
+ padding: 0;
266
271
  }
267
272
  }
268
273
 
@@ -279,7 +284,7 @@ $chevron-indent-spacing: 7px;
279
284
  font-size: govuk-px-to-rem(19px);
280
285
  }
281
286
  font-weight: bold;
282
- margin: govuk-spacing(3) 0;
287
+ margin: govuk-spacing(3) 0 govuk-spacing(3) 0;
283
288
 
284
289
  @include govuk-media-query($from: "desktop") {
285
290
  display: block;
@@ -326,7 +331,7 @@ $chevron-indent-spacing: 7px;
326
331
  // stylelint-enable max-nesting-depth
327
332
 
328
333
  height: govuk-spacing(4);
329
- padding: govuk-spacing(4);
334
+ padding: govuk-spacing(3);
330
335
  position: relative;
331
336
 
332
337
  &:before {
@@ -343,28 +348,40 @@ $chevron-indent-spacing: 7px;
343
348
 
344
349
  // stylelint-disable max-nesting-depth
345
350
  @include focus-and-focus-visible {
346
- box-shadow: none;
347
- color: $govuk-focus-text-colour;
351
+ &,
352
+ &:hover {
353
+ box-shadow: none;
354
+ color: $govuk-focus-text-colour;
348
355
 
349
- &:after {
350
- background: $govuk-focus-text-colour;
356
+ &:after {
357
+ background: $govuk-focus-text-colour;
358
+ }
351
359
  }
352
360
  }
353
361
 
354
362
  @include focus-not-focus-visible {
355
363
  &,
356
364
  &:hover {
357
- color: govuk-colour("white");
358
365
  text-decoration: none;
359
366
  }
360
- }
361
- // stylelint-enable max-nesting-depth
362
367
 
363
- &:focus:not(:focus-visible) {
368
+ & {
369
+ color: govuk-colour("white");
370
+ }
371
+
372
+ &:hover {
373
+ color: govuk-colour("mid-grey");
374
+
375
+ &:after {
376
+ background: govuk-colour("mid-grey");
377
+ }
378
+ }
379
+
364
380
  &:after {
365
381
  background: none;
366
382
  }
367
383
  }
384
+ // stylelint-enable max-nesting-depth
368
385
 
369
386
  &:after {
370
387
  @include pseudo-underline;
@@ -423,8 +440,8 @@ $chevron-indent-spacing: 7px;
423
440
  @if $govuk-typography-use-rem {
424
441
  font-size: govuk-px-to-rem(16px);
425
442
  }
426
- height: govuk-spacing(9);
427
- padding: govuk-spacing(4);
443
+ height: $black-bar-height;
444
+ padding: govuk-spacing(3);
428
445
  position: relative;
429
446
  text-decoration: none;
430
447
 
@@ -463,7 +480,7 @@ $chevron-indent-spacing: 7px;
463
480
  &.gem-c-layout-super-navigation-header__open-button {
464
481
  @include focus-not-focus-visible {
465
482
  &:before {
466
- transform: translateY(0) rotate(225deg);
483
+ @include prefixed-transform($rotate: 225deg, $translateY: 0);
467
484
  }
468
485
  }
469
486
 
@@ -509,7 +526,7 @@ $chevron-indent-spacing: 7px;
509
526
  background: $govuk-brand-colour;
510
527
 
511
528
  &:hover {
512
- background: none;
529
+ background: govuk-colour("black");
513
530
 
514
531
  &:before {
515
532
  left: 0;
@@ -524,6 +541,30 @@ $chevron-indent-spacing: 7px;
524
541
  content: none;
525
542
  }
526
543
  }
544
+
545
+ &:after {
546
+ left: 0;
547
+ right: 0;
548
+ }
549
+
550
+ @include focus-not-focus-visible {
551
+ background: $govuk-link-colour;
552
+
553
+ &:hover {
554
+ background: govuk-colour("black");
555
+ }
556
+ }
557
+
558
+ @include focus-and-focus-visible {
559
+ &:hover {
560
+ background: $govuk-focus-colour;
561
+ }
562
+
563
+ &:after,
564
+ &:hover:after {
565
+ background: $govuk-focus-colour;
566
+ }
567
+ }
527
568
  }
528
569
  }
529
570
  }
@@ -574,10 +615,10 @@ $chevron-indent-spacing: 7px;
574
615
  box-sizing: border-box;
575
616
  color: govuk-colour("white");
576
617
  cursor: pointer;
577
- height: govuk-spacing(9);
618
+ height: $black-bar-height;
578
619
  padding: 0;
579
620
  position: absolute;
580
- right: ((govuk-spacing(9) - govuk-spacing(3)) - 1px); // width of the search button (60px) - 15px - 1px to create an overlap between buttons and stop the border appearing to hang off the buttons when they're focused/open
621
+ right: (($search-width-or-height - govuk-spacing(3)) - 1px); // width of the search button (50px) - 15px - 1px to create an overlap between buttons and stop the border appearing to hang off the buttons when they're focused/open
581
622
  top: 0;
582
623
  z-index: 10;
583
624
 
@@ -629,7 +670,7 @@ $chevron-indent-spacing: 7px;
629
670
  @include govuk-media-query($from: 360px) {
630
671
  &:before {
631
672
  @include chevron(govuk-colour("black"), true);
632
- transform: translateY(0) rotate(225deg);
673
+ @include prefixed-transform($rotate: 225deg, $translateY: 0);
633
674
  }
634
675
  }
635
676
  }
@@ -645,7 +686,7 @@ $chevron-indent-spacing: 7px;
645
686
  @include govuk-media-query($from: 360px) {
646
687
  &:before {
647
688
  @include chevron(govuk-colour("black"));
648
- transform: translateY(0) rotate(225deg);
689
+ @include prefixed-transform($rotate: 225deg, $translateY: 0);
649
690
  }
650
691
  }
651
692
  }
@@ -658,7 +699,7 @@ $chevron-indent-spacing: 7px;
658
699
  display: inline-block;
659
700
  border-left: 1px solid govuk-colour("white");
660
701
  border-right: 1px solid govuk-colour("white");
661
- margin: govuk-spacing(2) 0;
702
+ margin: 0;
662
703
  padding: govuk-spacing(2) govuk-spacing(4);
663
704
 
664
705
  @include govuk-media-query($from: 360px) {
@@ -675,12 +716,12 @@ $chevron-indent-spacing: 7px;
675
716
  border: 0;
676
717
  color: govuk-colour("white");
677
718
  cursor: pointer;
678
- height: govuk-spacing(9);
679
- padding: govuk-spacing(4);
719
+ height: $search-width-or-height;
720
+ padding: govuk-spacing(3);
680
721
  position: absolute;
681
722
  right: (0 - govuk-spacing(3));
682
723
  top: 0;
683
- width: govuk-spacing(9);
724
+ width: $search-width-or-height;
684
725
 
685
726
  @include focus-and-focus-visible {
686
727
  @include govuk-focused-text;
@@ -749,7 +790,7 @@ $chevron-indent-spacing: 7px;
749
790
  font-weight: normal;
750
791
  left: 0;
751
792
  line-height: 22px;
752
- padding: govuk-spacing(4) 0;
793
+ padding: govuk-spacing(3) 0;
753
794
  pointer-events: none;
754
795
  position: absolute;
755
796
  right: 0;
@@ -769,7 +810,6 @@ $chevron-indent-spacing: 7px;
769
810
  left: 0;
770
811
  position: absolute;
771
812
  right: 0;
772
- top: govuk-spacing(9);
773
813
  }
774
814
  }
775
815
 
@@ -0,0 +1,5 @@
1
+ @mixin prefixed-transform($translateY: 0, $rotate: 0, $scale: 1) {
2
+ -webkit-transform: translateY($translateY) rotate($rotate) scale($scale);
3
+ -ms-transform: translateY($translateY) rotate($rotate) scale($scale);
4
+ transform: translateY($translateY) rotate($rotate) scale($scale);
5
+ }
@@ -1,13 +1,16 @@
1
1
  <%
2
2
  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
3
3
 
4
- id ||= "input-#{SecureRandom.hex(4)}"
5
- value ||= nil
6
- type ||= "text"
7
- describedby ||= nil
4
+ autocomplete ||= nil
8
5
  controls ||= nil
9
6
  data ||= nil
10
- autocomplete ||= nil
7
+ describedby ||= nil
8
+ enterkeyhint ||= nil
9
+ id ||= "input-#{SecureRandom.hex(4)}"
10
+ type ||= "text"
11
+ value ||= nil
12
+ inputmode ||= nil
13
+ pattern ||= nil
11
14
 
12
15
  label ||= nil
13
16
  hint ||= nil
@@ -32,6 +35,7 @@
32
35
  css_classes << "govuk-input--error" if has_error
33
36
  css_classes << "govuk-input--width-#{width}" if [2, 3, 4, 5, 10, 20, 30].include?(width)
34
37
  css_classes << "gem-c-input--with-search-icon" if search_icon
38
+
35
39
  form_group_css_classes = %w(govuk-form-group)
36
40
  form_group_css_classes << "govuk-form-group--error" if has_error && !grouped
37
41
 
@@ -44,14 +48,21 @@
44
48
  aria_described_by = aria_described_by.join(" ")
45
49
  end
46
50
 
51
+ checked_enterkeyhint = enterkeyhint if [
52
+ "done",
53
+ "enter",
54
+ "go",
55
+ "next",
56
+ "previous",
57
+ "search",
58
+ "send",
59
+ ].include?(enterkeyhint)
60
+
47
61
  if type == "number"
48
62
  type = "text"
49
63
  inputmode = "numeric"
50
64
  pattern = "[0-9]*"
51
65
  end
52
-
53
- inputmode ||= nil
54
- pattern ||= nil
55
66
  %>
56
67
 
57
68
  <%= content_tag :div, class: form_group_css_classes do %>
@@ -87,24 +98,26 @@
87
98
  } %>
88
99
  <% end %>
89
100
 
90
- <% input_tag = tag.input name: name,
91
- value: value,
92
- class: css_classes,
93
- id: id,
94
- type: type,
95
- data: data,
101
+ <% input_tag = tag.input({
102
+ aria: {
103
+ describedby: aria_described_by,
104
+ controls: controls
105
+ },
96
106
  autocomplete: autocomplete,
97
- tabindex: tabindex,
98
107
  autofocus: autofocus,
99
- readonly: readonly,
100
- maxlength: maxlength,
108
+ class: css_classes,
109
+ data: data,
110
+ enterkeyhint: checked_enterkeyhint,
111
+ id: id,
101
112
  inputmode: inputmode,
113
+ maxlength: maxlength,
114
+ name: name,
102
115
  pattern: pattern,
103
- aria: {
104
- describedby: aria_described_by,
105
- controls: controls
106
- }
107
- %>
116
+ readonly: readonly,
117
+ tabindex: tabindex,
118
+ type: type,
119
+ value: value,
120
+ }) %>
108
121
 
109
122
  <% if prefix && suffix %>
110
123
  <%= tag.div class: "govuk-input__wrapper" do %>
@@ -43,6 +43,7 @@
43
43
  aria: {
44
44
  controls: aria_controls,
45
45
  },
46
+ enterkeyhint: "search",
46
47
  class: "gem-c-search__item gem-c-search__input js-class-toggle",
47
48
  id: id,
48
49
  name: name,
@@ -51,7 +52,7 @@
51
52
  value: value,
52
53
  ) %>
53
54
  <div class="gem-c-search__item gem-c-search__submit-wrapper">
54
- <%= tag.button class: "gem-c-search__submit", type: "submit", data: data_attributes do %>
55
+ <%= tag.button class: "gem-c-search__submit", type: "submit", data: data_attributes, enterkeyhint: "search" do %>
55
56
  <%= button_text %>
56
57
  <%= render "govuk_publishing_components/components/search/search_icon" %>
57
58
  <% end %>
@@ -1,10 +1,9 @@
1
1
  <% shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) %>
2
- <% cta_helper = GovukPublishingComponents::Presenters::BrexitCtaHelper.new(content_item) %>
3
2
  <%
4
- title = t(cta_helper.title_key)
5
- link_text = t(cta_helper.link_text_key)
6
- link_path = t(cta_helper.link_path_key)
7
- lang = shared_helper.t_locale(cta_helper.title_key)
3
+ title = t("components.related_navigation.transition.title")
4
+ link_text = t("components.related_navigation.transition.link_text")
5
+ link_path = t("components.related_navigation.transition.link_path")
6
+ lang = shared_helper.t_locale("components.related_navigation.transition.title")
8
7
  %>
9
8
 
10
9
  <% data_attributes = {
@@ -170,3 +170,13 @@ examples:
170
170
  name: "lead-times"
171
171
  width: 10
172
172
  suffix: "days"
173
+ with_enterhintkey_attribute:
174
+ description: |
175
+ To help users with virtual keyboards this changes the "enter" key to be a word that's more descriptive of the action.
176
+
177
+ Must be one of `enter`, `done`, `go`, `next`, `previous`, `search`, or `send`. See the [list of values and descriptions on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint#values).
178
+ data:
179
+ label:
180
+ text: "Given name"
181
+ name: given-name
182
+ enterkeyhint: "next"
@@ -166,9 +166,6 @@ ar:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ az:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ be:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ bg:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ bn:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ cs:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ cy:
166
166
  topical_events:
167
167
  topics: Archwilio’r pwnc
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title: Gwiriwr Brexit
172
169
  link_path: "/brexit.cy"
173
170
  link_text: Cael rhestr bersonol o gamau gweithredu
174
171
  title: Brexit
@@ -166,9 +166,6 @@ da:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ de:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ dr:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ el:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -240,9 +240,6 @@ en:
240
240
  topical_events: Topical event
241
241
  topics: Explore the topic
242
242
  transition:
243
- hub_page_link_path: "/transition-check/questions"
244
- hub_page_link_text: Get a personalised list of actions
245
- hub_page_title: Brexit checker
246
243
  link_path: "/brexit"
247
244
  link_text: Check what you need to do
248
245
  title: Brexit
@@ -166,9 +166,6 @@ es-419:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ es:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ et:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title: