govuk_publishing_components 24.10.3 → 24.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -1
  4. data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +142 -104
  5. data/app/assets/javascripts/govuk_publishing_components/components/reorderable-list.js +1 -1
  6. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +2 -2
  7. data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +1 -1
  8. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +3 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +0 -11
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +50 -31
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -35
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +0 -13
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +0 -6
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +0 -4
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +10 -3
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +11 -1
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +1 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -1
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss +1 -0
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +8 -2
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +6 -2
  22. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +1 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/print/_attachment.scss +2 -3
  24. data/app/assets/stylesheets/govuk_publishing_components/components/print/_back-link.scss +2 -3
  25. data/app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss +0 -4
  26. data/app/assets/stylesheets/govuk_publishing_components/components/print/_feedback.scss +2 -3
  27. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss +2 -6
  28. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-header.scss +2 -3
  29. data/app/assets/stylesheets/govuk_publishing_components/components/print/_metadata.scss +2 -6
  30. data/app/assets/stylesheets/govuk_publishing_components/components/print/_search.scss +2 -3
  31. data/app/assets/stylesheets/govuk_publishing_components/components/print/_share-links.scss +2 -3
  32. data/app/assets/stylesheets/govuk_publishing_components/components/print/_skip-link.scss +2 -3
  33. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +0 -4
  34. data/app/assets/stylesheets/govuk_publishing_components/components/print/_subscription-links.scss +2 -3
  35. data/app/assets/stylesheets/govuk_publishing_components/components/print/_translation-nav.scss +2 -3
  36. data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -1
  37. data/app/views/govuk_publishing_components/components/_attachment.html.erb +4 -4
  38. data/app/views/govuk_publishing_components/components/_attachment_link.html.erb +1 -1
  39. data/app/views/govuk_publishing_components/components/_back_link.html.erb +1 -1
  40. data/app/views/govuk_publishing_components/components/_button.html.erb +1 -1
  41. data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
  42. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +10 -3
  43. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +1 -1
  44. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +16 -6
  45. data/app/views/govuk_publishing_components/components/_feedback.html.erb +1 -1
  46. data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +14 -14
  47. data/app/views/govuk_publishing_components/components/_image_card.html.erb +15 -2
  48. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +8 -11
  49. data/app/views/govuk_publishing_components/components/_machine_readable_metadata.html.erb +1 -1
  50. data/app/views/govuk_publishing_components/components/_metadata.html.erb +7 -7
  51. data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +1 -1
  52. data/app/views/govuk_publishing_components/components/_organisation_logo.html.erb +13 -13
  53. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +11 -7
  54. data/app/views/govuk_publishing_components/components/_print_link.html.erb +1 -1
  55. data/app/views/govuk_publishing_components/components/_search.html.erb +1 -1
  56. data/app/views/govuk_publishing_components/components/_share_links.html.erb +2 -2
  57. data/app/views/govuk_publishing_components/components/_skip_link.html.erb +1 -1
  58. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +6 -6
  59. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
  60. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +10 -10
  61. data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
  62. data/app/views/govuk_publishing_components/components/_tabs.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/docs/feedback.yml +2 -0
  65. data/app/views/govuk_publishing_components/components/docs/government_navigation.yml +2 -0
  66. data/app/views/govuk_publishing_components/components/docs/inset_text.yml +2 -2
  67. data/app/views/govuk_publishing_components/components/docs/inverse_header.yml +18 -15
  68. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +6 -6
  69. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +5 -5
  70. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +6 -6
  71. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
  72. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +4 -4
  73. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +1 -1
  74. data/config/locales/ar.yml +153 -0
  75. data/config/locales/az.yml +153 -0
  76. data/config/locales/be.yml +153 -0
  77. data/config/locales/bg.yml +153 -0
  78. data/config/locales/bn.yml +153 -0
  79. data/config/locales/cs.yml +153 -0
  80. data/config/locales/cy.yml +146 -7
  81. data/config/locales/da.yml +153 -0
  82. data/config/locales/de.yml +153 -0
  83. data/config/locales/dr.yml +153 -0
  84. data/config/locales/el.yml +153 -0
  85. data/config/locales/en.yml +143 -110
  86. data/config/locales/es-419.yml +153 -0
  87. data/config/locales/es.yml +153 -0
  88. data/config/locales/et.yml +150 -0
  89. data/config/locales/fa.yml +153 -0
  90. data/config/locales/fi.yml +153 -0
  91. data/config/locales/fr.yml +150 -0
  92. data/config/locales/gd.yml +153 -0
  93. data/config/locales/gu.yml +153 -0
  94. data/config/locales/he.yml +153 -0
  95. data/config/locales/hi.yml +153 -0
  96. data/config/locales/hr.yml +153 -0
  97. data/config/locales/hu.yml +153 -0
  98. data/config/locales/hy.yml +153 -0
  99. data/config/locales/id.yml +153 -0
  100. data/config/locales/is.yml +153 -0
  101. data/config/locales/it.yml +153 -0
  102. data/config/locales/ja.yml +153 -0
  103. data/config/locales/ka.yml +153 -0
  104. data/config/locales/kk.yml +153 -0
  105. data/config/locales/ko.yml +153 -0
  106. data/config/locales/lt.yml +153 -0
  107. data/config/locales/lv.yml +153 -0
  108. data/config/locales/ms.yml +153 -0
  109. data/config/locales/mt.yml +153 -0
  110. data/config/locales/nl.yml +153 -0
  111. data/config/locales/no.yml +154 -1
  112. data/config/locales/pa-pk.yml +153 -0
  113. data/config/locales/pa.yml +153 -0
  114. data/config/locales/pl.yml +153 -0
  115. data/config/locales/ps.yml +153 -0
  116. data/config/locales/pt.yml +153 -0
  117. data/config/locales/ro.yml +153 -0
  118. data/config/locales/ru.yml +153 -0
  119. data/config/locales/si.yml +153 -0
  120. data/config/locales/sk.yml +153 -0
  121. data/config/locales/sl.yml +153 -0
  122. data/config/locales/so.yml +153 -0
  123. data/config/locales/sq.yml +153 -0
  124. data/config/locales/sr.yml +153 -0
  125. data/config/locales/sv.yml +153 -0
  126. data/config/locales/sw.yml +153 -0
  127. data/config/locales/ta.yml +153 -0
  128. data/config/locales/th.yml +153 -0
  129. data/config/locales/tk.yml +153 -0
  130. data/config/locales/tr.yml +153 -0
  131. data/config/locales/uk.yml +153 -0
  132. data/config/locales/ur.yml +153 -0
  133. data/config/locales/uz.yml +153 -0
  134. data/config/locales/vi.yml +153 -0
  135. data/config/locales/zh-hk.yml +153 -0
  136. data/config/locales/zh-tw.yml +153 -0
  137. data/config/locales/zh.yml +153 -0
  138. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +1 -2
  139. data/lib/govuk_publishing_components/presenters/content_item.rb +5 -3
  140. data/lib/govuk_publishing_components/presenters/contents_list_helper.rb +0 -3
  141. data/lib/govuk_publishing_components/presenters/machine_readable/page.rb +4 -0
  142. data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +1 -1
  143. data/lib/govuk_publishing_components/version.rb +1 -1
  144. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +7 -16
  145. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +4 -15
  146. data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +1 -1
  147. data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +3 -3
  148. data/node_modules/govuk-frontend/govuk/components/cookie-banner/README.md +15 -0
  149. data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +40 -22
  150. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +6 -6
  151. data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +15 -5
  152. data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +2 -2
  153. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +5 -1
  154. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +13 -14
  155. data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +1 -1
  156. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +14 -19
  157. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +39 -21
  158. data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +1 -1
  159. data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +1 -1
  160. data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +3 -3
  161. data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +1 -1
  162. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +1 -1
  163. data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +1 -6
  164. data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +1 -1
  165. data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +10 -0
  166. data/node_modules/govuk-frontend/govuk/core/_links.scss +8 -0
  167. data/node_modules/govuk-frontend/govuk/helpers/_links.scss +153 -38
  168. data/node_modules/govuk-frontend/govuk/settings/_all.scss +2 -0
  169. data/node_modules/govuk-frontend/govuk/settings/_links.scss +62 -0
  170. data/node_modules/govuk-frontend/package.json +1 -1
  171. metadata +9 -7
