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
@@ -32,10 +32,6 @@
32
32
  .gem-c-action-link__link {
33
33
  color: inherit;
34
34
 
35
- &:hover {
36
- text-decoration: underline;
37
- }
38
-
39
35
  &:focus {
40
36
  text-decoration: none;
41
37
  color: $govuk-focus-text-colour;
@@ -106,10 +102,6 @@
106
102
  background-size: 25px auto;
107
103
  background-position: 0 2px;
108
104
  }
109
-
110
- .gem-c-action-link__link {
111
- text-decoration: none;
112
- }
113
105
  }
114
106
 
115
107
  .gem-c-action-link--simple-light {
@@ -122,10 +114,6 @@
122
114
  background-size: 25px auto;
123
115
  background-position: 0 2px;
124
116
  }
125
-
126
- .gem-c-action-link__link {
127
- text-decoration: none;
128
- }
129
117
  }
130
118
 
131
119
  .gem-c-action-link--dark-icon {
@@ -150,10 +138,6 @@
150
138
  background-size: 25px auto;
151
139
  background-position: 0 2px;
152
140
  }
153
-
154
- .gem-c-action-link__link {
155
- text-decoration: none;
156
- }
157
141
  }
158
142
 
159
143
  .gem-c-action-link--transparent-icon {
@@ -177,25 +161,6 @@
177
161
  .gem-c-action-link--light-text {
178
162
  color: govuk-colour("white");
179
163
 
180
- .gem-c-action-link__link,
181
- .gem-c-action-link__subtext-link {
182
- text-decoration: underline;
183
-
184
- &:link,
185
- &:visited {
186
- color: govuk-colour("white");
187
- }
188
-
189
- &:hover {
190
- color: $gem-hover-dark-background;
191
- }
192
-
193
- &:focus {
194
- text-decoration: none;
195
- color: $govuk-focus-text-colour;
196
- }
197
- }
198
-
199
164
  .gem-c-action-link__subtext {
200
165
  &:before {
201
166
  border-color: govuk-colour("white");
@@ -25,19 +25,6 @@
25
25
  list-style-type: none;
26
26
  }
27
27
 
28
- .gem-c-contents-list--no-underline {
29
- .gem-c-contents-list__link {
30
- text-decoration: none;
31
-
32
- &:hover,
33
- &:active {
34
- text-decoration: underline;
35
- }
36
-
37
- @include govuk-template-link-focus-override;
38
- }
39
- }
40
-
41
28
  .gem-c-contents-list__link {
42
29
  .gem-c-contents-list__list-item--parent > & {
43
30
  font-weight: bold;
@@ -63,12 +63,6 @@
63
63
  }
64
64
 
65
65
  .gem-c-image-card__title-link {
66
- text-decoration: none;
67
-
68
- &:hover {
69
- text-decoration: underline;
70
- }
71
-
72
66
  &:focus {
73
67
  text-decoration: none;
74
68
  }
@@ -7,10 +7,6 @@
7
7
  box-sizing: border-box;
8
8
  }
9
9
 
10
- .gem-c-inverse-header a {
11
- color: govuk-colour("white");
12
- }
13
-
14
10
  .gem-c-inverse-header .gem-c-inverse-header__supplement,
15
11
  .gem-c-inverse-header .publication-header__last-changed {
16
12
  // This publication-header class is injected on publication pages, really
@@ -1,12 +1,14 @@
1
1
  // Default logo corresponds with the "medium stacked" Whitehall equivalent
2
2
  .gem-c-organisation-logo {
3
3
  font-size: 13px;
4
- line-height: (15 / 13);
5
4
  font-weight: 400;
5
+ line-height: 1.35;
6
+ // When this is a heading the margin needs to be set to stop it from
7
+ // inheriting the browser's default margin:
8
+ margin: 0;
6
9
 
7
10
  @include govuk-media-query($from: tablet) {
8
11
  font-size: 18px;
9
- line-height: 20px;
10
12
  }
11
13
  }
12
14
 
@@ -62,7 +64,12 @@
62
64
  font-family: "HelveticaNeue", "Helvetica Neue", "Arial", "Helvetica", sans-serif;
63
65
 
64
66
  &:hover {
65
- text-decoration: underline;
67
+ color: $govuk-link-hover-colour;
68
+ }
69
+
70
+ &:active {
71
+ color: govuk-colour("black");
72
+ @include govuk-link-hover-decoration;
66
73
  }
67
74
 
68
75
  &:focus {
@@ -31,6 +31,16 @@
31
31
  &:hover,
32
32
  &:active {
33
33
  background-color: govuk-colour("light-grey", $legacy: "grey-4");
34
+
35
+ // Add govuk-link hover decoration to title if no label present
36
+ .gem-c-pagination__link-text--decorated {
37
+ @include govuk-link-decoration;
38
+ }
39
+
40
+ .gem-c-pagination__link-label,
41
+ .gem-c-pagination__link-text--decorated {
42
+ @include govuk-link-hover-decoration;
43
+ }
34
44
  }
35
45
 
36
46
  &:focus {
@@ -73,8 +83,8 @@
73
83
  .gem-c-pagination__link-label {
74
84
  display: inline-block;
75
85
  margin-top: .1em;
76
- text-decoration: underline;
77
86
  margin-left: govuk-spacing(5);
87
+ @include govuk-link-decoration;
78
88
 
79
89
  @include govuk-media-query($from: tablet) {
80
90
  margin-left: govuk-spacing(6);
@@ -20,6 +20,7 @@ $gem-c-print-link-background-height: 18px;
20
20
  background: image-url("govuk_publishing_components/icon-print.png") no-repeat govuk-spacing(2) 50%;
21
21
  background-size: $gem-c-print-link-background-width $gem-c-print-link-background-height;
22
22
  padding: govuk-spacing(2) govuk-spacing(2) govuk-spacing(2) (govuk-spacing(4) + $gem-c-print-link-background-width);
23
+ text-decoration: none;
23
24
 
24
25
  @include govuk-device-pixel-ratio($ratio: 2) {
25
26
  background-image: image-url("govuk_publishing_components/icon-print-2x.png");
@@ -32,7 +33,6 @@ $gem-c-print-link-background-height: 18px;
32
33
 
33
34
  .gem-c-print-link__link {
34
35
  box-shadow: inset 0 0 0 1px $govuk-border-colour;
35
- text-decoration: none;
36
36
 
37
37
  &:focus {
38
38
  border: 0;
@@ -22,7 +22,6 @@ $share-button-height: 32px;
22
22
  .gem-c-share-links__link {
23
23
  @include govuk-font(16, $weight: bold);
24
24
  margin-right: govuk-spacing(6);
25
- text-decoration: none;
26
25
 
27
26
  @include govuk-template-link-focus-override;
28
27
  }
@@ -49,6 +49,7 @@
49
49
 
50
50
  &:hover {
51
51
  color: $govuk-link-hover-colour;
52
+ @include govuk-link-hover-decoration;
52
53
  }
53
54
 
54
55
  &:focus {
@@ -116,7 +116,8 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
116
116
  padding: 0 0 govuk-spacing(1);
117
117
 
118
118
  &:hover .gem-c-step-nav__button-text {
119
- text-decoration: underline;
119
+ @include govuk-link-decoration;
120
+ @include govuk-link-hover-decoration;
120
121
  }
121
122
 
122
123
  .gem-c-step-nav--large & {
@@ -125,6 +126,10 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
125
126
 
126
127
  &:focus {
127
128
  @include step-nav-chevron-focus-state;
129
+
130
+ .gem-c-step-nav__button-text {
131
+ text-decoration: none;
132
+ }
128
133
  }
129
134
  }
130
135
 
@@ -338,7 +343,8 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
338
343
  }
339
344
 
340
345
  .gem-c-step-nav__button-text {
341
- text-decoration: underline;
346
+ @include govuk-link-decoration;
347
+ @include govuk-link-hover-decoration;
342
348
  }
343
349
  }
344
350
  }
@@ -45,7 +45,6 @@
45
45
 
46
46
  .gem-c-subscription-links__item {
47
47
  display: inline-block;
48
- text-decoration: none;
49
48
  background-repeat: no-repeat;
50
49
  background-position: 0 20%;
51
50
 
@@ -55,6 +54,7 @@
55
54
  }
56
55
 
57
56
  .gem-c-subscription-links__item--button {
57
+ cursor: pointer;
58
58
  display: none;
59
59
  font-size: inherit;
60
60
  font-weight: inherit;
@@ -71,6 +71,10 @@
71
71
  color: $govuk-link-colour;
72
72
  }
73
73
 
74
+ &:hover {
75
+ color: $govuk-link-hover-colour;
76
+ }
77
+
74
78
  &:visited,
75
79
  &:active,
76
80
  &:focus {
@@ -106,7 +110,7 @@
106
110
  }
107
111
 
108
112
  .gem-c-subscription-links__icon {
109
- margin-right: .1em;
113
+ margin-right: govuk-spacing(1);
110
114
  color: govuk-colour("black");
111
115
  }
112
116
 
@@ -75,6 +75,7 @@
75
75
  // Links
76
76
 
77
77
  a {
78
+ @include govuk-link-common;
78
79
  @include govuk-link-style-default;
79
80
 
80
81
  &:focus {
@@ -1,3 +1,2 @@
1
- .gem-c-attachment__thumbnail-image {
2
- display: none;
3
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/government-frontend/blob/7a0b068a0faa1da07f58acf0b1d3a0aa3e1daf56/app/assets/stylesheets/print.scss#L2
@@ -1,3 +1,2 @@
1
- .gem-c-back-link {
2
- display: none;
3
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L2
@@ -6,7 +6,3 @@
6
6
  color: $govuk-text-colour;
7
7
  text-decoration: none;
8
8
  }
9
-
10
- .govuk-button__start-icon {
11
- display: none;
12
- }
@@ -1,3 +1,2 @@
1
- .gem-c-feedback {
2
- display: none;
3
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/government-frontend/blob/7a0b068a0faa1da07f58acf0b1d3a0aa3e1daf56/app/assets/stylesheets/print.scss#L6
@@ -1,6 +1,2 @@
1
- .gem-c-layout-footer {
2
- .govuk-footer__inline-list,
3
- .govuk-footer__section {
4
- display: none;
5
- }
6
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L5
@@ -1,3 +1,2 @@
1
- .gem-c-header__menu-button {
2
- display: none;
3
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L6
@@ -1,6 +1,2 @@
1
- .gem-c-metadata {
2
- .gem-c-metadata__definition-link,
3
- .gem-c-metadata__toggle-wrap {
4
- display: none;
5
- }
6
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/manuals-frontend/blob/466b4c7a6507a3d76818e26612f174616f5cdf94/app/assets/stylesheets/print.scss#L15
@@ -1,3 +1,2 @@
1
- .gem-c-search {
2
- display: none;
3
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L7
@@ -1,3 +1,2 @@
1
- .gem-c-share-links {
2
- display: none;
3
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/collections/blob/fc9db4ef6d87ad52d0ac795d1dd05d5fa116dde1/app/assets/stylesheets/print.scss#L9
@@ -1,3 +1,2 @@
1
- .gem-c-skip-link {
2
- display: none;
3
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L8
@@ -5,7 +5,3 @@
5
5
  .gem-c-step-nav-header__title {
6
6
  @include govuk-font(24, $weight: bold);
7
7
  }
8
-
9
- .gem-c-step-nav-header__skip-link {
10
- display: none;
11
- }
@@ -1,3 +1,2 @@
1
- .gem-c-subscription-links {
2
- display: none;
3
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/frontend/blob/34e84c7d6dc22bd4b06ce4c18a3d00b29fdcee83/app/assets/stylesheets/print.scss#L12
@@ -1,3 +1,2 @@
1
- .gem-c-translation-nav {
2
- display: none;
3
- }
1
+ // Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
2
+ // https://github.com/alphagov/government-frontend/blob/7a0b068a0faa1da07f58acf0b1d3a0aa3e1daf56/app/assets/stylesheets/print.scss#L16
@@ -32,6 +32,7 @@
32
32
 
33
33
  link_classes = %w(govuk-link gem-c-action-link__link)
34
34
  link_classes << shared_helper.classes if classes
35
+ link_classes << "govuk-link--inverse" if light_text
35
36
  %>
36
37
  <% if text.present? %>
37
38
  <div class="<%= css_classes.join(' ') %>">
@@ -55,7 +56,7 @@
55
56
  <span class="gem-c-action-link__subtext-wrapper">
56
57
  <% if subtext_href %>
57
58
  <%= content_tag(:span, subtext, class: "gem-c-action-link__subtext") do %>
58
- <%= link_to subtext, subtext_href, class: "gem-c-action-link__subtext-link govuk-link", data: data %>
59
+ <%= link_to subtext, subtext_href, class: link_classes, data: data %>
59
60
  <% end %>
60
61
  <% else %>
61
62
  <%= content_tag(:span, subtext, class: "gem-c-action-link__subtext") %>
@@ -27,12 +27,12 @@
27
27
 
28
28
  if attachment.number_of_pages
29
29
  attributes << tag.span(
30
- pluralize(attachment.number_of_pages, "page"),
30
+ t("components.attachment.page", count: attachment.number_of_pages),
31
31
  class: "gem-c-attachment__attribute",
32
32
  )
33
33
  end
34
34
  %>
35
- <%= tag.section class: "gem-c-attachment" do %>
35
+ <%= tag.section class: "gem-c-attachment govuk-!-display-none-print" do %>
36
36
  <%= tag.div class: "gem-c-attachment__thumbnail" do %>
37
37
  <%= link_to attachment.url,
38
38
  class: "govuk-link",
@@ -59,7 +59,7 @@
59
59
  <% end %>
60
60
 
61
61
  <% if attachment.reference.present? %>
62
- <%= tag.p "Ref: #{attachment.reference}", class: "gem-c-attachment__metadata gem-c-attachment__metadata--compact" %>
62
+ <%= tag.p t("components.attachment.reference", reference: attachment.reference), class: "gem-c-attachment__metadata gem-c-attachment__metadata--compact" %>
63
63
  <% end %>
64
64
 
65
65
  <% if attachment.unnumbered_reference.present? %>
@@ -71,7 +71,7 @@
71
71
  <% end %>
72
72
 
73
73
  <% if attachment.is_official_document && !hide_order_copy_link %>
74
- <%= tag.p link_to("Order a copy", "https://www.gov.uk/guidance/how-to-buy-printed-copies-of-official-documents", class: "govuk-link govuk-link--no-visited-state", target: "_blank"),
74
+ <%= tag.p link_to(t("components.attachment.order_a_copy"), "https://www.gov.uk/guidance/how-to-buy-printed-copies-of-official-documents", class: "govuk-link govuk-link--no-visited-state", target: "_blank"),
75
75
  class: "gem-c-attachment__metadata" %>
76
76
  <% end %>
77
77
 
@@ -24,7 +24,7 @@
24
24
 
25
25
  if attachment.number_of_pages
26
26
  attributes << tag.span(
27
- pluralize(attachment.number_of_pages, "page"),
27
+ I18n.t("components.attachment.page", count: attachment.number_of_pages),
28
28
  class: "gem-c-attachment-link__attribute",
29
29
  )
30
30
  end