govuk_publishing_components 42.0.0 → 42.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +18 -3
  4. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment-link.scss +15 -0
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +20 -0
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +20 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +27 -6
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_chat-entry.scss +36 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +6 -6
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +29 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +23 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +19 -0
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +16 -0
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +19 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +23 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +29 -0
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +6 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +16 -0
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +7 -0
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +21 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +8 -0
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +6 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +22 -0
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +8 -0
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +11 -0
  26. data/app/views/govuk_publishing_components/components/_action_link.html.erb +1 -1
  27. data/app/views/govuk_publishing_components/components/_attachment.html.erb +2 -2
  28. data/app/views/govuk_publishing_components/components/_chat_entry.html.erb +46 -0
  29. data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +6 -4
  30. data/app/views/govuk_publishing_components/components/_contextual_footer.html.erb +1 -1
  31. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +1 -1
  32. data/app/views/govuk_publishing_components/components/_error_alert.html.erb +1 -1
  33. data/app/views/govuk_publishing_components/components/_intervention.html.erb +1 -1
  34. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -2
  35. data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +3 -5
  36. data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +1 -1
  37. data/app/views/govuk_publishing_components/components/cross_service_header/_one_login_header.html.erb +1 -1
  38. data/app/views/govuk_publishing_components/components/cross_service_header/_service_header.html.erb +2 -2
  39. data/app/views/govuk_publishing_components/components/docs/chat_entry.yml +36 -0
  40. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +3 -3
  41. data/app/views/govuk_publishing_components/components/govuk_logo/_govuk_logo.html.erb +17 -0
  42. data/app/views/govuk_publishing_components/components/govuk_logo/_govuk_logo_crown_only.html.erb +15 -0
  43. data/app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb +6 -27
  44. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -13
  45. data/config/locales/ar.yml +4 -1
  46. data/config/locales/az.yml +4 -1
  47. data/config/locales/be.yml +4 -1
  48. data/config/locales/bg.yml +4 -1
  49. data/config/locales/bn.yml +4 -1
  50. data/config/locales/cs.yml +4 -1
  51. data/config/locales/cy.yml +4 -1
  52. data/config/locales/da.yml +4 -1
  53. data/config/locales/de.yml +4 -1
  54. data/config/locales/dr.yml +4 -1
  55. data/config/locales/el.yml +4 -1
  56. data/config/locales/en.yml +3 -0
  57. data/config/locales/es-419.yml +4 -1
  58. data/config/locales/es.yml +4 -1
  59. data/config/locales/et.yml +4 -1
  60. data/config/locales/fa.yml +4 -1
  61. data/config/locales/fi.yml +4 -1
  62. data/config/locales/fr.yml +4 -1
  63. data/config/locales/gd.yml +4 -1
  64. data/config/locales/gu.yml +4 -1
  65. data/config/locales/he.yml +4 -1
  66. data/config/locales/hi.yml +4 -1
  67. data/config/locales/hr.yml +4 -1
  68. data/config/locales/hu.yml +4 -1
  69. data/config/locales/hy.yml +4 -1
  70. data/config/locales/id.yml +4 -1
  71. data/config/locales/is.yml +4 -1
  72. data/config/locales/it.yml +4 -1
  73. data/config/locales/ja.yml +4 -1
  74. data/config/locales/ka.yml +4 -1
  75. data/config/locales/kk.yml +4 -1
  76. data/config/locales/ko.yml +4 -1
  77. data/config/locales/lt.yml +4 -1
  78. data/config/locales/lv.yml +4 -1
  79. data/config/locales/ms.yml +4 -1
  80. data/config/locales/mt.yml +4 -1
  81. data/config/locales/nl.yml +4 -1
  82. data/config/locales/no.yml +4 -1
  83. data/config/locales/pa-pk.yml +4 -1
  84. data/config/locales/pa.yml +4 -1
  85. data/config/locales/pl.yml +4 -1
  86. data/config/locales/ps.yml +4 -1
  87. data/config/locales/pt.yml +4 -1
  88. data/config/locales/ro.yml +4 -1
  89. data/config/locales/ru.yml +4 -1
  90. data/config/locales/si.yml +4 -1
  91. data/config/locales/sk.yml +4 -1
  92. data/config/locales/sl.yml +4 -1
  93. data/config/locales/so.yml +4 -1
  94. data/config/locales/sq.yml +4 -1
  95. data/config/locales/sr.yml +4 -1
  96. data/config/locales/sv.yml +4 -1
  97. data/config/locales/sw.yml +4 -1
  98. data/config/locales/ta.yml +4 -1
  99. data/config/locales/th.yml +4 -1
  100. data/config/locales/tk.yml +4 -1
  101. data/config/locales/tr.yml +4 -1
  102. data/config/locales/uk.yml +4 -1
  103. data/config/locales/ur.yml +4 -1
  104. data/config/locales/uz.yml +4 -1
  105. data/config/locales/vi.yml +4 -1
  106. data/config/locales/zh-hk.yml +4 -1
  107. data/config/locales/zh-tw.yml +4 -1
  108. data/config/locales/zh.yml +4 -1
  109. data/lib/govuk_publishing_components/presenters/contents_list_helper.rb +2 -1
  110. data/lib/govuk_publishing_components/version.rb +1 -1
  111. metadata +7 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53ba3400854819c86b537f469c0fbb470770a6e2f07883c45deed6719ecfa736
