@comicrelief/component-library 8.33.2 → 8.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/components/Atoms/Link/Link.style.js +3 -4
  2. package/dist/components/Atoms/Link/Link.test.js +12 -15
  3. package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +8 -6
  4. package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +4 -5
  5. package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +4 -5
  6. package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +16 -20
  7. package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +4 -5
  8. package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +4 -5
  9. package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.test.js +1 -1
  10. package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +683 -0
  11. package/dist/theme/crTheme/linkStyles.js +5 -9
  12. package/package.json +1 -1
  13. package/src/components/Atoms/Link/Link.style.js +3 -4
  14. package/src/components/Atoms/Link/Link.test.js +12 -15
  15. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +8 -6
  16. package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +4 -5
  17. package/src/components/Molecules/PartnerLink/PartnerLink.test.js +4 -5
  18. package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +16 -20
  19. package/src/components/Organisms/CookieBanner/CookieBanner.test.js +4 -5
  20. package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +4 -5
  21. package/src/components/Organisms/WYMDCarousel/WYMDCarousel.test.js +1 -1
  22. package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +683 -0
  23. package/src/theme/crTheme/linkStyles.js +6 -12
@@ -0,0 +1,683 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders correctly:
4
+ .c1 {
5
+ font-size: 1rem;
6
+ line-height: 1rem;
7
+ text-transform: inherit;
8
+ font-weight: bold;
9
+ line-height: normal;
10
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
11
+ }
12
+
13
+ .c3 {
14
+ color: #E52630;
15
+ font-size: 1rem;
16
+ line-height: 1rem;
17
+ text-transform: uppercase;
18
+ font-weight: normal;
19
+ font-family: 'Anton',Impact,sans-serif;
20
+ -webkit-letter-spacing: 0.03rem;
21
+ -moz-letter-spacing: 0.03rem;
22
+ -ms-letter-spacing: 0.03rem;
23
+ letter-spacing: 0.03rem;
24
+ }
25
+
26
+ .c5 {
27
+ font-size: 1rem;
28
+ line-height: 1rem;
29
+ text-transform: inherit;
30
+ line-height: normal;
31
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
32
+ }
33
+
34
+ .c2 {
35
+ width: 75%;
36
+ margin: 0 auto;
37
+ }
38
+
39
+ .c2:first-child {
40
+ margin-bottom: 2rem;
41
+ text-align: center;
42
+ font-size: 16px;
43
+ line-height: 19.5px;
44
+ }
45
+
46
+ .c4 {
47
+ margin-bottom: 2rem;
48
+ text-align: center;
49
+ font-size: 34px;
50
+ line-height: 37px;
51
+ }
52
+
53
+ .c6 {
54
+ margin-bottom: 0;
55
+ text-align: center;
56
+ font-size: 12px;
57
+ line-height: 14.63px;
58
+ }
59
+
60
+ .c0 {
61
+ height: 100%;
62
+ background-color: #FFFFFF;
63
+ max-width: 760px;
64
+ padding: 2rem;
65
+ margin: 0 auto;
66
+ border-radius: 20px;
67
+ box-shadow: 0px 0px 20px rgba(0,0,0,0.15);
68
+ }
69
+
70
+ .c0 .carousel {
71
+ position: relative;
72
+ margin: 0 auto;
73
+ padding-top: 2rem;
74
+ }
75
+
76
+ .c0 .carousel button.carousel__back-button,
77
+ .c0 .carousel button.carousel__next-button {
78
+ position: absolute;
79
+ left: 0;
80
+ top: 0;
81
+ width: 33% !important;
82
+ height: 100%;
83
+ padding: 0 !important;
84
+ box-shadow: none;
85
+ text-indent: -9999px;
86
+ background-color: transparent;
87
+ border: none;
88
+ }
89
+
90
+ .c0 .carousel button.carousel__back-button:after,
91
+ .c0 .carousel button.carousel__next-button:after {
92
+ content: "";
93
+ position: absolute;
94
+ top: 0;
95
+ left: 0;
96
+ width: 50%;
97
+ height: 100%;
98
+ -webkit-transition: opacity 0.2s linear;
99
+ transition: opacity 0.2s linear;
100
+ background: linear-gradient(90deg,rgba(255,255,255,1),rgba(255,255,255,0.5),rgba(255,255,255,0));
101
+ }
102
+
103
+ .c0 .carousel button.carousel__back-button:hover:after,
104
+ .c0 .carousel button.carousel__next-button:hover:after {
105
+ opacity: 0.5;
106
+ }
107
+
108
+ .c0 .carousel button.carousel__next-button {
109
+ left: auto;
110
+ right: 0;
111
+ }
112
+
113
+ .c0 .carousel button.carousel__next-button:before {
114
+ -webkit-transform: translate(0,-50%) rotate(-90deg);
115
+ -ms-transform: translate(0,-50%) rotate(-90deg);
116
+ transform: translate(0,-50%) rotate(-90deg);
117
+ }
118
+
119
+ .c0 .carousel button.carousel__next-button:after {
120
+ left: auto;
121
+ right: 0;
122
+ background: linear-gradient(270deg,rgba(255,255,255,1),rgba(255,255,255,0.5),rgba(255,255,255,0));
123
+ }
124
+
125
+ .c0 .carousel .wymd-carousel {
126
+ -webkit-transition: -webkit-transform 0.75s;
127
+ -webkit-transition: -webkit-transform 0.75s;
128
+ transition: -webkit-transform 0.75s;
129
+ -o-transition: transform 0.75s;
130
+ -webkit-transition: -webkit-transform 0.75s;
131
+ -webkit-transition: transform 0.75s;
132
+ transition: transform 0.75s;
133
+ -webkit-transform: 0.75s;
134
+ will-change: transform;
135
+ }
136
+
137
+ .c0 .carousel .wymd-carousel .last-slide .image-wrapper:after {
138
+ content: none;
139
+ }
140
+
141
+ .c0 .carousel .wymd-carousel .carousel__slide {
142
+ padding-bottom: 425px !important;
143
+ }
144
+
145
+ .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide {
146
+ text-align: center;
147
+ display: -webkit-inline-box;
148
+ display: -webkit-inline-flex;
149
+ display: -ms-inline-flexbox;
150
+ display: inline-flex;
151
+ -webkit-align-items: center;
152
+ -webkit-box-align: center;
153
+ -ms-flex-align: center;
154
+ align-items: center;
155
+ -webkit-box-pack: start;
156
+ -webkit-justify-content: flex-start;
157
+ -ms-flex-pack: start;
158
+ justify-content: flex-start;
159
+ -webkit-flex-direction: column;
160
+ -ms-flex-direction: column;
161
+ flex-direction: column;
162
+ }
163
+
164
+ @media (min-width:1024px) {
165
+ .c2:first-child {
166
+ font-size: 20px;
167
+ line-height: 24.38px;
168
+ }
169
+ }
170
+
171
+ @media (min-width:740px) {
172
+ .c4 {
173
+ font-size: 60px;
174
+ line-height: 60px;
175
+ }
176
+ }
177
+
178
+ @media (min-width:1024px) {
179
+ .c4 {
180
+ font-size: 64px;
181
+ line-height: 68px;
182
+ }
183
+ }
184
+
185
+ @media (min-width:740px) {
186
+ .c6 {
187
+ font-size: 17px;
188
+ line-height: 19px;
189
+ }
190
+ }
191
+
192
+ @media (min-width:1024px) {
193
+ .c0 .carousel {
194
+ padding-top: 2rem;
195
+ }
196
+ }
197
+
198
+ @media (min-width:740px) {
199
+ .c0 .carousel button.carousel__back-button,
200
+ .c0 .carousel button.carousel__next-button {
201
+ width: 33.3% !important;
202
+ }
203
+
204
+ .c0 .carousel button.carousel__back-button:after,
205
+ .c0 .carousel button.carousel__next-button:after {
206
+ width: 100%;
207
+ }
208
+ }
209
+
210
+ @media (min-width:740px) {
211
+ .c0 .carousel .wymd-carousel .carousel__slide {
212
+ padding-bottom: 450px !important;
213
+ }
214
+
215
+ .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide > div:first-child {
216
+ -webkit-transition: -webkit-transform 0.75s ease;
217
+ -webkit-transition: transform 0.75s ease;
218
+ transition: transform 0.75s ease;
219
+ -webkit-transform: scale(0.5);
220
+ -ms-transform: scale(0.5);
221
+ transform: scale(0.5);
222
+ }
223
+
224
+ .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide > div:first-child:after {
225
+ -webkit-transition: -webkit-transform 0.75s ease,width 0.75s ease,right 0.75s ease;
226
+ -webkit-transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;
227
+ transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;
228
+ right: calc(-300% - 6px);
229
+ -webkit-transform: scale(1);
230
+ -ms-transform: scale(1);
231
+ transform: scale(1);
232
+ width: 300%;
233
+ }
234
+
235
+ .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide .all-text-wrapper {
236
+ -webkit-transition: -webkit-transform 0.75s ease;
237
+ -webkit-transition: transform 0.75s ease;
238
+ transition: transform 0.75s ease;
239
+ -webkit-transform-origin: top;
240
+ -ms-transform-origin: top;
241
+ transform-origin: top;
242
+ -webkit-transform: translateY(calc(-45px + 5%)) scale(0.5);
243
+ -ms-transform: translateY(calc(-45px + 5%)) scale(0.5);
244
+ transform: translateY(calc(-45px + 5%)) scale(0.5);
245
+ }
246
+
247
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible .carousel__inner-slide > div:first-child:after {
248
+ right: calc(-300% - 6px);
249
+ -webkit-transform: scale(1);
250
+ -ms-transform: scale(1);
251
+ transform: scale(1);
252
+ width: 300%;
253
+ }
254
+
255
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child {
256
+ -webkit-transform: scale(1);
257
+ -ms-transform: scale(1);
258
+ transform: scale(1);
259
+ }
260
+
261
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {
262
+ right: calc(-222% - 6px);
263
+ -webkit-transform: scale(0.5);
264
+ -ms-transform: scale(0.5);
265
+ transform: scale(0.5);
266
+ width: 300%;
267
+ }
268
+
269
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .all-text-wrapper {
270
+ -webkit-transform: translateY(0) scale(1);
271
+ -ms-transform: translateY(0) scale(1);
272
+ transform: translateY(0) scale(1);
273
+ }
274
+
275
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible > div > div:first-child {
276
+ -webkit-transform: scale(0.5);
277
+ -ms-transform: scale(0.5);
278
+ transform: scale(0.5);
279
+ }
280
+
281
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible > div > div:first-child:after {
282
+ right: calc(-300% - 6px);
283
+ -webkit-transform: scale(1);
284
+ -ms-transform: scale(1);
285
+ transform: scale(1);
286
+ width: 300%;
287
+ }
288
+
289
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible .all-text-wrapper {
290
+ -webkit-transform: translateY(calc(-45px + 5%)) scale(0.5);
291
+ -ms-transform: translateY(calc(-45px + 5%)) scale(0.5);
292
+ transform: translateY(calc(-45px + 5%)) scale(0.5);
293
+ }
294
+ }
295
+
296
+ @media (min-width:1024px) {
297
+ .c0 .carousel .wymd-carousel .carousel__slide {
298
+ padding-bottom: 475px !important;
299
+ }
300
+
301
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible .carousel__inner-slide > div:first-child:after {
302
+ right: calc(-250% - 6px);
303
+ width: 250%;
304
+ }
305
+
306
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {
307
+ right: calc(-187% - 6px);
308
+ width: 250%;
309
+ }
310
+
311
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {
312
+ right: calc(-250% - 6px);
313
+ width: 250%;
314
+ }
315
+ }
316
+
317
+ <div
318
+ className="c0 CarouselWrapper"
319
+ id="7zdR84QkZwrTh9NWx2H926"
320
+ >
321
+ <p
322
+ className="c1 c2"
323
+ color="inherit"
324
+ size="s"
325
+ >
326
+ Over the past two years, we’ve supported
327
+ </p>
328
+ <h1
329
+ className="c3 c4"
330
+ color="red"
331
+ size="s"
332
+ >
333
+ 11.7 million people
334
+ </h1>
335
+ <p
336
+ className="c5 c6"
337
+ color="inherit"
338
+ size="s"
339
+ >
340
+ including...
341
+ </p>
342
+ </div>
343
+ 1`] = `
344
+ .c1 {
345
+ font-size: 1rem;
346
+ line-height: 1rem;
347
+ text-transform: inherit;
348
+ font-weight: bold;
349
+ line-height: normal;
350
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
351
+ }
352
+
353
+ .c3 {
354
+ color: #E52630;
355
+ font-size: 1rem;
356
+ line-height: 1rem;
357
+ text-transform: uppercase;
358
+ font-weight: normal;
359
+ font-family: 'Anton',Impact,sans-serif;
360
+ -webkit-letter-spacing: 0.03rem;
361
+ -moz-letter-spacing: 0.03rem;
362
+ -ms-letter-spacing: 0.03rem;
363
+ letter-spacing: 0.03rem;
364
+ }
365
+
366
+ .c5 {
367
+ font-size: 1rem;
368
+ line-height: 1rem;
369
+ text-transform: inherit;
370
+ line-height: normal;
371
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
372
+ }
373
+
374
+ .c2 {
375
+ width: 75%;
376
+ margin: 0 auto;
377
+ }
378
+
379
+ .c2:first-child {
380
+ margin-bottom: 2rem;
381
+ text-align: center;
382
+ font-size: 16px;
383
+ line-height: 19.5px;
384
+ }
385
+
386
+ .c4 {
387
+ margin-bottom: 2rem;
388
+ text-align: center;
389
+ font-size: 34px;
390
+ line-height: 37px;
391
+ }
392
+
393
+ .c6 {
394
+ margin-bottom: 0;
395
+ text-align: center;
396
+ font-size: 12px;
397
+ line-height: 14.63px;
398
+ }
399
+
400
+ .c0 {
401
+ height: 100%;
402
+ background-color: #FFFFFF;
403
+ max-width: 760px;
404
+ padding: 2rem;
405
+ margin: 0 auto;
406
+ border-radius: 20px;
407
+ box-shadow: 0px 0px 20px rgba(0,0,0,0.15);
408
+ }
409
+
410
+ .c0 .carousel {
411
+ position: relative;
412
+ margin: 0 auto;
413
+ padding-top: 2rem;
414
+ }
415
+
416
+ .c0 .carousel button.carousel__back-button,
417
+ .c0 .carousel button.carousel__next-button {
418
+ position: absolute;
419
+ left: 0;
420
+ top: 0;
421
+ width: 33% !important;
422
+ height: 100%;
423
+ padding: 0 !important;
424
+ box-shadow: none;
425
+ text-indent: -9999px;
426
+ background-color: transparent;
427
+ border: none;
428
+ }
429
+
430
+ .c0 .carousel button.carousel__back-button:after,
431
+ .c0 .carousel button.carousel__next-button:after {
432
+ content: "";
433
+ position: absolute;
434
+ top: 0;
435
+ left: 0;
436
+ width: 50%;
437
+ height: 100%;
438
+ -webkit-transition: opacity 0.2s linear;
439
+ transition: opacity 0.2s linear;
440
+ background: linear-gradient(90deg,rgba(255,255,255,1),rgba(255,255,255,0.5),rgba(255,255,255,0));
441
+ }
442
+
443
+ .c0 .carousel button.carousel__back-button:hover:after,
444
+ .c0 .carousel button.carousel__next-button:hover:after {
445
+ opacity: 0.5;
446
+ }
447
+
448
+ .c0 .carousel button.carousel__next-button {
449
+ left: auto;
450
+ right: 0;
451
+ }
452
+
453
+ .c0 .carousel button.carousel__next-button:before {
454
+ -webkit-transform: translate(0,-50%) rotate(-90deg);
455
+ -ms-transform: translate(0,-50%) rotate(-90deg);
456
+ transform: translate(0,-50%) rotate(-90deg);
457
+ }
458
+
459
+ .c0 .carousel button.carousel__next-button:after {
460
+ left: auto;
461
+ right: 0;
462
+ background: linear-gradient(270deg,rgba(255,255,255,1),rgba(255,255,255,0.5),rgba(255,255,255,0));
463
+ }
464
+
465
+ .c0 .carousel .wymd-carousel {
466
+ -webkit-transition: -webkit-transform 0.75s;
467
+ -webkit-transition: -webkit-transform 0.75s;
468
+ transition: -webkit-transform 0.75s;
469
+ -o-transition: transform 0.75s;
470
+ -webkit-transition: -webkit-transform 0.75s;
471
+ -webkit-transition: transform 0.75s;
472
+ transition: transform 0.75s;
473
+ -webkit-transform: 0.75s;
474
+ will-change: transform;
475
+ }
476
+
477
+ .c0 .carousel .wymd-carousel .last-slide .image-wrapper:after {
478
+ content: none;
479
+ }
480
+
481
+ .c0 .carousel .wymd-carousel .carousel__slide {
482
+ padding-bottom: 425px !important;
483
+ }
484
+
485
+ .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide {
486
+ text-align: center;
487
+ display: -webkit-inline-box;
488
+ display: -webkit-inline-flex;
489
+ display: -ms-inline-flexbox;
490
+ display: inline-flex;
491
+ -webkit-align-items: center;
492
+ -webkit-box-align: center;
493
+ -ms-flex-align: center;
494
+ align-items: center;
495
+ -webkit-box-pack: start;
496
+ -webkit-justify-content: flex-start;
497
+ -ms-flex-pack: start;
498
+ justify-content: flex-start;
499
+ -webkit-flex-direction: column;
500
+ -ms-flex-direction: column;
501
+ flex-direction: column;
502
+ }
503
+
504
+ @media (min-width:1024px) {
505
+ .c2:first-child {
506
+ font-size: 20px;
507
+ line-height: 24.38px;
508
+ }
509
+ }
510
+
511
+ @media (min-width:740px) {
512
+ .c4 {
513
+ font-size: 60px;
514
+ line-height: 60px;
515
+ }
516
+ }
517
+
518
+ @media (min-width:1024px) {
519
+ .c4 {
520
+ font-size: 64px;
521
+ line-height: 68px;
522
+ }
523
+ }
524
+
525
+ @media (min-width:740px) {
526
+ .c6 {
527
+ font-size: 17px;
528
+ line-height: 19px;
529
+ }
530
+ }
531
+
532
+ @media (min-width:1024px) {
533
+ .c0 .carousel {
534
+ padding-top: 2rem;
535
+ }
536
+ }
537
+
538
+ @media (min-width:740px) {
539
+ .c0 .carousel button.carousel__back-button,
540
+ .c0 .carousel button.carousel__next-button {
541
+ width: 33.3% !important;
542
+ }
543
+
544
+ .c0 .carousel button.carousel__back-button:after,
545
+ .c0 .carousel button.carousel__next-button:after {
546
+ width: 100%;
547
+ }
548
+ }
549
+
550
+ @media (min-width:740px) {
551
+ .c0 .carousel .wymd-carousel .carousel__slide {
552
+ padding-bottom: 450px !important;
553
+ }
554
+
555
+ .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide > div:first-child {
556
+ -webkit-transition: -webkit-transform 0.75s ease;
557
+ -webkit-transition: transform 0.75s ease;
558
+ transition: transform 0.75s ease;
559
+ -webkit-transform: scale(0.5);
560
+ -ms-transform: scale(0.5);
561
+ transform: scale(0.5);
562
+ }
563
+
564
+ .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide > div:first-child:after {
565
+ -webkit-transition: -webkit-transform 0.75s ease,width 0.75s ease,right 0.75s ease;
566
+ -webkit-transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;
567
+ transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;
568
+ right: calc(-300% - 6px);
569
+ -webkit-transform: scale(1);
570
+ -ms-transform: scale(1);
571
+ transform: scale(1);
572
+ width: 300%;
573
+ }
574
+
575
+ .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide .all-text-wrapper {
576
+ -webkit-transition: -webkit-transform 0.75s ease;
577
+ -webkit-transition: transform 0.75s ease;
578
+ transition: transform 0.75s ease;
579
+ -webkit-transform-origin: top;
580
+ -ms-transform-origin: top;
581
+ transform-origin: top;
582
+ -webkit-transform: translateY(calc(-45px + 5%)) scale(0.5);
583
+ -ms-transform: translateY(calc(-45px + 5%)) scale(0.5);
584
+ transform: translateY(calc(-45px + 5%)) scale(0.5);
585
+ }
586
+
587
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible .carousel__inner-slide > div:first-child:after {
588
+ right: calc(-300% - 6px);
589
+ -webkit-transform: scale(1);
590
+ -ms-transform: scale(1);
591
+ transform: scale(1);
592
+ width: 300%;
593
+ }
594
+
595
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child {
596
+ -webkit-transform: scale(1);
597
+ -ms-transform: scale(1);
598
+ transform: scale(1);
599
+ }
600
+
601
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {
602
+ right: calc(-222% - 6px);
603
+ -webkit-transform: scale(0.5);
604
+ -ms-transform: scale(0.5);
605
+ transform: scale(0.5);
606
+ width: 300%;
607
+ }
608
+
609
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .all-text-wrapper {
610
+ -webkit-transform: translateY(0) scale(1);
611
+ -ms-transform: translateY(0) scale(1);
612
+ transform: translateY(0) scale(1);
613
+ }
614
+
615
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible > div > div:first-child {
616
+ -webkit-transform: scale(0.5);
617
+ -ms-transform: scale(0.5);
618
+ transform: scale(0.5);
619
+ }
620
+
621
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible > div > div:first-child:after {
622
+ right: calc(-300% - 6px);
623
+ -webkit-transform: scale(1);
624
+ -ms-transform: scale(1);
625
+ transform: scale(1);
626
+ width: 300%;
627
+ }
628
+
629
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible .all-text-wrapper {
630
+ -webkit-transform: translateY(calc(-45px + 5%)) scale(0.5);
631
+ -ms-transform: translateY(calc(-45px + 5%)) scale(0.5);
632
+ transform: translateY(calc(-45px + 5%)) scale(0.5);
633
+ }
634
+ }
635
+
636
+ @media (min-width:1024px) {
637
+ .c0 .carousel .wymd-carousel .carousel__slide {
638
+ padding-bottom: 475px !important;
639
+ }
640
+
641
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible .carousel__inner-slide > div:first-child:after {
642
+ right: calc(-250% - 6px);
643
+ width: 250%;
644
+ }
645
+
646
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {
647
+ right: calc(-187% - 6px);
648
+ width: 250%;
649
+ }
650
+
651
+ .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {
652
+ right: calc(-250% - 6px);
653
+ width: 250%;
654
+ }
655
+ }
656
+
657
+ <div
658
+ className="c0 CarouselWrapper"
659
+ id="7zdR84QkZwrTh9NWx2H926"
660
+ >
661
+ <p
662
+ className="c1 c2"
663
+ color="inherit"
664
+ size="s"
665
+ >
666
+ Over the past two years, we’ve supported
667
+ </p>
668
+ <h1
669
+ className="c3 c4"
670
+ color="red"
671
+ size="s"
672
+ >
673
+ 11.7 million people
674
+ </h1>
675
+ <p
676
+ className="c5 c6"
677
+ color="inherit"
678
+ size="s"
679
+ >
680
+ including...
681
+ </p>
682
+ </div>
683
+ `;
@@ -10,23 +10,19 @@ var _colors = _interopRequireDefault(require("./colors"));
10
10
  const linkStyles = {
11
11
  standard: {
12
12
  color: (0, _colors.default)('black'),
13
- border: `2px solid ${(0, _colors.default)('black')}`,
14
13
  weight: 'normal',
15
- hoverColor: (0, _colors.default)('black'),
16
- hoverBorder: `2px solid ${(0, _colors.default)('black')}`
14
+ hoverColor: (0, _colors.default)('black')
17
15
  },
18
16
  standard_white: {
19
17
  color: (0, _colors.default)('white'),
20
- border: `2px solid ${(0, _colors.default)('white')}`,
21
18
  weight: 'normal',
22
- hoverColor: (0, _colors.default)('white'),
23
- hoverBorder: `2px solid ${(0, _colors.default)('white')}`
19
+ hoverColor: (0, _colors.default)('white')
24
20
  }
25
21
  };
26
- var _default = (styleName, underline) => {
27
- let style = (0, _styledComponents.css)(["color:", ";border-bottom:solid 2px;border-bottom-color:inherit;font-weight:normal;:hover{color:inherit;font-weight:700;}"], (0, _colors.default)('black'));
22
+ var _default = styleName => {
23
+ let style = (0, _styledComponents.css)(["color:", ";font-weight:normal;:hover{color:inherit;font-weight:700;}"], (0, _colors.default)('black'));
28
24
  if (styleName) {
29
- style = (0, _styledComponents.css)(["color:", ";border-bottom:", ";font-weight:", ";:hover{color:", ";border-bottom:", ";font-weight:", ";}"], linkStyles[styleName].color, underline && linkStyles[styleName].border, linkStyles[styleName].weight, linkStyles[styleName].hoverColor, underline && linkStyles[styleName].hoverBorder, linkStyles[styleName].hoverWeight);
25
+ style = (0, _styledComponents.css)(["color:", ";font-weight:", ";:hover,:focus{color:", ";font-weight:", ";text-decoration:none;}"], linkStyles[styleName].color, linkStyles[styleName].weight, linkStyles[styleName].hoverColor, linkStyles[styleName].hoverWeight);
30
26
  }
31
27
  return style;
32
28
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.33.2",
4
+ "version": "8.34.0",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {