@comicrelief/component-library 8.44.0 → 8.44.2
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.
- package/dist/components/Atoms/Checkbox/Checkbox.js +2 -1
- package/dist/components/Atoms/Checkbox/Checkbox.md +2 -2
- package/dist/components/Atoms/Checkbox/Checkbox.test.js +6 -0
- package/dist/components/Atoms/RadioButton/RadioButton.js +2 -1
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +6 -0
- package/dist/components/Molecules/Accordion/Accordion.md +3 -3
- package/dist/components/Molecules/Accordion/Accordion.test.js +2 -1
- package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +6 -0
- package/dist/components/Molecules/Banner/Banner.test.js +2 -1
- package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +3 -0
- package/dist/components/Organisms/Footer/Footer.js +2 -1
- package/dist/components/Organisms/Footer/Nav/Nav.js +8 -4
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +40 -0
- package/dist/components/Organisms/Header/HeaderNav/HeaderNav.js +2 -1
- package/dist/components/Organisms/Header/Nav/Nav.js +2 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +2 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
- package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +4 -2
- package/dist/components/Organisms/Membership/Form/Form.js +2 -1
- package/dist/components/Organisms/Membership/Membership.js +2 -1
- package/dist/components/Organisms/Membership/Membership.test.js +86 -48
- package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.js +4 -2
- package/package.json +11 -3
- package/src/components/Atoms/Checkbox/Checkbox.js +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.md +2 -2
- package/src/components/Atoms/Checkbox/Checkbox.test.js +6 -0
- package/src/components/Atoms/RadioButton/RadioButton.js +1 -1
- package/src/components/Atoms/RadioButton/RadioButton.test.js +6 -0
- package/src/components/Molecules/Accordion/Accordion.md +3 -3
- package/src/components/Molecules/Accordion/Accordion.test.js +1 -1
- package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +6 -0
- package/src/components/Molecules/Banner/Banner.test.js +1 -1
- package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +3 -0
- package/src/components/Organisms/Footer/Footer.js +1 -1
- package/src/components/Organisms/Footer/Nav/Nav.js +4 -4
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +40 -0
- package/src/components/Organisms/Header/HeaderNav/HeaderNav.js +1 -1
- package/src/components/Organisms/Header/Nav/Nav.js +1 -1
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
- package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +2 -2
- package/src/components/Organisms/Membership/Form/Form.js +1 -1
- package/src/components/Organisms/Membership/Membership.js +1 -1
- package/src/components/Organisms/Membership/Membership.test.js +86 -48
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.js +2 -2
|
@@ -53,6 +53,11 @@ it('renders correctly', () => {
|
|
|
53
53
|
line-height: 1.25rem;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
.c7 {
|
|
57
|
+
font-size: 1rem;
|
|
58
|
+
line-height: normal;
|
|
59
|
+
}
|
|
60
|
+
|
|
56
61
|
.c12 {
|
|
57
62
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
58
63
|
font-weight: 700;
|
|
@@ -65,7 +70,12 @@ it('renders correctly', () => {
|
|
|
65
70
|
line-height: 1.5rem;
|
|
66
71
|
}
|
|
67
72
|
|
|
68
|
-
.
|
|
73
|
+
.c12 {
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
line-height: normal;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.c16 {
|
|
69
79
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
70
80
|
font-weight: 400;
|
|
71
81
|
text-transform: inherit;
|
|
@@ -77,7 +87,19 @@ it('renders correctly', () => {
|
|
|
77
87
|
line-height: 1.25rem;
|
|
78
88
|
}
|
|
79
89
|
|
|
80
|
-
.
|
|
90
|
+
.c23 {
|
|
91
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
text-transform: inherit;
|
|
94
|
+
-webkit-letter-spacing: 0;
|
|
95
|
+
-moz-letter-spacing: 0;
|
|
96
|
+
-ms-letter-spacing: 0;
|
|
97
|
+
letter-spacing: 0;
|
|
98
|
+
font-size: 1rem;
|
|
99
|
+
line-height: 1.25rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.c23 {
|
|
81
103
|
font-size: 1rem;
|
|
82
104
|
line-height: normal;
|
|
83
105
|
font-weight: 500;
|
|
@@ -110,7 +132,7 @@ it('renders correctly', () => {
|
|
|
110
132
|
color: #000000;
|
|
111
133
|
}
|
|
112
134
|
|
|
113
|
-
.
|
|
135
|
+
.c17 {
|
|
114
136
|
margin-bottom: 0.5rem;
|
|
115
137
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
116
138
|
font-weight: 400;
|
|
@@ -123,12 +145,12 @@ it('renders correctly', () => {
|
|
|
123
145
|
line-height: 1.25rem;
|
|
124
146
|
}
|
|
125
147
|
|
|
126
|
-
.
|
|
148
|
+
.c18 {
|
|
127
149
|
position: relative;
|
|
128
150
|
font-size: 1.25rem;
|
|
129
151
|
}
|
|
130
152
|
|
|
131
|
-
.
|
|
153
|
+
.c19 {
|
|
132
154
|
position: relative;
|
|
133
155
|
width: 100%;
|
|
134
156
|
display: -webkit-box;
|
|
@@ -145,7 +167,7 @@ it('renders correctly', () => {
|
|
|
145
167
|
align-items: center;
|
|
146
168
|
}
|
|
147
169
|
|
|
148
|
-
.
|
|
170
|
+
.c20 {
|
|
149
171
|
position: relative;
|
|
150
172
|
box-sizing: border-box;
|
|
151
173
|
width: 100%;
|
|
@@ -165,7 +187,7 @@ it('renders correctly', () => {
|
|
|
165
187
|
font-family: inherit;
|
|
166
188
|
}
|
|
167
189
|
|
|
168
|
-
.
|
|
190
|
+
.c20:focus {
|
|
169
191
|
border: 1px solid #666;
|
|
170
192
|
}
|
|
171
193
|
|
|
@@ -184,11 +206,11 @@ it('renders correctly', () => {
|
|
|
184
206
|
height: auto;
|
|
185
207
|
}
|
|
186
208
|
|
|
187
|
-
.
|
|
209
|
+
.c21 {
|
|
188
210
|
display: block;
|
|
189
211
|
}
|
|
190
212
|
|
|
191
|
-
.
|
|
213
|
+
.c21 input {
|
|
192
214
|
border: 2px solid #E1E2E3;
|
|
193
215
|
font-size: 1.5rem;
|
|
194
216
|
font-weight: 700;
|
|
@@ -305,7 +327,7 @@ it('renders correctly', () => {
|
|
|
305
327
|
border-color: #E52630;
|
|
306
328
|
}
|
|
307
329
|
|
|
308
|
-
.
|
|
330
|
+
.c22 {
|
|
309
331
|
display: -webkit-box;
|
|
310
332
|
display: -webkit-flex;
|
|
311
333
|
display: -ms-flexbox;
|
|
@@ -316,11 +338,11 @@ it('renders correctly', () => {
|
|
|
316
338
|
align-items: center;
|
|
317
339
|
}
|
|
318
340
|
|
|
319
|
-
.
|
|
341
|
+
.c24 {
|
|
320
342
|
margin-right: auto;
|
|
321
343
|
}
|
|
322
344
|
|
|
323
|
-
.
|
|
345
|
+
.c25 {
|
|
324
346
|
position: relative;
|
|
325
347
|
-webkit-flex: 0 0 50%;
|
|
326
348
|
-ms-flex: 0 0 50%;
|
|
@@ -329,7 +351,7 @@ it('renders correctly', () => {
|
|
|
329
351
|
display: block;
|
|
330
352
|
}
|
|
331
353
|
|
|
332
|
-
.
|
|
354
|
+
.c25 span {
|
|
333
355
|
position: absolute;
|
|
334
356
|
padding: 0px 15px;
|
|
335
357
|
font-size: 20px;
|
|
@@ -341,21 +363,21 @@ it('renders correctly', () => {
|
|
|
341
363
|
font-weight: 500;
|
|
342
364
|
}
|
|
343
365
|
|
|
344
|
-
.
|
|
366
|
+
.c25 input {
|
|
345
367
|
border: 2px solid #E1E2E3;
|
|
346
368
|
background: transparent;
|
|
347
369
|
padding: 0.5rem 1rem 0.5rem 2rem;
|
|
348
370
|
}
|
|
349
371
|
|
|
350
|
-
.
|
|
372
|
+
.c25 input:focus {
|
|
351
373
|
border: 2px solid #E52630;
|
|
352
374
|
}
|
|
353
375
|
|
|
354
|
-
.
|
|
376
|
+
.c27 {
|
|
355
377
|
line-height: 1.5;
|
|
356
378
|
}
|
|
357
379
|
|
|
358
|
-
.
|
|
380
|
+
.c26 {
|
|
359
381
|
width: 100%;
|
|
360
382
|
color: #FFFFFF;
|
|
361
383
|
font-size: 1rem;
|
|
@@ -367,9 +389,9 @@ it('renders correctly', () => {
|
|
|
367
389
|
border-radius: 100px;
|
|
368
390
|
}
|
|
369
391
|
|
|
370
|
-
.
|
|
371
|
-
.
|
|
372
|
-
.
|
|
392
|
+
.c26:active,
|
|
393
|
+
.c26:focus,
|
|
394
|
+
.c26:hover {
|
|
373
395
|
background-color: #961D35;
|
|
374
396
|
}
|
|
375
397
|
|
|
@@ -416,28 +438,42 @@ it('renders correctly', () => {
|
|
|
416
438
|
}
|
|
417
439
|
|
|
418
440
|
@media (min-width:740px) {
|
|
419
|
-
.
|
|
441
|
+
.c16 {
|
|
420
442
|
font-size: 1rem;
|
|
421
443
|
line-height: 1.25rem;
|
|
422
444
|
}
|
|
423
445
|
}
|
|
424
446
|
|
|
425
447
|
@media (min-width:1024px) {
|
|
426
|
-
.
|
|
448
|
+
.c16 {
|
|
427
449
|
font-size: 1.125rem;
|
|
428
450
|
line-height: 1.375rem;
|
|
429
451
|
}
|
|
430
452
|
}
|
|
431
453
|
|
|
432
454
|
@media (min-width:740px) {
|
|
433
|
-
.
|
|
455
|
+
.c23 {
|
|
434
456
|
font-size: 1rem;
|
|
435
457
|
line-height: 1.25rem;
|
|
436
458
|
}
|
|
437
459
|
}
|
|
438
460
|
|
|
439
461
|
@media (min-width:1024px) {
|
|
440
|
-
.
|
|
462
|
+
.c23 {
|
|
463
|
+
font-size: 1.125rem;
|
|
464
|
+
line-height: 1.375rem;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
@media (min-width:740px) {
|
|
469
|
+
.c17 {
|
|
470
|
+
font-size: 1rem;
|
|
471
|
+
line-height: 1.25rem;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
@media (min-width:1024px) {
|
|
476
|
+
.c17 {
|
|
441
477
|
font-size: 1rem;
|
|
442
478
|
line-height: 1.25rem;
|
|
443
479
|
}
|
|
@@ -494,7 +530,7 @@ it('renders correctly', () => {
|
|
|
494
530
|
}
|
|
495
531
|
|
|
496
532
|
@media (min-width:1024px) {
|
|
497
|
-
.
|
|
533
|
+
.c25 {
|
|
498
534
|
-webkit-flex: 0 0 60%;
|
|
499
535
|
-ms-flex: 0 0 60%;
|
|
500
536
|
flex: 0 0 60%;
|
|
@@ -502,7 +538,7 @@ it('renders correctly', () => {
|
|
|
502
538
|
}
|
|
503
539
|
|
|
504
540
|
@media (min-width:1024px) {
|
|
505
|
-
.
|
|
541
|
+
.c26 {
|
|
506
542
|
width: auto;
|
|
507
543
|
padding: 1rem 2rem;
|
|
508
544
|
margin: 0 auto 2rem;
|
|
@@ -542,6 +578,7 @@ it('renders correctly', () => {
|
|
|
542
578
|
<p
|
|
543
579
|
className="c7"
|
|
544
580
|
color="inherit"
|
|
581
|
+
size="s"
|
|
545
582
|
>
|
|
546
583
|
Jordan was close to suicide - which is now the biggest killer of men under 45 in the UK. Join now and help save lives.
|
|
547
584
|
</p>
|
|
@@ -562,6 +599,7 @@ it('renders correctly', () => {
|
|
|
562
599
|
<h3
|
|
563
600
|
className="c12"
|
|
564
601
|
color="inherit"
|
|
602
|
+
size="s"
|
|
565
603
|
>
|
|
566
604
|
Choose your monthly donation
|
|
567
605
|
</h3>
|
|
@@ -574,7 +612,7 @@ it('renders correctly', () => {
|
|
|
574
612
|
htmlFor="mship-1--moneyBuy-box1"
|
|
575
613
|
>
|
|
576
614
|
<span
|
|
577
|
-
className="
|
|
615
|
+
className="c16 c17"
|
|
578
616
|
color="inherit"
|
|
579
617
|
dangerouslySetInnerHTML={
|
|
580
618
|
Object {
|
|
@@ -583,16 +621,16 @@ it('renders correctly', () => {
|
|
|
583
621
|
}
|
|
584
622
|
/>
|
|
585
623
|
<div
|
|
586
|
-
className="
|
|
624
|
+
className="c18"
|
|
587
625
|
>
|
|
588
626
|
|
|
589
627
|
<div
|
|
590
|
-
className="
|
|
628
|
+
className="c19"
|
|
591
629
|
>
|
|
592
630
|
<input
|
|
593
631
|
aria-label="£5"
|
|
594
632
|
aria-required={false}
|
|
595
|
-
className="
|
|
633
|
+
className="c20"
|
|
596
634
|
id="mship-1--moneyBuy-box1"
|
|
597
635
|
name="mship-1--moneyBuy1"
|
|
598
636
|
onClick={[Function]}
|
|
@@ -607,11 +645,11 @@ it('renders correctly', () => {
|
|
|
607
645
|
|
|
608
646
|
</label>
|
|
609
647
|
<label
|
|
610
|
-
className="c14
|
|
648
|
+
className="c14 c21"
|
|
611
649
|
htmlFor="mship-1--moneyBuy-box2"
|
|
612
650
|
>
|
|
613
651
|
<span
|
|
614
|
-
className="
|
|
652
|
+
className="c16 c17"
|
|
615
653
|
color="inherit"
|
|
616
654
|
dangerouslySetInnerHTML={
|
|
617
655
|
Object {
|
|
@@ -620,16 +658,16 @@ it('renders correctly', () => {
|
|
|
620
658
|
}
|
|
621
659
|
/>
|
|
622
660
|
<div
|
|
623
|
-
className="
|
|
661
|
+
className="c18"
|
|
624
662
|
>
|
|
625
663
|
|
|
626
664
|
<div
|
|
627
|
-
className="
|
|
665
|
+
className="c19"
|
|
628
666
|
>
|
|
629
667
|
<input
|
|
630
668
|
aria-label="£10"
|
|
631
669
|
aria-required={false}
|
|
632
|
-
className="
|
|
670
|
+
className="c20"
|
|
633
671
|
id="mship-1--moneyBuy-box2"
|
|
634
672
|
name="mship-1--moneyBuy2"
|
|
635
673
|
onClick={[Function]}
|
|
@@ -648,7 +686,7 @@ it('renders correctly', () => {
|
|
|
648
686
|
htmlFor="mship-1--moneyBuy-box3"
|
|
649
687
|
>
|
|
650
688
|
<span
|
|
651
|
-
className="
|
|
689
|
+
className="c16 c17"
|
|
652
690
|
color="inherit"
|
|
653
691
|
dangerouslySetInnerHTML={
|
|
654
692
|
Object {
|
|
@@ -657,16 +695,16 @@ it('renders correctly', () => {
|
|
|
657
695
|
}
|
|
658
696
|
/>
|
|
659
697
|
<div
|
|
660
|
-
className="
|
|
698
|
+
className="c18"
|
|
661
699
|
>
|
|
662
700
|
|
|
663
701
|
<div
|
|
664
|
-
className="
|
|
702
|
+
className="c19"
|
|
665
703
|
>
|
|
666
704
|
<input
|
|
667
705
|
aria-label="£20"
|
|
668
706
|
aria-required={false}
|
|
669
|
-
className="
|
|
707
|
+
className="c20"
|
|
670
708
|
id="mship-1--moneyBuy-box3"
|
|
671
709
|
name="mship-1--moneyBuy3"
|
|
672
710
|
onClick={[Function]}
|
|
@@ -682,21 +720,21 @@ it('renders correctly', () => {
|
|
|
682
720
|
</label>
|
|
683
721
|
</div>
|
|
684
722
|
<div
|
|
685
|
-
className="
|
|
723
|
+
className="c22"
|
|
686
724
|
>
|
|
687
725
|
<span
|
|
688
|
-
className="
|
|
726
|
+
className="c23 c24"
|
|
689
727
|
color="inherit"
|
|
690
728
|
size="s"
|
|
691
729
|
>
|
|
692
730
|
Other amount
|
|
693
731
|
</span>
|
|
694
732
|
<label
|
|
695
|
-
className="c14
|
|
733
|
+
className="c14 c25"
|
|
696
734
|
htmlFor="mship-1--MoneyBuy-userInput"
|
|
697
735
|
>
|
|
698
736
|
<span
|
|
699
|
-
className="
|
|
737
|
+
className="c16 c17"
|
|
700
738
|
color="inherit"
|
|
701
739
|
dangerouslySetInnerHTML={
|
|
702
740
|
Object {
|
|
@@ -705,16 +743,16 @@ it('renders correctly', () => {
|
|
|
705
743
|
}
|
|
706
744
|
/>
|
|
707
745
|
<div
|
|
708
|
-
className="
|
|
746
|
+
className="c18"
|
|
709
747
|
>
|
|
710
748
|
|
|
711
749
|
<div
|
|
712
|
-
className="
|
|
750
|
+
className="c19"
|
|
713
751
|
>
|
|
714
752
|
<input
|
|
715
753
|
aria-label="Input a different amount"
|
|
716
754
|
aria-required={false}
|
|
717
|
-
className="
|
|
755
|
+
className="c20"
|
|
718
756
|
id="mship-1--MoneyBuy-userInput"
|
|
719
757
|
max="25000"
|
|
720
758
|
min="1"
|
|
@@ -736,12 +774,12 @@ it('renders correctly', () => {
|
|
|
736
774
|
</label>
|
|
737
775
|
</div>
|
|
738
776
|
<input
|
|
739
|
-
className="
|
|
777
|
+
className="c26"
|
|
740
778
|
type="submit"
|
|
741
779
|
value="Donate"
|
|
742
780
|
/>
|
|
743
781
|
<p
|
|
744
|
-
className="
|
|
782
|
+
className="c27"
|
|
745
783
|
/>
|
|
746
784
|
</fieldset>
|
|
747
785
|
</form>
|
|
@@ -109,9 +109,11 @@ const WYMDCarousel = _ref => {
|
|
|
109
109
|
tag: "h1",
|
|
110
110
|
family: "Anton",
|
|
111
111
|
uppercase: true,
|
|
112
|
-
weight: "normal"
|
|
112
|
+
weight: "normal",
|
|
113
|
+
size: "s"
|
|
113
114
|
}, theseItems[key].amount)), /*#__PURE__*/_react.default.createElement(_WYMDCarousel.CopyWrapper, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
114
|
-
tag: "p"
|
|
115
|
+
tag: "p",
|
|
116
|
+
size: "s"
|
|
115
117
|
}, theseItems[key].copy))))
|
|
116
118
|
);
|
|
117
119
|
}), isMobile === false && /*#__PURE__*/_react.default.createElement(_pureReactCarousel.Slide, {
|
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.44.
|
|
4
|
+
"version": "8.44.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"jest": {
|
|
@@ -47,7 +47,15 @@
|
|
|
47
47
|
"yup": "^1.4.0"
|
|
48
48
|
},
|
|
49
49
|
"resolutions": {
|
|
50
|
-
"react-scripts/workbox-webpack-plugin/workbox-build/@surma/rollup-plugin-off-main-thread/ejs": "3.1.
|
|
50
|
+
"react-scripts/workbox-webpack-plugin/workbox-build/@surma/rollup-plugin-off-main-thread/ejs": "3.1.10",
|
|
51
|
+
"loader-utils": "2.0.3",
|
|
52
|
+
"unset-value": "2.0.1",
|
|
53
|
+
"shell-quote": "1.7.3",
|
|
54
|
+
"ansi-html": "0.0.9",
|
|
55
|
+
"semver": "7.5.2",
|
|
56
|
+
"braces": "3.0.3",
|
|
57
|
+
"node-forge": "1.3.2",
|
|
58
|
+
"nth-check": "2.0.1"
|
|
51
59
|
},
|
|
52
60
|
"scripts": {
|
|
53
61
|
"build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files --ignore __tests__,spec.js,test.js",
|
|
@@ -80,7 +88,7 @@
|
|
|
80
88
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
81
89
|
"@playwright/test": "^1.38.1",
|
|
82
90
|
"cross-env": "^7.0.3",
|
|
83
|
-
"ejs": "^3.1.
|
|
91
|
+
"ejs": "^3.1.10",
|
|
84
92
|
"eslint": "^7.32.0",
|
|
85
93
|
"eslint-config-airbnb": "^18.2.0",
|
|
86
94
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -6,7 +6,7 @@ import Link from '../../Atoms/Link/Link';
|
|
|
6
6
|
|
|
7
7
|
const LongLabel = () => (
|
|
8
8
|
<div>
|
|
9
|
-
<Text tag="p">
|
|
9
|
+
<Text tag="p" size="s">
|
|
10
10
|
I agree to the
|
|
11
11
|
{' '}
|
|
12
12
|
<Link target="blank" href="https://comicrelief.com/terms-of-use/">terms and conditions</Link>
|
|
@@ -15,7 +15,7 @@ const LongLabel = () => (
|
|
|
15
15
|
{' '}
|
|
16
16
|
<Link target="blank" href="https://comicrelief.com/privacy-notice/">privacy policy.</Link>
|
|
17
17
|
</Text>
|
|
18
|
-
<Text tag="p">
|
|
18
|
+
<Text tag="p" size="s">
|
|
19
19
|
For more information, please view our fundraising
|
|
20
20
|
<Link target="blank" href="https://comicrelief.com/code-of-conduct/">code of conduct.</Link>
|
|
21
21
|
</Text>
|
|
@@ -26,6 +26,8 @@ it('renders correctly', () => {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.c2 {
|
|
29
|
+
font-size: 1rem;
|
|
30
|
+
line-height: normal;
|
|
29
31
|
font-weight: bold;
|
|
30
32
|
}
|
|
31
33
|
|
|
@@ -107,6 +109,7 @@ it('renders correctly', () => {
|
|
|
107
109
|
<span
|
|
108
110
|
className="c2"
|
|
109
111
|
color="inherit"
|
|
112
|
+
size="s"
|
|
110
113
|
>
|
|
111
114
|
Tennis
|
|
112
115
|
</span>
|
|
@@ -124,6 +127,8 @@ it('renders correctly', () => {
|
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
.c2 {
|
|
130
|
+
font-size: 1rem;
|
|
131
|
+
line-height: normal;
|
|
127
132
|
font-weight: bold;
|
|
128
133
|
}
|
|
129
134
|
|
|
@@ -205,6 +210,7 @@ it('renders correctly', () => {
|
|
|
205
210
|
<span
|
|
206
211
|
className="c2"
|
|
207
212
|
color="inherit"
|
|
213
|
+
size="s"
|
|
208
214
|
>
|
|
209
215
|
Handball
|
|
210
216
|
</span>
|
|
@@ -26,6 +26,8 @@ it('renders correctly', () => {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.c2 {
|
|
29
|
+
font-size: 1rem;
|
|
30
|
+
line-height: normal;
|
|
29
31
|
font-weight: bold;
|
|
30
32
|
}
|
|
31
33
|
|
|
@@ -116,6 +118,7 @@ it('renders correctly', () => {
|
|
|
116
118
|
<span
|
|
117
119
|
className="c2"
|
|
118
120
|
color="inherit"
|
|
121
|
+
size="s"
|
|
119
122
|
>
|
|
120
123
|
Male
|
|
121
124
|
</span>
|
|
@@ -133,6 +136,8 @@ it('renders correctly', () => {
|
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
.c2 {
|
|
139
|
+
font-size: 1rem;
|
|
140
|
+
line-height: normal;
|
|
136
141
|
font-weight: bold;
|
|
137
142
|
}
|
|
138
143
|
|
|
@@ -223,6 +228,7 @@ it('renders correctly', () => {
|
|
|
223
228
|
<span
|
|
224
229
|
className="c2"
|
|
225
230
|
color="inherit"
|
|
231
|
+
size="s"
|
|
226
232
|
>
|
|
227
233
|
Female
|
|
228
234
|
</span>
|
|
@@ -10,7 +10,7 @@ import Text from '../../Atoms/Text/Text';
|
|
|
10
10
|
</Text>
|
|
11
11
|
}
|
|
12
12
|
>
|
|
13
|
-
<Text tag="p">Name, surname, email and billing address We need these to process your payment, create a receipt and send it to you. Establishment information We use this information to understand which institutions (e.g. schools, companies) raise money for us. Your details will be kept safe and never shared with other organisations; see our Privacy Policy for more information</Text>
|
|
13
|
+
<Text tag="p" size="s">Name, surname, email and billing address We need these to process your payment, create a receipt and send it to you. Establishment information We use this information to understand which institutions (e.g. schools, companies) raise money for us. Your details will be kept safe and never shared with other organisations; see our Privacy Policy for more information</Text>
|
|
14
14
|
</Accordion>
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -26,9 +26,9 @@ import Text from '../../Atoms/Text/Text';
|
|
|
26
26
|
}
|
|
27
27
|
>
|
|
28
28
|
|
|
29
|
-
<Text tag="p">Customised bottom padding here!</Text>
|
|
29
|
+
<Text tag="p" size="s">Customised bottom padding here!</Text>
|
|
30
30
|
|
|
31
|
-
<Text tag="p">
|
|
31
|
+
<Text tag="p" size="s">
|
|
32
32
|
<a href="https://www.google.com">A plain anchor link, made to resemble a Link component</a>.
|
|
33
33
|
</Text>
|
|
34
34
|
</Accordion>
|
|
@@ -13,7 +13,7 @@ it('renders correctly', () => {
|
|
|
13
13
|
</Text>
|
|
14
14
|
)}
|
|
15
15
|
>
|
|
16
|
-
<Text tag="p">Name, surname, email and billing address We need these to process your payment, create a receipt and send it to you. Establishment information We use this information to understand which institutions (e.g. schools, companies) raise money for us. Your details will be kept safe and never shared with other organisations; see our Privacy Policy for more information</Text>
|
|
16
|
+
<Text tag="p" size="s">Name, surname, email and billing address We need these to process your payment, create a receipt and send it to you. Establishment information We use this information to understand which institutions (e.g. schools, companies) raise money for us. Your details will be kept safe and never shared with other organisations; see our Privacy Policy for more information</Text>
|
|
17
17
|
</Accordion>
|
|
18
18
|
).toJSON();
|
|
19
19
|
|
|
@@ -30,6 +30,11 @@ exports[`renders correctly 1`] = `
|
|
|
30
30
|
line-height: 1.25rem;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
.c6 {
|
|
34
|
+
font-size: 1rem;
|
|
35
|
+
line-height: normal;
|
|
36
|
+
}
|
|
37
|
+
|
|
33
38
|
.c4 {
|
|
34
39
|
-webkit-transform: rotate(180deg);
|
|
35
40
|
-ms-transform: rotate(180deg);
|
|
@@ -189,6 +194,7 @@ exports[`renders correctly 1`] = `
|
|
|
189
194
|
<p
|
|
190
195
|
className="c6"
|
|
191
196
|
color="inherit"
|
|
197
|
+
size="s"
|
|
192
198
|
>
|
|
193
199
|
Name, surname, email and billing address We need these to process your payment, create a receipt and send it to you. Establishment information We use this information to understand which institutions (e.g. schools, companies) raise money for us. Your details will be kept safe and never shared with other organisations; see our Privacy Policy for more information
|
|
194
200
|
</p>
|
|
@@ -7,7 +7,7 @@ import Text from '../../Atoms/Text/Text';
|
|
|
7
7
|
it('renders correctly', () => {
|
|
8
8
|
const tree = renderWithTheme(
|
|
9
9
|
<Banner backgroundColor="purple_dark">
|
|
10
|
-
<Text tag="p" color="white">
|
|
10
|
+
<Text tag="p" color="white" size="s">
|
|
11
11
|
Mental health issues affect 1 in 4 of us in the UK.
|
|
12
12
|
Join now and with your help we can provide vital support for people like Jordan.
|
|
13
13
|
You know what to do.
|
|
@@ -14,6 +14,8 @@ exports[`renders correctly 1`] = `
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.c2 {
|
|
17
|
+
font-size: 1rem;
|
|
18
|
+
line-height: normal;
|
|
17
19
|
color: #FFFFFF;
|
|
18
20
|
}
|
|
19
21
|
|
|
@@ -63,6 +65,7 @@ exports[`renders correctly 1`] = `
|
|
|
63
65
|
<p
|
|
64
66
|
className="c2"
|
|
65
67
|
color="white"
|
|
68
|
+
size="s"
|
|
66
69
|
>
|
|
67
70
|
Mental health issues affect 1 in 4 of us in the UK. Join now and with your help we can provide vital support for people like Jordan. You know what to do.
|
|
68
71
|
</p>
|
|
@@ -53,7 +53,7 @@ const FooterNav = ({ navItems = {}, ...rest }) => {
|
|
|
53
53
|
|
|
54
54
|
return (
|
|
55
55
|
<Nav aria-label="main-menu" isExpandable={isExpandable} role="navigation">
|
|
56
|
-
<Text id="footer-menu" tag="h2">
|
|
56
|
+
<Text id="footer-menu" tag="h2" size="s">
|
|
57
57
|
Footer navigation
|
|
58
58
|
</Text>
|
|
59
59
|
|
|
@@ -67,7 +67,7 @@ const FooterNav = ({ navItems = {}, ...rest }) => {
|
|
|
67
67
|
isSubMenuOpen={!!isSubMenuOpen[group.id]}
|
|
68
68
|
>
|
|
69
69
|
{!isSmallBreakpoint ? (
|
|
70
|
-
<Text color="white" weight="bold">
|
|
70
|
+
<Text color="white" weight="bold" size="s">
|
|
71
71
|
{group.title}
|
|
72
72
|
</Text>
|
|
73
73
|
) : (
|
|
@@ -80,7 +80,7 @@ const FooterNav = ({ navItems = {}, ...rest }) => {
|
|
|
80
80
|
onClick={toggleSubMenu(group.id)}
|
|
81
81
|
{...rest}
|
|
82
82
|
>
|
|
83
|
-
<Text color="white">{group.title}</Text>
|
|
83
|
+
<Text color="white" size="s">{group.title}</Text>
|
|
84
84
|
</NavLink>
|
|
85
85
|
)}
|
|
86
86
|
{/* Second level of the navigation (ul tag): Child(ren) */}
|
|
@@ -105,7 +105,7 @@ const FooterNav = ({ navItems = {}, ...rest }) => {
|
|
|
105
105
|
}
|
|
106
106
|
>
|
|
107
107
|
<SubNavLink href={thisUrl} inline role="menuitem" {...rest}>
|
|
108
|
-
<Text color="white">{child.title}</Text>
|
|
108
|
+
<Text color="white" size="s">{child.title}</Text>
|
|
109
109
|
</SubNavLink>
|
|
110
110
|
</SubNavItem>
|
|
111
111
|
);
|