@@ -2,7 +2,7 @@
2
2
  /// @group helpers/links
3
3
  ////
4
4
 
5
- /// Common link mixin
5
+ /// Common link styles
6
6
  ///
7
7
  /// Provides the typography and focus state, regardless of link style.
8
8
  ///
@@ -10,18 +10,57 @@
10
10
 
11
11
  @mixin govuk-link-common {
12
12
  @include govuk-typography-common;
13
+ @include govuk-link-decoration;
14
+
15
+ &:hover {
16
+ @include govuk-link-hover-decoration;
17
+ }
13
18
 
14
19
  &:focus {
15
20
  @include govuk-focused-text;
16
21
  }
17
22
  }
18
23
 
19
- /// Default link style mixin
24
+ /// Link decoration
25
+ ///
26
+ /// Provides the text decoration for links, including thickness and underline
27
+ /// offset. Use this mixin only if you cannot use the `govuk-link-common` mixin.
28
+ ///
29
+ /// @access public
30
+ @mixin govuk-link-decoration {
31
+ text-decoration: underline;
32
+
33
+ @if ($govuk-new-link-styles) {
34
+ @if ($govuk-link-underline-thickness) {
35
+ text-decoration-thickness: $govuk-link-underline-thickness;
36
+ }
37
+
38
+ @if ($govuk-link-underline-offset) {
39
+ text-underline-offset: $govuk-link-underline-offset;
40
+ }
41
+ }
42
+ }
43
+
44
+ /// Link hover decoration
45
+ ///
46
+ /// Provides the text decoration for links in their hover state, for you to use
47
+ /// within a `:hover` pseudo-selector. Use this mixin only if you cannot use the
48
+ /// `govuk-link-common` mixin.
49
+ ///
50
+ /// @access public
51
+
52
+ @mixin govuk-link-hover-decoration {
53
+ @if ($govuk-new-link-styles and $govuk-link-hover-underline-thickness) {
54
+ text-decoration-thickness: $govuk-link-hover-underline-thickness;
55
+ }
56
+ }
57
+
58
+ /// Default link styles
20
59
  ///
21
- /// Provides the default unvisited, visited, hover and active states for links.
60
+ /// Makes links use the default unvisited, visited, hover and active colours.
22
61
  ///
23
- /// If you use this mixin in a component you must also include the
24
- /// govuk-link-common mixin in order to get the focus state.
62
+ /// If you use this mixin in a component, you must also include the
63
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
25
64
  ///
26
65
  /// @example scss
27
66
  /// .govuk-component__link {
@@ -66,12 +105,13 @@
66
105
  }
67
106
  }
68
107
 
69
- /// Error link style mixin
108
+ /// Error link styles
70
109
  ///
71
- /// Provides the error unvisited, visited, hover and active states for links.
110
+ /// Makes links use the error colour. The link will darken if it's active or a
111
+ /// user hovers their cursor over it.
72
112
  ///
73
- /// If you use this mixin in a component you must also include the
74
- /// govuk-link-common mixin in order to get the focus state.
113
+ /// If you use this mixin in a component, you must also include the
114
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
75
115
  ///
76
116
  /// @example scss
77
117
  /// .govuk-component__link {
@@ -113,12 +153,13 @@
113
153
  }
114
154
  }
115
155
 
116
- /// Success link style mixin
156
+ /// Success link styles
117
157
  ///
118
- /// Provides the success unvisited, visited, hover and active states for links.
158
+ /// Makes links use the success colour. The link will darken if it's active or a
159
+ /// user hovers their cursor over it.
119
160
  ///
120
- /// If you use this mixin in a component you must also include the
121
- /// govuk-link-common mixin in order to get the focus state.
161
+ /// If you use this mixin in a component, you must also include the
162
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
122
163
  ///
123
164
  /// @example scss
124
165
  /// .govuk-component__link {
@@ -160,13 +201,13 @@
160
201
  }
161
202
  }
162
203
 
163
- /// Muted style link mixin
204
+ /// Muted link styles
164
205
  ///
165
- /// Used for secondary links on a page - the link will appear in muted colours
166
- /// regardless of visited state.
206
+ /// Makes links use the secondary text colour. The link will darken if it's
207
+ /// active or a user hovers their cursor over it.
167
208
  ///
168
- /// If you use this mixin in a component you must also include the
169
- /// govuk-link-common mixin in order to get the focus state.
209
+ /// If you use this mixin in a component, you must also include the
210
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
170
211
  ///
171
212
  /// @example scss
172
213
  /// .govuk-component__link {
@@ -178,10 +219,13 @@
178
219
 
179
220
  @mixin govuk-link-style-muted {
180
221
  &:link,
181
- &:visited,
222
+ &:visited {
223
+ color: $govuk-secondary-text-colour;
224
+ }
225
+
182
226
  &:hover,
183
227
  &:active {
184
- color: $govuk-secondary-text-colour;
228
+ color: $govuk-text-colour;
185
229
  }
186
230
 
187
231
  // When focussed, the text colour needs to be darker to ensure that colour
@@ -200,13 +244,13 @@
200
244
  }
201
245
  }
202
246
 
203
- /// Text style link mixin
247
+ /// Text link styles
204
248
  ///
205
- /// Overrides the colour of links to match the text colour. Generally used by
249
+ /// Makes links use the primary text colour, in all states. Use this mixin for
206
250
  /// navigation components, such as breadcrumbs or the back link.
207
251
  ///
208
- /// If you use this mixin in a component you must also include the
209
- /// govuk-link-common mixin in order to get the focus state.
252
+ /// If you use this mixin in a component, you must also include the
253
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
210
254
  ///
211
255
  /// @example scss
212
256
  /// .govuk-component__link {
@@ -217,10 +261,17 @@
217
261
  /// @access public
218
262
 
219
263
  @mixin govuk-link-style-text {
220
- // Override link colour to use text colour
221
264
  &:link,
222
- &:visited,
223
- &:hover,
265
+ &:visited {
266
+ @include govuk-text-colour;
267
+ }
268
+
269
+ // Force a colour change on hover to work around a bug in Safari
270
+ // https://bugs.webkit.org/show_bug.cgi?id=224483
271
+ &:hover {
272
+ color: rgba($govuk-text-colour, .99);
273
+ }
274
+
224
275
  &:active,
225
276
  &:focus {
226
277
  @include govuk-text-colour;
@@ -236,17 +287,60 @@
236
287
  }
237
288
  }
238
289
 
239
- /// No visited state link mixin
290
+ /// Inverse link styles
291
+ ///
292
+ /// Makes links white, in all states. Use this mixin if you're displaying links
293
+ /// against a dark background.
294
+ ///
295
+ /// If you use this mixin in a component, you must also include the
296
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
297
+ ///
298
+ /// @example scss
299
+ /// .govuk-component__link {
300
+ /// @include govuk-link-common;
301
+ /// @include govuk-link-style-inverse;
302
+ /// }
303
+ ///
304
+ /// @access public
305
+
306
+ @mixin govuk-link-style-inverse {
307
+ &:link,
308
+ &:visited {
309
+ color: govuk-colour("white");
310
+ }
311
+
312
+ // Force a colour change on hover to work around a bug in Safari
313
+ // https://bugs.webkit.org/show_bug.cgi?id=224483
314
+ &:hover,
315
+ &:active {
316
+ color: rgba(govuk-colour("white"), .99);
317
+ }
318
+
319
+ &:focus {
320
+ color: $govuk-focus-text-colour;
321
+ }
322
+
323
+ // alphagov/govuk_template includes a specific a:link:focus selector designed
324
+ // to make unvisited links a slightly darker blue when focussed, so we need to
325
+ // override the text colour for that combination of selectors.
326
+ @include govuk-compatibility(govuk_template) {
327
+ &:link:focus {
328
+ color: $govuk-focus-text-colour;
329
+ }
330
+ }
331
+ }
332
+
333
+ /// Default link styles, without a visited state
240
334
  ///
241
- /// Used in cases where it is not helpful to distinguish between visited and
242
- /// non-visited links.
335
+ /// Makes links use the default unvisited, hover and active colours, with no
336
+ /// distinct visited state.
243
337
  ///
244
- /// For example, navigation links to pages with dynamic content like admin
245
- /// dashboards. The content on the page is changing all the time, so the fact
246
- /// that you’ve visited it before is not important.
338
+ /// Use this mixin when it's not helpful to distinguish between visited and
339
+ /// non-visited links. For example, when you link to pages with
340
+ /// frequently-changing content, such as the dashboard for an admin interface.
247
341
  ///
248
- /// If you use this mixin in a component you must also include the
249
- /// govuk-link-common mixin in order to get the focus state.
342
+ /// If you use this mixin in a component, you must also include the
343
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
250
344
  ///
251
345
  /// @example scss
252
346
  /// .govuk-component__link {
@@ -280,10 +374,31 @@
280
374
  }
281
375
  }
282
376
 
283
- /// Print friendly link mixin
377
+ /// Remove underline from links
378
+ ///
379
+ /// Remove underlines from links unless the link is active or a user hovers
380
+ /// their cursor over it. This has no effect in Internet Explorer 8 (IE8),
381
+ /// because IE8 does not support `:not`.
382
+ ///
383
+ /// @example scss
384
+ /// .govuk-component__link {
385
+ /// @include govuk-link-common;
386
+ /// @include govuk-link-style-default;
387
+ /// @include govuk-link-style-no-underline;
388
+ /// }
389
+ ///
390
+ /// @access public
391
+
392
+ @mixin govuk-link-style-no-underline {
393
+ &:not(:hover):not(:active) {
394
+ text-decoration: none;
395
+ }
396
+ }
397
+
398
+ /// Include link destination when printing the page
284
399
  ///
285
- /// When printing, append the the destination URL to the link text, as long
286
- /// as the URL starts with either `/`, `http://` or `https://`.
400
+ /// If the user prints the page, add the destination URL after the link text, if
401
+ /// the URL starts with `/`, `http://` or `https://`.
287
402
  ///
288
403
  /// @access public
289
404
 
@@ -19,3 +19,5 @@
19
19
  @import "typography-font-families";
20
20
  @import "typography-font";
21
21
  @import "typography-responsive";