4
- data.tar.gz: 64598aed656f03a98d30c5e2aee89f8349b84556e3c02a792e7c6acfbd0f16f3
3
+ metadata.gz: 8860ec77d1ec938f607ec8248aa9a516196c2e4763d62a8bab7bbc8e2e720ae9
4
+ data.tar.gz: b2cde9ac80b27e106b1d43b45890a5dad01b12b58820910c5ad8774a2d0bca5d
5
5
  SHA512:
6
- metadata.gz: a22d5a04f588b36863ab34d37138c0079e597b319f2eeb7d1847250ff72a8c00b2438336f1e8dc6a30e800add4ac778b435320704908f45476579a97329cc816
7
- data.tar.gz: 0bb05292aea85d4bf2266c391f88bd0d27bf5a13f5229ff6865519acfba394fc81bfeffbc85453834114c82fe90c7593bc797fc963bc12551e04179f7c5be91b
6
+ metadata.gz: 8c7e1abf08f45f1c6eedd98c85b7dbb7dba651f3cd849f45c98884e5aac3d432cdd255d49841109383d5445dc2514b7c839878344e9c29307f1f21a048cd0605
7
+ data.tar.gz: 13d9d6839e9c9cc97034e88a88fbdfca8053d883a301d9927e97ee12f9cc14a13f6edb2ec76e69b46caecad228b5c476adf85856362790c0fe905e8bd4e0b26e
@@ -18,6 +18,7 @@
18
18
  @import "components/button";
19
19
  @import "components/cards";
20
20
  @import "components/character-count";
21
+ @import "components/chat-entry";
21
22
  @import "components/checkboxes";
22
23
  @import "components/contents-list";
23
24
  @import "components/contextual-guidance";
@@ -11,10 +11,15 @@
11
11
  //
12
12
  // TODO: Replace with the print styles that will come from GOV.UK Frontend.
13
13
 
14
+ // stylelint-disable declaration-no-important
14
15
  @include govuk-media-query($media-type: print) {
15
16
  // Open all of the accordion sections.
16
17
  .govuk-accordion__section-content {
17
- display: block !important; // stylelint-disable-line declaration-no-important
18
+ display: block !important;
19
+
20
+ > :last-child {
21
+ margin-bottom: 20px;
22
+ }
18
23
  }
19
24
 
20
25
  .govuk-frontend-supported .govuk-accordion__section-content[hidden] {
@@ -25,7 +30,9 @@
25
30
 
26
31
  // Change the colour from the blue link colour to black.
27
32
  .govuk-accordion__section-button {
28
- color: govuk-colour("black") !important; // stylelint-disable-line declaration-no-important
33
+ color: govuk-colour("black") !important;
34
+ padding: 20px 0 0 !important;
35
+ border-bottom: 0 !important;
29
36
  }
30
37
 
31
38
  // Change the summary subheading size.
@@ -37,6 +44,14 @@
37
44
  // Hide the unusable "Show all" and "Show" sections.
38
45
  .govuk-accordion__show-all,
39
46
  .govuk-accordion__section-toggle {
40
- display: none !important; // stylelint-disable-line declaration-no-important
47
+ display: none !important;
48
+ }
49
+
50
+ // Remove extra space for expanded accordions, not needed on a printout
51
+ .govuk-accordion__section--expanded {
52
+ .govuk-accordion__section-content {
53
+ padding: 0 !important;
54
+ }
41
55
  }
42
56
  }
57
+ // stylelint-enable declaration-no-important
@@ -1,4 +1,19 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-attachment-link__abbr {
2
4
  text-decoration: none;
3
5
  cursor: help;
4
6
  }
7
+
8
+ // stylelint-disable declaration-no-important
9
+ @include govuk-media-query($media-type: print) {
10
+ .gem-c-attachment-link .govuk-link {
11
+ color: $govuk-print-text-colour !important;
12
+
13
+ &::after {
14
+ font-size: inherit;
15
+ color: inherit;
16
+ }
17
+ }
18
+ }
19
+ // stylelint-enable declaration-no-important
@@ -84,3 +84,23 @@ $thumbnail-icon-border-colour: govuk-colour("mid-grey");
84
84
  text-decoration: none;
85
85
  cursor: help;
86
86
  }
87
+
88
+ @include govuk-media-query($media-type: print) {
89
+ .gem-c-attachment__details {
90
+ padding: 0;
91
+ }
92
+
93
+ .gem-c-attachment__metadata,
94
+ .gem-c-attachment__metadata .govuk-link::after {
95
+ font-size: 12pt;
96
+ }
97
+
98
+ .gem-c-attachment__link.govuk-link {
99
+ word-break: break-word;
100
+
101
+ &::after {
102
+ font-size: 12pt;
103
+ line-height: 1 !important; // stylelint-disable-line declaration-no-important
104
+ }
105
+ }
106
+ }
@@ -54,3 +54,23 @@
54
54
  }
55
55
  }
56
56
  }
57
+
58
+ @include govuk-media-query($media-type: print) {
59
+ .gem-c-breadcrumbs {
60
+ font-size: 12pt;
61
+ }
62
+
63
+ .gem-c-breadcrumbs,
64
+ .govuk-breadcrumbs {
65
+ .govuk-breadcrumbs__list-item {
66
+ .govuk-breadcrumbs__link:link,
67
+ .govuk-breadcrumbs__link:visited {
68
+ color: $govuk-print-text-colour;
69
+ }
70
+
71
+ &::before {
72
+ border-color: $govuk-print-text-colour;
73
+ }
74
+ }
75
+ }
76
+ }
@@ -143,21 +143,42 @@
143
143
  }
144
144
  }
145
145
 
