@comicrelief/component-library 8.18.4 → 8.19.1

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 (39) hide show
  1. package/dist/components/Atoms/ErrorText/ErrorText.js +3 -15
  2. package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +1 -17
  3. package/dist/components/Atoms/Input/Input.js +39 -24
  4. package/dist/components/Atoms/Input/Input.md +1 -2
  5. package/dist/components/Atoms/Input/assets/error-alert-icon-red.svg +10 -0
  6. package/dist/components/Atoms/Input/input.test.js +1 -1
  7. package/dist/components/Atoms/Label/Label.js +16 -10
  8. package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +2 -2
  9. package/dist/components/Atoms/TextArea/TextArea.test.js +1 -1
  10. package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +160 -84
  11. package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +48 -20
  12. package/dist/components/Molecules/SearchInput/SearchInput.test.js +1 -1
  13. package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +48 -20
  14. package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +306 -179
  15. package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +89 -59
  16. package/dist/components/Organisms/Membership/Membership.test.js +2 -2
  17. package/package.json +1 -1
  18. package/src/components/Atoms/ErrorText/ErrorText.js +1 -19
  19. package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +1 -17
  20. package/src/components/Atoms/Input/Input.js +54 -20
  21. package/src/components/Atoms/Input/Input.md +1 -2
  22. package/src/components/Atoms/Input/assets/error-alert-icon-red.svg +10 -0
  23. package/src/components/Atoms/Input/input.test.js +44 -16
  24. package/src/components/Atoms/Label/Label.js +25 -9
  25. package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +2 -2
  26. package/src/components/Atoms/TextArea/TextArea.test.js +2 -2
  27. package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +160 -84
  28. package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +48 -20
  29. package/src/components/Molecules/SearchInput/SearchInput.test.js +47 -19
  30. package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +48 -20
  31. package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +306 -179
  32. package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +89 -59
  33. package/src/components/Organisms/Membership/Membership.test.js +121 -86
  34. package/dist/components/Atoms/Input/assets/CR_Error--red.svg +0 -1
  35. package/dist/components/Atoms/Input/assets/CR_Error.svg +0 -1
  36. package/dist/components/Atoms/Input/assets/error-alert-icon.png +0 -0
  37. package/src/components/Atoms/Input/assets/CR_Error--red.svg +0 -1
  38. package/src/components/Atoms/Input/assets/CR_Error.svg +0 -1
  39. package/src/components/Atoms/Input/assets/error-alert-icon.png +0 -0
@@ -37,12 +37,12 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
37
37
  font-size: 1rem;
38
38
  line-height: 1rem;
39
39
  text-transform: inherit;
40
- font-weight: bold;
41
40
  line-height: normal;
42
41
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
43
42
  }
44
43
 
45
44
  .c18 {
45
+ width: 100%;
46
46
  position: relative;
47
47
  display: -webkit-box;
48
48
  display: -webkit-flex;
@@ -52,19 +52,41 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
52
52
  -ms-flex-direction: column;
53
53
  flex-direction: column;
54
54
  color: #5C5C5E;
55
- width: 100%;
56
55
  }
57
56
 
58
57
  .c21 {
59
58
  margin-bottom: 0.5rem;
59
+ font-weight: normal;
60
+ }
61
+
62
+ .c22 {
63
+ position: relative;
64
+ font-size: 1.25rem;
60
65
  }
61
66
 
62
67
  .c23 {
68
+ position: relative;
69
+ width: 100%;
70
+ display: -webkit-box;
71
+ display: -webkit-flex;
72
+ display: -ms-flexbox;
73
+ display: flex;
74
+ -webkit-box-pack: end;
75
+ -webkit-justify-content: flex-end;
76
+ -ms-flex-pack: end;
77
+ justify-content: flex-end;
78
+ -webkit-align-items: center;
79
+ -webkit-box-align: center;
80
+ -ms-flex-align: center;
81
+ align-items: center;
82
+ }
83
+
84
+ .c24 {
63
85
  position: relative;
64
86
  box-sizing: border-box;
65
87
  width: 100%;
66
88
  height: 48px;
67
- padding: 1rem 1.5rem;
89
+ padding: 1rem 2.4rem 1rem 1.5rem;
68
90
  background-color: #F4F3F5;
69
91
  border: 1px solid;
70
92
  border-color: #E1E2E3;
@@ -79,15 +101,10 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
79
101
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
80
102
  }