22
+
23
+ @import "links";
@@ -0,0 +1,62 @@
1
+ ////
2
+ /// @group settings/links
3
+ ////
4
+
5
+ /// Enable new link styles
6
+ ///
7
+ /// If enabled, the link styles will change. Underlines will:
8
+ ///
9
+ /// - be consistently thinner and a bit further away from the link text
10
+ /// - have a clearer hover state, where the underline gets thicker to make the
11
+ /// link stand out to users
12
+ ///
13
+ /// You should only enable the new link styles if both:
14
+ ///
15
+ /// - you've made sure your whole service will use the new style consistently
16
+ /// - you do not have links in a multi-column CSS layout - there's [a Chromium
17
+ /// bug that affects links](https://github.com/alphagov/govuk-frontend/issues/2204)
18
+ ///
19
+ /// @type Boolean
20
+ /// @access public
21
+
22
+ $govuk-new-link-styles: false !default;
23
+
24
+ /// Thickness of link underlines
25
+ ///
26
+ /// The default will be either:
27
+ ///
28
+ /// - 1px
29
+ /// - 0.0625rem, if it's thicker than 1px because the user has changed the text
30
+ /// size in their browser
31
+ ///
32
+ /// Set this variable to `false` to avoid setting a thickness.
33
+ ///
34
+ /// @type Number
35
+ /// @access public
36
+
37
+ $govuk-link-underline-thickness: unquote("max(1px, .0625rem)") !default;
38
+
39
+ /// Offset of link underlines from text baseline
40
+ ///
41
+ /// Set this variable to `false` to avoid setting an offset.
42
+ ///
43
+ /// @type Number
44
+ /// @access public
45
+
46
+ $govuk-link-underline-offset: .1em !default;
47
+
48
+ /// Thickness of link underlines in hover state
49
+ ///
50
+ /// The default for each link will be the thickest of the following:
51
+ ///
52
+ /// - 3px
53
+ /// - 0.1875rem, if it's thicker than 3px because the user has changed the text
54
+ /// size in their browser
55
+ /// - 0.12em (relative to the link's text size)
56
+ ///
57
+ /// Set this variable to `false` to avoid setting a thickness.
58
+ ///
59
+ /// @type Number
60
+ /// @access public
61
+
62
+ $govuk-link-hover-underline-thickness: unquote("max(3px, .1875rem, .12em)") !default;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "govuk-frontend",
3
3
  "description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.",
4
- "version": "3.11.0",
4
+ "version": "3.12.0",
5
5
  "main": "govuk/all.js",
6
6
  "sass": "govuk/all.scss",
7
7
  "engines": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 24.10.3
4
+ version: 24.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-11 00:00:00.000000000 Z
11
+ date: 2021-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -272,16 +272,16 @@ dependencies:
272
272
  name: rubocop-govuk
273
273
  requirement: !ruby/object:Gem::Requirement
274
274
  requirements:
275
- - - '='
275
+ - - ">="
276
276
  - !ruby/object:Gem::Version
277
- version: 4.0.0.pre.1
277
+ version: '0'
278
278
  type: :development
279
279
  prerelease: false
280
280
  version_requirements: !ruby/object:Gem::Requirement
281
281
  requirements:
282
- - - '='
282
+ - - ">="
283
283
  - !ruby/object:Gem::Version
284
- version: 4.0.0.pre.1
284
+ version: '0'
285
285
  - !ruby/object:Gem::Dependency
286
286
  name: sassc-rails
287
287
  requirement: !ruby/object:Gem::Requirement
@@ -1588,6 +1588,7 @@ files:
1588
1588
  - node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json
1589
1589
  - node_modules/govuk-frontend/govuk/components/checkboxes/macro.njk
1590
1590
  - node_modules/govuk-frontend/govuk/components/checkboxes/template.njk
1591
+ - node_modules/govuk-frontend/govuk/components/cookie-banner/README.md
1591
1592
  - node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss
1592
1593
  - node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss
1593
1594
  - node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json
@@ -1808,6 +1809,7 @@ files:
1808
1809
  - node_modules/govuk-frontend/govuk/settings/_compatibility.scss
1809
1810
  - node_modules/govuk-frontend/govuk/settings/_global-styles.scss
1810
1811
  - node_modules/govuk-frontend/govuk/settings/_ie8.scss
1812
+ - node_modules/govuk-frontend/govuk/settings/_links.scss
1811
1813
  - node_modules/govuk-frontend/govuk/settings/_measurements.scss
1812
1814
  - node_modules/govuk-frontend/govuk/settings/_media-queries.scss
1813
1815
  - node_modules/govuk-frontend/govuk/settings/_spacing.scss
@@ -1975,7 +1977,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1975
1977
  - !ruby/object:Gem::Version
1976
1978
  version: '0'
1977
1979
  requirements: []
1978
- rubygems_version: 3.1.4
1980
+ rubygems_version: 3.0.3
1979
1981
  signing_key:
1980
1982
  specification_version: 4
1981
1983
  summary: A gem to document components in GOV.UK frontend applications