146
+ // stylelint-disable declaration-no-important
146
147
  @include govuk-media-query($media-type: print) {
147
148
  .gem-c-cards__list {
148
149
  display: block;
149
150
  }
150
151
 
151
152
  .gem-c-cards__list-item {
152
- padding-bottom: 0;
153
+ padding: 0;
153
154
  }
154
155
 
155
- .gem-c-cards__sub-heading {
156
- margin-top: govuk-spacing(4);
157
- margin-bottom: govuk-spacing(1);
156
+ .gem-c-cards__list-item-wrapper {
157
+ padding: 5mm 0;
158
+ }
159
+
160
+ .gem-c-cards__description {
161
+ margin: 0;
158
162
  }
159
163
 
160
- .gem-c-cards__link::before {
161
- display: none;
164
+ .gem-c-cards__link {
165
+ &,
166
+ &:link,
167
+ &:link:visited {
168
+ color: $govuk-print-text-colour !important;
169
+ }
170
+
171
+ &::before {
172
+ display: none;
173
+ }
174
+
175
+ &::after {
176
+ position: static;
177
+ display: block;
178
+ margin: 1mm auto;
179
+ font-size: 12pt !important;
180
+ color: $govuk-print-text-colour;
181
+ }
162
182
  }
163
183
  }
184
+ // stylelint-enable declaration-no-important
@@ -0,0 +1,36 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
3
+ .gem-c-chat-entry {
4
+ display: flex;
5
+ align-items: flex-start;
6
+ }
7
+
8
+ .gem-c-chat-entry--border-top {
9
+ border-top: 2px solid govuk-colour("blue");
10
+ padding-top: govuk-spacing(5);
11
+ }
12
+
13
+ .gem-c-chat-entry--border-bottom {
14
+ border-bottom: 2px solid govuk-colour("blue");
15
+ padding-bottom: govuk-spacing(5);
16
+ }
17
+
18
+ .gem-c-chat-entry__image {
19
+ flex-shrink: 0;
20
+ height: 104px;
21
+ margin-right: govuk-spacing(3);
22
+ width: 104px;
23
+
24
+ @include govuk-media-query($from: tablet) {
25
+ height: 80px;
26
+ width: 80px;
27
+ }
28
+ }
29
+
30
+ .gem-c-chat-entry__heading {
31
+ margin: 0 0 govuk-spacing(2);
32
+ font-size: 19px;
33
+ font-size: govuk-px-to-rem(19);
34
+ line-height: 1.25;
35
+ @include govuk-typography-common;
36
+ }
@@ -84,14 +84,14 @@
84
84
  margin-left: 0;
85
85
  }
86
86
 
87
- // Put indentation back where we use list style types
88
- .gem-c-contents-list__list-item--dashed {
89
- margin-left: govuk-spacing(3);
90
- list-style-type: disc;
91
- }
92
-
93
87
  .gem-c-contents-list__list-item--numbered,
94
88
  .gem-c-contents-list__list-item--parent {
95
89
  list-style-type: none;
96
90
  }
91
+
92
+ .gem-c-contents-list__link {
93
+ &.govuk-link {
94
+ color: $govuk-print-text-colour;
95
+ }
96
+ }
97
97
  }
@@ -436,3 +436,32 @@ $govuk-header-link-underline-thickness: 3px;
436
436
  }
437
437
  }
438
438
  // end service navigation styles
439
+
440
+ @include govuk-media-query($media-type: print) {
441
+ .gem-c-cross-service-header {
442
+ margin-bottom: 5mm;
443
+ }
444
+
445
+ .gem-c-one-login-header {
446
+ background-color: initial;
447
+ border-bottom: 2pt solid $govuk-print-text-colour;
448
+
449
+ * {
450
+ color: $govuk-print-text-colour;
451
+ }
452
+
453
+ .govuk-width-container {
454
+ margin: 0;
455
+ }
456
+ }
457
+
458
+ .gem-c-service-header {
459
+ .govuk-width-container {
460
+ margin: 0;
461
+ }
462
+
463
+ .gem-c-service-header__container {
464
+ padding: 0;
465
+ }
466
+ }
467
+ }
@@ -10,3 +10,26 @@
10
10
  padding: govuk-spacing(4) govuk-spacing(6);
11
11
  }
12
12
  }
13
+
14
+ // stylelint-disable declaration-no-important
15
+ @include govuk-media-query($media-type: print) {
16
+ .gem-c-devolved-nations {
17
+ border: 2pt solid $govuk-print-text-colour;
18
+ margin: 0 0 5mm;
19
+
20
+ * {
21
+ color: $govuk-print-text-colour !important;
22
+ }
23
+
24
+ .govuk-list li {
25
+ margin-bottom: 2mm;
26
+ }
27
+
28
+ .govuk-link::after {
29
+ display: block;
30
+ margin: 1mm auto;
31
+ font-size: 12pt;
32
+ }
33
+ }
34
+ }
35
+ // stylelint-enable declaration-no-important
@@ -183,3 +183,22 @@
183
183
  display: none;
184
184
  }
185
185
  }
186
+
187
+ // stylelint-disable declaration-no-important
188
+ @include govuk-media-query($media-type: print) {
189
+ .gem-c-document-list__item {
190
+ break-inside: avoid;
191
+ }
192
+
193
+ .gem-c-document-list__item-title {
194
+ .govuk-link {
195
+ color: $govuk-print-text-colour !important;
196
+ }
197
+
198
+ .govuk-link::after {
199
+ display: block;
200
+ margin: 1mm auto;
201
+ }
202
+ }
203
+ }
204
+ // stylelint-enable declaration-no-important
@@ -45,3 +45,19 @@
45
45
  .gem-c-heading--inverse {
46
46
  color: govuk-colour("white");
47
47
  }