81
103
 
82
- .c23:focus {
104
+ .c24:focus {
83
105
  border: 1px solid #666;
84
106
  }
85
107
 
86
- .c22 {
87
- position: relative;
88
- font-size: 1.25rem;
89
- }
90
-
91
108
  .c0 {
92
109
  position: relative;
93
110
  display: -webkit-box;
@@ -238,12 +255,12 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
238
255
  border: 2px solid #969598;
239
256
  }
240
257
 
241
- .c24 {
258
+ .c25 {
242
259
  line-height: 1.5;
243
260
  margin-top: 2rem;
244
261
  }
245
262
 
246
- .c25 {
263
+ .c26 {
247
264
  width: 100%;
248
265
  margin: 2rem 0 2rem;
249
266
  color: #FFFFFF;
@@ -262,9 +279,9 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
262
279
  appearance: none;
263
280
  }
264
281
 
265
- .c25:active,
266
- .c25:focus,
267
- .c25:hover {
282
+ .c26:active,
283
+ .c26:focus,
284
+ .c26:hover {
268
285
  outline: none;
269
286
  background-color: #961D35;
270
287
  }
@@ -420,6 +437,12 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
420
437
  }
421
438
  }
422
439
 
440
+ @media (min-width:740px) {
441
+ .c24 {
442
+ max-width: 290px;
443
+ }
444
+ }
445
+
423
446
  @media (min-width:1024px) {
424
447
  .c0 {
425
448
  -webkit-flex-direction: row;
@@ -497,7 +520,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
497
520
  }
498
521
 
499
522
  @media (min-width:740px) {
500
- .c25 {
523
+ .c26 {
501
524
  padding: 1rem 2rem;
502
525
  }
503
526
  }
@@ -625,28 +648,33 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
625
648
  className="c22"
626
649
  >
627
650
 
628
- <input
629
- aria-describedby="mship-4--MoneyBuy-userInput"
630
- aria-label="Input a different amount"
651
+ <div
631
652
  className="c23"
632
- id="mship-4--MoneyBuy-userInput"
633
- max="25000"
634
- min="1"
635
- name="membership_amount"
636
- onChange={[Function]}
637
- pattern="[^[0-9]+([,.][0-9]+)?$]"
638
- placeholder="0.00"
639
- required={false}
640
- step="0.01"
641
- type="string"
642
- value={345.67}
643
- />
653
+ >
654
+ <input
655
+ aria-describedby="mship-4--MoneyBuy-userInput"
656
+ aria-label="Input a different amount"
657
+ className="c24"
658
+ id="mship-4--MoneyBuy-userInput"
659
+ max="25000"
660
+ min="1"
661
+ name="membership_amount"
662
+ onChange={[Function]}
663
+ pattern="[^[0-9]+([,.][0-9]+)?$]"
664
+ placeholder="0.00"
665
+ required={false}
666
+ step="0.01"
667
+ type="string"
668
+ value={345.67}
669
+ />
670
+
671
+ </div>
644
672
  </div>
645
673
 
646
674
  </label>
647
675
  </div>
648
676
  <p
649
- className="c24"
677
+ className="c25"
650
678
  >
651
679
  <strong>
652
680
  £345.67
@@ -654,7 +682,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
654
682
  will help us fund amazing projects in the UK and around the world.
655
683
  </p>
656
684
  <button
657
- className="c25"
685
+ className="c26"
658
686
  color="red"
659
687
  type="submit"
660
688
  >
@@ -713,12 +741,12 @@ exports[`Monthly donation renders correctly 1`] = `
713
741
  font-size: 1rem;
714
742
  line-height: 1rem;
715
743
  text-transform: inherit;
716
- font-weight: bold;
717
744
  line-height: normal;
718
745
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
719
746
  }
720
747
 
721
748
  .c19 {
749
+ width: 100%;
722
750
  position: relative;
723
751
  display: -webkit-box;
724
752
  display: -webkit-flex;
@@ -728,19 +756,41 @@ exports[`Monthly donation renders correctly 1`] = `
728
756
  -ms-flex-direction: column;
729
757
  flex-direction: column;
730
758
  color: #5C5C5E;
731
- width: 100%;
732
759
  }
733
760
 
734
761
  .c22 {
735
762
  margin-bottom: 0.5rem;
763
+ font-weight: normal;
764
+ }
765
+
766
+ .c23 {
767
+ position: relative;
768
+ font-size: 1.25rem;
736
769
  }
737
770
 
738
771
  .c24 {
772
+ position: relative;
773
+ width: 100%;
774
+ display: -webkit-box;
775
+ display: -webkit-flex;
776
+ display: -ms-flexbox;
777
+ display: flex;
778
+ -webkit-box-pack: end;
779
+ -webkit-justify-content: flex-end;
780
+ -ms-flex-pack: end;
781
+ justify-content: flex-end;
782
+ -webkit-align-items: center;
783
+ -webkit-box-align: center;
784
+ -ms-flex-align: center;
785
+ align-items: center;
786
+ }
787
+
788
+ .c25 {
739
789
  position: relative;
740
790
  box-sizing: border-box;
741
791
  width: 100%;
742
792
  height: 48px;
743
- padding: 1rem 1.5rem;
793
+ padding: 1rem 2.4rem 1rem 1.5rem;
744
794
  background-color: #F4F3F5;
745
795
  border: 1px solid;
746
796
  border-color: #E1E2E3;
@@ -755,15 +805,10 @@ exports[`Monthly donation renders correctly 1`] = `
755
805
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
756
806
  }
757
807
 
758
- .c24:focus {
808
+ .c25:focus {
759
809
  border: 1px solid #666;
760
810
  }
761
811
 
762
- .c23 {
763
- position: relative;
764
- font-size: 1.25rem;
765
- }
766
-
767
812
  .c0 {
768
813
  position: relative;
769
814
  display: -webkit-box;
@@ -918,12 +963,12 @@ exports[`Monthly donation renders correctly 1`] = `
918
963
  border: 2px solid #969598;
919
964
  }
920
965
 
921
- .c25 {
966
+ .c26 {
922
967
  line-height: 1.5;
923
968
  margin-top: 2rem;
924
969
  }
925
970
 
926
- .c26 {
971
+ .c27 {
927
972
  width: 100%;
928
973
  margin: 2rem 0 2rem;
929
974
  color: #FFFFFF;
@@ -942,9 +987,9 @@ exports[`Monthly donation renders correctly 1`] = `
942
987
  appearance: none;
943
988
  }
944
989
 
945
- .c26:active,
946
- .c26:focus,
947
- .c26:hover {
990
+ .c27:active,
991
+ .c27:focus,
992
+ .c27:hover {
948
993
  outline: none;
949
994
  background-color: #961D35;
950
995
  }
@@ -1061,6 +1106,12 @@ exports[`Monthly donation renders correctly 1`] = `
1061
1106
  }
1062
1107
  }
1063
1108
 
1109
+ @media (min-width:740px) {
1110
+ .c25 {
1111
+ max-width: 290px;
1112
+ }
1113
+ }
1114
+
1064
1115
  @media (min-width:1024px) {
1065
1116
  .c0 {
1066
1117
  -webkit-flex-direction: row;
@@ -1134,7 +1185,7 @@ exports[`Monthly donation renders correctly 1`] = `
1134
1185
  }
1135
1186
 
1136
1187
  @media (min-width:740px) {
1137
- .c26 {
1188
+ .c27 {
1138
1189
  padding: 1rem 2rem;
1139
1190
  }
1140
1191
  }
@@ -1269,35 +1320,40 @@ exports[`Monthly donation renders correctly 1`] = `
1269
1320
  className="c23"
1270
1321
  >
1271
1322
 
1272
- <input
1273
- aria-describedby="mship-1--MoneyBuy-userInput"
1274
- aria-label="Input a different amount"
1323
+ <div
1275
1324
  className="c24"
1276
- id="mship-1--MoneyBuy-userInput"
1277
- max="25000"
1278
- min="1"
1279
- name="membership_amount"
1280
- onChange={[Function]}
1281
- pattern="[^[0-9]+([,.][0-9]+)?$]"
1282
- placeholder="0.00"
1283
- required={false}
1284
- step="0.01"
1285
- type="string"
1286
- value={10}
1287
- />
1325
+ >
1326
+ <input
1327
+ aria-describedby="mship-1--MoneyBuy-userInput"
1328
+ aria-label="Input a different amount"
1329
+ className="c25"
1330
+ id="mship-1--MoneyBuy-userInput"
1331
+ max="25000"
1332
+ min="1"
1333
+ name="membership_amount"
1334
+ onChange={[Function]}
1335
+ pattern="[^[0-9]+([,.][0-9]+)?$]"
1336
+ placeholder="0.00"
1337
+ required={false}
1338
+ step="0.01"
1339
+ type="string"
1340
+ value={10}
1341
+ />
1342
+
1343
+ </div>
1288
1344
  </div>
1289
1345
 
1290
1346
  </label>
1291
1347
  </div>
1292
1348
  <p
1293
- className="c25"
1349
+ className="c26"
1294
1350
  >
1295
1351
  <strong>
1296
1352
  £10
1297
1353
  </strong>
1298
1354
  </p>
1299
1355
  <button
1300
- className="c26"
1356
+ className="c27"
1301
1357
  color="red"
1302
1358
  type="submit"
1303
1359
  >
@@ -1343,7 +1399,7 @@ exports[`Single donation renders correctly 1`] = `
1343
1399
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
1344
1400
  }
1345
1401
 
1346
- .c20 {
1402
+ .c21 {
1347
1403
  font-size: 1rem;
1348
1404
  line-height: 1rem;
1349
1405
  text-transform: inherit;
@@ -1356,12 +1412,12 @@ exports[`Single donation renders correctly 1`] = `
1356
1412
  font-size: 1rem;
1357
1413
  line-height: 1rem;
1358
1414
  text-transform: inherit;
1359
- font-weight: bold;
1360
1415
  line-height: normal;
1361
1416
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
1362
1417
  }
1363
1418
 
1364
1419
  .c12 {
1420
+ width: 100%;
1365
1421
  position: relative;
1366
1422
  display: -webkit-box;
1367
1423
  display: -webkit-flex;
@@ -1371,19 +1427,41 @@ exports[`Single donation renders correctly 1`] = `
1371
1427
  -ms-flex-direction: column;
1372
1428
  flex-direction: column;
1373
1429
  color: #5C5C5E;
1374
- width: 100%;
1375
1430
  }
1376
1431
 
1377
1432
  .c15 {
1378
1433
  margin-bottom: 0.5rem;
1434
+ font-weight: normal;
1435
+ }
1436
+
1437
+ .c16 {
1438
+ position: relative;
1439
+ font-size: 1.25rem;
1379
1440
  }
1380
1441
 
1381
1442
  .c17 {
1443
+ position: relative;
1444
+ width: 100%;
1445
+ display: -webkit-box;
1446
+ display: -webkit-flex;
1447
+ display: -ms-flexbox;
1448
+ display: flex;
1449
+ -webkit-box-pack: end;
1450
+ -webkit-justify-content: flex-end;
1451
+ -ms-flex-pack: end;
1452
+ justify-content: flex-end;
1453
+ -webkit-align-items: center;
1454
+ -webkit-box-align: center;
1455
+ -ms-flex-align: center;
1456
+ align-items: center;
1457
+ }
1458
+
1459
+ .c18 {
1382
1460
  position: relative;
1383
1461
  box-sizing: border-box;
1384
1462
  width: 100%;
1385
1463
  height: 48px;
1386
- padding: 1rem 1.5rem;
1464
+ padding: 1rem 2.4rem 1rem 1.5rem;
1387
1465
  background-color: #F4F3F5;
1388
1466
  border: 1px solid;
1389
1467
  border-color: #E1E2E3;
@@ -1398,15 +1476,10 @@ exports[`Single donation renders correctly 1`] = `
1398
1476
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
1399
1477
  }
1400
1478
 
1401
- .c17:focus {
1479
+ .c18:focus {
1402
1480
  border: 1px solid #666;
1403
1481
  }
1404
1482
 
1405
- .c16 {
1406
- position: relative;
1407
- font-size: 1.25rem;
1408
- }
1409
-
1410
1483
  .c13 {
1411
1484
  display: block;
1412
1485
  }
@@ -1433,11 +1506,11 @@ exports[`Single donation renders correctly 1`] = `
1433
1506
  box-shadow: 0px 0px 16px rgba(0,0,0,0.3);
1434
1507
  }
1435
1508
 
1436
- .c18 {
1509
+ .c19 {
1437
1510
  display: block;
1438
1511
  }
1439
1512
 
1440
- .c18 input {
1513
+ .c19 input {
1441
1514
  border: none;
1442
1515
  background-color: #BECCF9;
1443
1516
  color: #000000;
@@ -1452,17 +1525,17 @@ exports[`Single donation renders correctly 1`] = `
1452
1525
  color: #FFFFFF;
1453
1526
  }
1454
1527
 
1455
- .c18 input:focus {
1528
+ .c19 input:focus {
1456
1529
  border: none;
1457
1530
  outline: none;
1458
1531
  box-shadow: inset 0 0 0 4px #2042AD;
1459
1532
  }
1460
1533
 
1461
- .c18 input:active:focus {
1534
+ .c19 input:active:focus {
1462
1535
  box-shadow: 0px 0px 16px rgba(0,0,0,0.3);
1463
1536
  }
1464
1537
 
1465
- .c18 input:focus {
1538
+ .c19 input:focus {
1466
1539
  box-shadow: 0px 0px 16px rgba(0,0,0,0.3);
1467
1540
  }
1468
1541
 
@@ -1586,7 +1659,7 @@ exports[`Single donation renders correctly 1`] = `
1586
1659
  padding: 1.5rem 0.5rem;
1587
1660
  }
1588
1661
 
1589
- .c19 {
1662
+ .c20 {
1590
1663
  display: -webkit-box;
1591
1664
  display: -webkit-flex;
1592
1665
  display: -ms-flexbox;
@@ -1601,11 +1674,11 @@ exports[`Single donation renders correctly 1`] = `
1601
1674
  justify-content: center;
1602
1675
  }
1603
1676
 
1604
- .c21 {
1677
+ .c22 {
1605
1678
  margin-right: 0.5rem;
1606
1679
  }
1607
1680
 
1608
- .c22 {
1681
+ .c23 {
1609
1682
  position: relative;
1610
1683
  -webkit-flex-basis: 50%;
1611
1684
  -ms-flex-preferred-size: 50%;
@@ -1621,7 +1694,7 @@ exports[`Single donation renders correctly 1`] = `
1621
1694
  display: block;
1622
1695
  }
1623
1696
 
1624
- .c22 span {
1697
+ .c23 span {
1625
1698
  position: absolute;
1626
1699
  font-size: 20px;
1627
1700
  top: 50%;
@@ -1634,7 +1707,7 @@ exports[`Single donation renders correctly 1`] = `
1634
1707
  z-index: 3;
1635
1708
  }
1636
1709
 
1637
- .c22 input {
1710
+ .c23 input {
1638
1711
  height: 48px;
1639
1712
  border: 2px solid #969598;
1640
1713
  background: #F4F3F5;
@@ -1642,17 +1715,17 @@ exports[`Single donation renders correctly 1`] = `
1642
1715
  padding: 0.5rem 1rem 0.5rem 2rem;
1643
1716
  }
1644
1717
 
1645
- .c22 input:focus {
1718
+ .c23 input:focus {
1646
1719
  outline: none;
1647
1720
  border: 2px solid #969598;
1648
1721
  }
1649
1722
 
1650
- .c23 {
1723
+ .c24 {
1651
1724
  line-height: 1.5;
1652
1725
  margin-top: 2rem;
1653
1726
  }
1654
1727
 
1655
- .c24 {
1728
+ .c25 {
1656
1729
  width: 100%;
1657
1730
  margin: 2rem 0 2rem;
1658
1731
  color: #FFFFFF;
@@ -1671,9 +1744,9 @@ exports[`Single donation renders correctly 1`] = `
1671
1744
  appearance: none;
1672
1745
  }
1673
1746
 
1674
- .c24:active,
1675
- .c24:focus,
1676
- .c24:hover {
1747
+ .c25:active,
1748
+ .c25:focus,
1749
+ .c25:hover {
1677
1750
  outline: none;
1678
1751
  background-color: #961D35;
1679
1752
  }
@@ -1690,6 +1763,12 @@ exports[`Single donation renders correctly 1`] = `
1690
1763
  }
1691
1764
  }
1692
1765
 
1766
+ @media (min-width:740px) {
1767
+ .c18 {
1768
+ max-width: 290px;
1769
+ }
1770
+ }
1771
+
1693
1772
  @media (min-width:740px) {
1694
1773
  .c13 input {
1695
1774
  font-size: 2rem;
@@ -1698,7 +1777,7 @@ exports[`Single donation renders correctly 1`] = `
1698
1777
  }
1699
1778
 
1700
1779
  @media (min-width:740px) {
1701
- .c18 input {
1780
+ .c19 input {
1702
1781
  font-size: 2rem;
1703
1782
  padding: 1.5rem;
1704
1783
  }
@@ -1791,7 +1870,7 @@ exports[`Single donation renders correctly 1`] = `
1791
1870
  }
1792
1871
 
1793
1872
  @media (min-width:740px) {
1794
- .c22 {
1873
+ .c23 {
1795
1874
  -webkit-flex-basis: 60%;
1796
1875
  -ms-flex-preferred-size: 60%;
1797
1876
  flex-basis: 60%;
@@ -1799,7 +1878,7 @@ exports[`Single donation renders correctly 1`] = `
1799
1878
  }
1800
1879
 
1801
1880
  @media (min-width:740px) {
1802
- .c24 {
1881
+ .c25 {
1803
1882
  padding: 1rem 2rem;
1804
1883
  }
1805
1884
  }
@@ -1881,23 +1960,28 @@ exports[`Single donation renders correctly 1`] = `
1881
1960
  className="c16"
1882
1961
  >
1883
1962
 
1884
- <input
1885
- aria-describedby="mship-1--moneyBuy-box1"
1886
- aria-label="£10"
1963
+ <div
1887
1964
  className="c17"
1888
- id="mship-1--moneyBuy-box1"
1889
- name="mship-1--moneyBuy1"
1890
- onClick={[Function]}
1891
- placeholder=""
1892
- required={false}
1893
- type="button"
1894
- value="£ 10"
1895
- />
1965
+ >
1966
+ <input
1967
+ aria-describedby="mship-1--moneyBuy-box1"
1968
+ aria-label="£10"
1969
+ className="c18"
1970
+ id="mship-1--moneyBuy-box1"
1971
+ name="mship-1--moneyBuy1"
1972
+ onClick={[Function]}
1973
+ placeholder=""
1974
+ required={false}
1975
+ type="button"
1976
+ value="£ 10"
1977
+ />
1978
+
1979
+ </div>
1896
1980
  </div>
1897
1981
 
1898
1982
  </label>
1899
1983
  <label
1900
- className="c12 c18"
1984
+ className="c12 c19"
1901
1985
  htmlFor="mship-1--moneyBuy-box2"
1902
1986
  >
1903
1987
  <span
@@ -1914,18 +1998,23 @@ exports[`Single donation renders correctly 1`] = `
1914
1998
  className="c16"
1915
1999
  >
1916
2000
 
1917
- <input
1918
- aria-describedby="mship-1--moneyBuy-box2"
1919
- aria-label="£20"
2001
+ <div
1920
2002
  className="c17"
1921
- id="mship-1--moneyBuy-box2"
1922
- name="mship-1--moneyBuy2"
1923
- onClick={[Function]}
1924
- placeholder=""
1925
- required={false}
1926
- type="button"
1927
- value="£ 20"
1928
- />
2003
+ >
2004
+ <input
2005
+ aria-describedby="mship-1--moneyBuy-box2"
2006
+ aria-label="£20"
2007
+ className="c18"
2008
+ id="mship-1--moneyBuy-box2"
2009
+ name="mship-1--moneyBuy2"
2010
+ onClick={[Function]}
2011
+ placeholder=""
2012
+ required={false}
2013
+ type="button"
2014
+ value="£ 20"
2015
+ />
2016
+
2017
+ </div>
1929
2018
  </div>
1930
2019
 
1931
2020
  </label>
@@ -1947,34 +2036,39 @@ exports[`Single donation renders correctly 1`] = `
1947
2036
  className="c16"
1948
2037
  >
1949
2038
 
1950
- <input
1951
- aria-describedby="mship-1--moneyBuy-box3"
1952
- aria-label="£30"
2039
+ <div
1953
2040
  className="c17"
1954
- id="mship-1--moneyBuy-box3"
1955
- name="mship-1--moneyBuy3"
1956
- onClick={[Function]}
1957
- placeholder=""
1958
- required={false}
1959
- type="button"
1960
- value="£ 30"
1961
- />
2041
+ >
2042
+ <input
2043
+ aria-describedby="mship-1--moneyBuy-box3"
2044
+ aria-label="£30"
2045
+ className="c18"
2046
+ id="mship-1--moneyBuy-box3"
2047
+ name="mship-1--moneyBuy3"
2048
+ onClick={[Function]}
2049
+ placeholder=""
2050
+ required={false}
2051
+ type="button"
2052
+ value="£ 30"
2053
+ />
2054
+
2055
+ </div>
1962
2056
  </div>
1963
2057
 
1964
2058
  </label>
1965
2059
  </div>
1966
2060
  <div
1967
- className="c19"
2061
+ className="c20"
1968
2062
  >
1969
2063
  <span
1970
- className="c20 c21"
2064
+ className="c21 c22"
1971
2065
  color="inherit"
1972
2066
  size="s"
1973
2067
  >
1974
2068
  Other amount
1975
2069
  </span>
1976
2070
  <label
1977
- className="c12 c22"
2071
+ className="c12 c23"
1978
2072
  htmlFor="mship-1--MoneyBuy-userInput"
1979
2073
  >
1980
2074
  <span
@@ -1991,28 +2085,33 @@ exports[`Single donation renders correctly 1`] = `
1991
2085
  className="c16"
1992
2086
  >
1993
2087
 
1994
- <input
1995
- aria-describedby="mship-1--MoneyBuy-userInput"
1996
- aria-label="Input a different amount"
2088
+ <div
1997
2089
  className="c17"
1998
- id="mship-1--MoneyBuy-userInput"
1999
- max="25000"
2000
- min="1"
2001
- name="membership_amount"
2002
- onChange={[Function]}
2003
- pattern="[^[0-9]+([,.][0-9]+)?$]"
2004
- placeholder="0.00"
2005
- required={false}
2006
- step="0.01"
2007
- type="string"
2008
- value={20}
2009
- />
2090
+ >
2091
+ <input
2092
+ aria-describedby="mship-1--MoneyBuy-userInput"
2093
+ aria-label="Input a different amount"
2094
+ className="c18"
2095
+ id="mship-1--MoneyBuy-userInput"
2096
+ max="25000"
2097
+ min="1"
2098
+ name="membership_amount"
2099
+ onChange={[Function]}
2100
+ pattern="[^[0-9]+([,.][0-9]+)?$]"
2101
+ placeholder="0.00"
2102
+ required={false}
2103
+ step="0.01"
2104
+ type="string"
2105
+ value={20}
2106
+ />
2107
+
2108
+ </div>
2010
2109
  </div>
2011
2110
 
2012
2111
  </label>
2013
2112
  </div>
2014
2113
  <p
2015
- className="c23"
2114
+ className="c24"
2016
2115
  >
2017
2116
  <strong>
2018
2117
  £20
@@ -2020,7 +2119,7 @@ exports[`Single donation renders correctly 1`] = `
2020
2119
  a support worker to visit 10 isolated young mums with postnatal depression in the UK.
2021
2120
  </p>
2022
2121
  <button
2023
- className="c24"
2122
+ className="c25"
2024
2123
  color="red"
2025
2124
  type="submit"
2026
2125
  >
@@ -2070,12 +2169,12 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2070
2169
  font-size: 1rem;
2071
2170
  line-height: 1rem;
2072
2171
  text-transform: inherit;
2073
- font-weight: bold;
2074
2172
  line-height: normal;
2075
2173
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
2076
2174
  }
2077
2175
 
2078
2176
  .c12 {
2177
+ width: 100%;
2079
2178
  position: relative;
2080
2179
  display: -webkit-box;
2081
2180
  display: -webkit-flex;
@@ -2085,19 +2184,41 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2085
2184
  -ms-flex-direction: column;
2086
2185
  flex-direction: column;
2087
2186
  color: #5C5C5E;
2088
- width: 100%;
2089
2187
  }
2090
2188
 
2091
2189
  .c15 {
2092
2190
  margin-bottom: 0.5rem;
2191
+ font-weight: normal;
2192
+ }
2193
+
2194
+ .c16 {
2195
+ position: relative;
2196
+ font-size: 1.25rem;
2093
2197
  }
2094
2198
 
2095
2199
  .c17 {
2200
+ position: relative;
2201
+ width: 100%;
2202
+ display: -webkit-box;
2203
+ display: -webkit-flex;
2204
+ display: -ms-flexbox;
2205
+ display: flex;
2206
+ -webkit-box-pack: end;
2207
+ -webkit-justify-content: flex-end;
2208
+ -ms-flex-pack: end;
2209
+ justify-content: flex-end;
2210
+ -webkit-align-items: center;
2211
+ -webkit-box-align: center;
2212
+ -ms-flex-align: center;
2213
+ align-items: center;
2214
+ }
2215
+
2216
+ .c18 {
2096
2217
  position: relative;
2097
2218
  box-sizing: border-box;
2098
2219
  width: 100%;
2099
2220
  height: 48px;
2100
- padding: 1rem 1.5rem;
2221
+ padding: 1rem 2.4rem 1rem 1.5rem;
2101
2222
  background-color: #F4F3F5;
2102
2223
  border: 1px solid;
2103
2224
  border-color: #E1E2E3;
@@ -2112,15 +2233,10 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2112
2233
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
2113
2234
  }
2114
2235
 
2115
- .c17:focus {
2236
+ .c18:focus {
2116
2237
  border: 1px solid #666;
2117
2238
  }
2118
2239
 
2119
- .c16 {
2120
- position: relative;
2121
- font-size: 1.25rem;
2122
- }
2123
-
2124
2240
  .c0 {
2125
2241
  position: relative;
2126
2242
  display: -webkit-box;
@@ -2271,12 +2387,12 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2271
2387
  border: 2px solid #969598;
2272
2388
  }
2273
2389
 
2274
- .c18 {
2390
+ .c19 {
2275
2391
  line-height: 1.5;
2276
2392
  margin-top: 2rem;
2277
2393
  }
2278
2394
 
2279
- .c19 {
2395
+ .c20 {
2280
2396
  width: 100%;
2281
2397
  margin: 2rem 0 2rem;
2282
2398
  color: #FFFFFF;
@@ -2295,9 +2411,9 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2295
2411
  appearance: none;
2296
2412
  }
2297
2413
 
2298
- .c19:active,
2299
- .c19:focus,
2300
- .c19:hover {
2414
+ .c20:active,
2415
+ .c20:focus,
2416
+ .c20:hover {
2301
2417
  outline: none;
2302
2418
  background-color: #961D35;
2303
2419
  }
@@ -2314,6 +2430,12 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2314
2430
  }
2315
2431
  }
2316
2432
 
2433
+ @media (min-width:740px) {
2434
+ .c18 {
2435
+ max-width: 290px;
2436
+ }
2437
+ }
2438
+
2317
2439
  @media (min-width:1024px) {
2318
2440
  .c0 {
2319
2441
  -webkit-flex-direction: row;
@@ -2387,7 +2509,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2387
2509
  }
2388
2510
 
2389
2511
  @media (min-width:740px) {
2390
- .c19 {
2512
+ .c20 {
2391
2513
  padding: 1rem 2rem;
2392
2514
  }
2393
2515
  }
@@ -2465,35 +2587,40 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2465
2587
  className="c16"
2466
2588
  >
2467
2589
 
2468
- <input
2469
- aria-describedby="mship-1--MoneyBuy-userInput"
2470
- aria-label="Input a different amount"
2590
+ <div
2471
2591
  className="c17"
2472
- id="mship-1--MoneyBuy-userInput"
2473
- max="25000"
2474
- min="1"
2475
- name="membership_amount"
2476
- onChange={[Function]}
2477
- pattern="[^[0-9]+([,.][0-9]+)?$]"
2478
- placeholder="0.00"
2479
- required={false}
2480
- step="0.01"
2481
- type="string"
2482
- value={10}
2483
- />
2592
+ >
2593
+ <input
2594
+ aria-describedby="mship-1--MoneyBuy-userInput"
2595
+ aria-label="Input a different amount"
2596
+ className="c18"
2597
+ id="mship-1--MoneyBuy-userInput"
2598
+ max="25000"
2599
+ min="1"
2600
+ name="membership_amount"
2601
+ onChange={[Function]}
2602
+ pattern="[^[0-9]+([,.][0-9]+)?$]"
2603
+ placeholder="0.00"
2604
+ required={false}
2605
+ step="0.01"
2606
+ type="string"
2607
+ value={10}
2608
+ />
2609
+
2610
+ </div>
2484
2611
  </div>
2485
2612
 
2486
2613
  </label>
2487
2614
  </div>
2488
2615
  <p
2489
- className="c18"
2616
+ className="c19"
2490
2617
  >
2491
2618
  <strong>
2492
2619
  £10
2493
2620
  </strong>
2494
2621
  </p>
2495
2622
  <button
2496
- className="c19"
2623
+ className="c20"
2497
2624
  color="red"
2498
2625
  type="submit"
2499
2626
  >