48
+
49
+ // stylelint-disable declaration-no-important
50
+ @include govuk-media-query($media-type: print) {
51
+ // Override margins and colors
52
+ .gem-c-heading {
53
+ margin: 0 !important;
54
+ color: $govuk-print-text-colour !important;
55
+ border-color: $govuk-print-text-colour !important;
56
+ padding: 0;
57
+ }
58
+
59
+ .gem-c-heading--padding[class*="--border-top"] {
60
+ padding-top: govuk-spacing(3);
61
+ }
62
+ }
63
+ // stylelint-enable declaration-no-important
@@ -347,3 +347,22 @@
347
347
  }
348
348
  }
349
349
  }
350
+
351
+ // stylelint-disable declaration-no-important
352
+ @include govuk-media-query($media-type: print) {
353
+ .gem-c-image-card__title[class*="govuk-heading-"] {
354
+ font-size: 16pt;
355
+ }
356
+
357
+ .gem-c-image-card__title-link {
358
+ color: $govuk-print-text-colour !important;
359
+
360
+ &::after {
361
+ display: block;
362
+ position: static;
363
+ margin-top: 2mm;
364
+ font-size: 12pt !important;
365
+ }
366
+ }
367
+ }
368
+ // stylelint-enable declaration-no-important
@@ -1,2 +1,25 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
  @import "govuk/components/inset-text/inset-text";
3
+
4
+ // stylelint-disable declaration-no-important
5
+ @include govuk-media-query($media-type: print) {
6
+ .gem-c-inset-text {
7
+ break-inside: avoid;
8
+ }
9
+
10
+ .gem-c-inset-text .govuk-link {
11
+ &,
12
+ &:link,
13
+ &:link:visited {
14
+ color: $govuk-print-text-colour !important;
15
+ }
16
+
17
+ &::after {
18
+ display: block;
19
+ margin: 1mm auto;
20
+ font-size: 12pt !important;
21
+ color: $govuk-print-text-colour;
22
+ }
23
+ }
24
+ }
25
+ // stylelint-enable declaration-no-important
@@ -21,3 +21,32 @@
21
21
  height: 1em;
22
22
  margin-bottom: -2px;
23
23
  }
24
+
25
+ // stylelint-disable declaration-no-important
26
+ @include govuk-media-query($media-type: print) {
27
+ .gem-c-intervention {
28
+ break-inside: avoid;
29
+ background-color: transparent;
30
+ border-color: $govuk-print-text-colour;
31
+
32
+ .govuk-body {
33
+ margin: 0;
34
+ }
35
+ }
36
+
37
+ .gem-c-intervention .govuk-link {
38
+ &,
39
+ &:link,
40
+ &:link:visited {
41
+ color: $govuk-print-text-colour !important;
42
+ }
43
+
44
+ &::after {
45
+ display: block;
46
+ margin: 1mm auto;
47
+ font-size: 12pt !important;
48
+ color: $govuk-print-text-colour;
49
+ }
50
+ }
51
+ }
52
+ // stylelint-enable declaration-no-important
@@ -12,3 +12,9 @@
12
12
  .gem-c-lead-paragraph--inverse {
13
13
  color: govuk-colour("white");
14
14
  }
15
+
16
+ @include govuk-media-query($media-type: print) {
17
+ .gem-c-lead-paragraph {
18
+ color: $govuk-print-text-colour;
19
+ }
20
+ }
@@ -94,3 +94,19 @@
94
94
  .govuk-frontend-supported .gem-c-metadata__toggle-items.js-hidden {
95
95
  display: none;
96
96
  }
97
+
98
+ // stylelint-disable declaration-no-important
99
+ @include govuk-media-query($media-type: print) {
100
+ .gem-c-metadata {
101
+ break-inside: avoid;
102
+ color: $govuk-print-text-colour !important;
103
+ background-color: unset;
104
+ margin-bottom: 5mm;
105
+
106
+ a,
107
+ a:visited {
108
+ color: $govuk-print-text-colour !important;
109
+ }
110
+ }
111
+ }
112
+ // stylelint-enable declaration-no-important
@@ -145,3 +145,10 @@
145
145
  @include crest($crest: "wales_crest", $xpos: 9px);
146
146
  @include tall-crest;
147
147
  }
148
+
149
+ @include govuk-media-query($media-type: print) {
150
+ .gem-c-organisation-logo__container {
151
+ print-color-adjust: exact;
152
+ -webkit-print-color-adjust: exact;
153
+ }
154
+ }
@@ -26,3 +26,24 @@
26
26
  }
27
27
  }
28
28
  }
29
+
30
+ // stylelint-disable declaration-no-important
31
+ @include govuk-media-query($media-type: print) {
32
+ .gem-c-phase-banner {
33
+ &,
34
+ & * {
35
+ background-color: unset !important;
36
+ color: $govuk-print-text-colour !important;
37
+ }
38
+
39
+ .govuk-tag {
40
+ border: 1pt solid $govuk-print-text-colour;
41
+ }
42
+ }
43
+
44
+ .govuk-phase-banner__content__app-name {
45
+ margin-bottom: 1mm;
46
+ font-size: 12pt;
47
+ }
48
+ }
49
+ // stylelint-enable declaration-no-important
@@ -1,2 +1,10 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
  @import "govuk/components/pagination/pagination";
3
+
4
+ // stylelint-disable declaration-no-important
5
+ @include govuk-media-query($media-type: print) {
6
+ .govuk-pagination * {
7
+ color: $govuk-print-text-colour !important;
8
+ }
9
+ }
10
+ // stylelint-enable declaration-no-important
@@ -30,6 +30,12 @@ $large-input-size: 50px;
30
30
  .gem-c-search__label {
31
31
  display: block;
32
32
  color: $govuk-text-colour;
33
+ cursor: text;
34
+ max-width: 68%;
35
+ text-overflow: ellipsis;
36
+ height: 90%;
37
+ overflow: hidden;
38
+ white-space: nowrap;
33
39
  @include govuk-font($size: 19, $line-height: $input-size);
34
40
 
35
41
  h1 {
@@ -4,3 +4,25 @@
4
4
  .gem-c-success-alert__message {
5
5
  @include govuk-font(19, $weight: bold);
6
6
  }
7
+
8
+ // stylelint-disable declaration-no-important
9
+ @include govuk-media-query($media-type: print) {
10
+ .gem-c-success-alert {
11
+ break-inside: avoid;
12
+ background-color: initial;
13
+ border-color: $govuk-print-text-colour;
14
+
15
+ * {
16
+ color: $govuk-print-text-colour !important;
17
+ }
18
+
19
+ .govuk-notification-banner__header {
20
+ border-bottom: 1pt solid $govuk-print-text-colour;
21
+ }
22
+
23
+ .govuk-notification-banner__title {
24
+ padding: 2mm 0;
25
+ }
26
+ }
27
+ }
28
+ // stylelint-enable declaration-no-important
@@ -32,6 +32,10 @@
32
32
  }
33
33
 
34
34
  @include govuk-media-query($media-type: print) {
35
+ .gem-c-title {
36
+ margin: 5mm 0 10mm !important; // stylelint-disable-line declaration-no-important
37
+ }
38
+
35
39
  .gem-c-title__context {
36
40
  margin: 0;
37
41
  }
@@ -39,4 +43,8 @@
39
43
  .gem-c-title__text {
40
44
  margin-top: 0;
41
45
  }
46
+
47
+ .gem-c-title--inverse {
48
+ color: $govuk-print-text-colour;
49
+ }
42
50
  }
@@ -21,3 +21,14 @@
21
21
  .gem-c-warning-text__text--highlight {
22
22
  color: $govuk-error-colour;
23
23
  }
24
+
25
+ @include govuk-media-query($media-type: print) {
26
+ .gem-c-warning-text * {
27
+ color: $govuk-print-text-colour;
28
+ }
29
+
30
+ .govuk-warning-text__icon {
31
+ background-color: transparent;
32
+ color: $govuk-print-text-colour;
33
+ }
34
+ }
@@ -17,7 +17,7 @@
17
17
  dark_large_icon ||= false
18
18
  light_icon ||= false
19
19
 
20
- css_classes = %w(gem-c-action-link)
20
+ css_classes = %w(gem-c-action-link govuk-!-display-none-print)
21
21
  css_classes << "gem-c-action-link--light-text" if light_text
22
22
  css_classes << "gem-c-action-link--dark-icon" if dark_icon
23
23
  css_classes << "gem-c-action-link--dark-large-icon" if dark_large_icon
@@ -10,7 +10,7 @@
10
10
  details_ga4_attributes ||= {}
11
11
  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
12
12
 
13
- container_class_names = %w[gem-c-attachment govuk-!-display-none-print]
13
+ container_class_names = %w[gem-c-attachment]
14
14
  container_class_names << shared_helper.get_margin_bottom if local_assigns.key?(:margin_bottom)
15
15
  ga4_link = { 'event_name': 'navigation', 'type': 'attachment' }
16
16
 
@@ -58,7 +58,7 @@
58
58
  data_attributes[:ga4_link] = ga4_link
59
59
  %>
60
60
  <%= tag.section class: class_names(container_class_names), data: { module: "ga4-link-tracker" } do %>
61
- <%= tag.div class: "gem-c-attachment__thumbnail" do %>
61
+ <%= tag.div class: "gem-c-attachment__thumbnail govuk-!-display-none-print" do %>
62
62
  <%= link_to attachment.url,
63
63
  class: "govuk-link",
64
64
  target: target,
@@ -0,0 +1,46 @@
1
+ <%
2
+ add_gem_component_stylesheet("chat-entry")
3
+ local_assigns[:margin_bottom] ||= 6
4
+ shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
5
+ href ||= "/chat"
6
+ heading_text ||= t("components.chat_entry.heading")
7
+ description_text ||= t("components.chat_entry.description")
8
+ border_top ||= false
9
+ border_bottom ||= false
10
+
11
+ component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
12
+ component_helper.add_class("gem-c-chat-entry")
13
+ component_helper.add_class("gem-c-chat-entry--border-top") if border_top
14
+ component_helper.add_class("gem-c-chat-entry--border-bottom") if border_bottom
15
+ component_helper.add_class(shared_helper.get_margin_bottom)
16
+ %>
17
+
18
+ <%= tag.div(**component_helper.all_attributes) do %>
19
+ <svg class="gem-c-chat-entry__image" viewBox="0 0 104 104" fill="none" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
20
+ <rect width="100%" height="100%" fill="#D2E2F1" />
21
+ <path d="M37.5733 65.7452L51.6131 77.9999H27.9707L37.5733 65.7452Z" fill="#1D70B8" />
22
+ <path d="M52 78C66.3594 78 78 66.3594 78 52C78 37.6406 66.3594 26 52 26C37.6406 26 26 37.6406 26 52C26 66.3594 37.6406 78 52 78Z" fill="#1D70B8" />
23
+ <mask id="mask0_48346_4836" style="mask-type: alpha" maskUnits="userSpaceOnUse" x="40" y="58" width="24" height="10">
24
+ <rect x="41.2962" y="59.1165" width="21.4029" height="6.98153" fill="#D9D9D9" stroke="#F499BE" stroke-width="1.89313" />
25
+ </mask>
26
+ <g mask="url(#mask0_48346_4836)">
27
+ <path
28
+ d="M46.5668 60.156C47.8844 63.1549 51.3835 64.518 54.3824 63.2004C57.3813 61.8829 58.7443 58.3837 57.4268 55.3848C56.1093 52.3859 52.6101 51.0229 49.6112 52.3404C46.6123 53.658 45.2493 57.1571 46.5668 60.156Z"
29
+ stroke="#F499BE"
30
+ stroke-width="4.43733"
31
+ />
32
+ </g>
33
+ <path d="M43.3401 39.3198L50.2778 51.515H36.4023L43.3401 39.3198Z" fill="#FFDD00" />
34
+ <circle cx="60.2488" cy="45.4078" r="6.10621" fill="#F47738" />
35
+ </svg>
36
+
37
+ <div class="gem-c-chat-entry__description">
38
+ <%= content_tag(shared_helper.get_heading_level, class: "gem-c-chat-entry__heading") do %>
39
+ <%= link_to heading_text, href, class: "govuk-link" %>
40
+ <% end %>
41
+
42
+ <% if description_text %>
43
+ <p class="govuk-body govuk-!-margin-bottom-0"><%= description_text %></p>
44
+ <% end %>
45
+ </div>
46
+ <% end %>