@comicrelief/component-library 7.0.0 → 7.0.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.
@@ -367,7 +367,7 @@ exports[`Monthly donation renders correctly 1`] = `
367
367
  background: #BECCF9;
368
368
  }
369
369
 
370
- .c8 #give-monthly:checked ~ .c11 {
370
+ .c8 .give-monthly:checked ~ .c11 {
371
371
  left: calc(50% - 2px);
372
372
  }
373
373
 
@@ -415,6 +415,8 @@ exports[`Monthly donation renders correctly 1`] = `
415
415
  transition: color 0.15s ease-out;
416
416
  z-index: 2;
417
417
  cursor: default;
418
+ border-radius: 2rem;
419
+ color: #FFFFFF;
418
420
  }
419
421
 
420
422
  .c9:active:focus {
@@ -427,16 +429,6 @@ exports[`Monthly donation renders correctly 1`] = `
427
429
  box-shadow: inset 0 0 0 4px #0565D1;
428
430
  }
429
431
 
430
- .c9[for='give-once'] {
431
- border-radius: 2rem;
432
- color: #FFFFFF;
433
- }
434
-
435
- .c9[for='give-monthly'] {
436
- border-radius: 2rem;
437
- color: #FFFFFF;
438
- }
439
-
440
432
  .c10 {
441
433
  font-size: 1rem;
442
434
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
@@ -462,6 +454,8 @@ exports[`Monthly donation renders correctly 1`] = `
462
454
  transition: color 0.15s ease-out;
463
455
  z-index: 2;
464
456
  cursor: pointer;
457
+ border-radius: 2rem;
458
+ color: #000000;
465
459
  }
466
460
 
467
461
  .c10:active:focus {
@@ -474,16 +468,6 @@ exports[`Monthly donation renders correctly 1`] = `
474
468
  box-shadow: inset 0 0 0 4px #0565D1;
475
469
  }
476
470
 
477
- .c10[for='give-once'] {
478
- border-radius: 2rem;
479
- color: #000000;
480
- }
481
-
482
- .c10[for='give-monthly'] {
483
- border-radius: 2rem;
484
- color: #000000;
485
- }
486
-
487
471
  @media (min-width:740px) {
488
472
  .c5 {
489
473
  font-size: 1.25rem;
@@ -644,8 +628,9 @@ exports[`Monthly donation renders correctly 1`] = `
644
628
  <input
645
629
  aria-label="Single"
646
630
  checked={true}
631
+ className="give-once"
647
632
  errormsg=""
648
- id="give-once"
633
+ id="give-once--mship-1"
649
634
  label=""
650
635
  onClick={[Function]}
651
636
  type="radio"
@@ -653,15 +638,16 @@ exports[`Monthly donation renders correctly 1`] = `
653
638
  />
654
639
  <label
655
640
  className="c9"
656
- htmlFor="give-once"
641
+ htmlFor="give-once--mship-1"
657
642
  >
658
643
  Single
659
644
  </label>
660
645
  <input
661
646
  aria-label="Monthly"
662
647
  checked={false}
648
+ className="give-monthly"
663
649
  errormsg=""
664
- id="give-monthly"
650
+ id="give-monthly--mship-1"
665
651
  label=""
666
652
  onClick={[Function]}
667
653
  type="radio"
@@ -669,7 +655,7 @@ exports[`Monthly donation renders correctly 1`] = `
669
655
  />
670
656
  <label
671
657
  className="c10"
672
- htmlFor="give-monthly"
658
+ htmlFor="give-monthly--mship-1"
673
659
  >
674
660
  Monthly
675
661
  </label>
@@ -832,7 +818,7 @@ exports[`Monthly donation renders correctly 1`] = `
832
818
  aria-label="Input a different amount"
833
819
  className="c23"
834
820
  id="mship-1--MoneyBuy-userInput"
835
- max="20000"
821
+ max="25000"
836
822
  min="1"
837
823
  name="membership_amount"
838
824
  onChange={[Function]}
@@ -1535,7 +1521,7 @@ exports[`Single donation renders correctly 1`] = `
1535
1521
  aria-label="Input a different amount"
1536
1522
  className="c17"
1537
1523
  id="mship-1--MoneyBuy-userInput"
1538
- max="20000"
1524
+ max="25000"
1539
1525
  min="1"
1540
1526
  name="membership_amount"
1541
1527
  onChange={[Function]}
@@ -2001,7 +1987,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2001
1987
  aria-label="Input a different amount"
2002
1988
  className="c17"
2003
1989
  id="mship-1--MoneyBuy-userInput"
2004
- max="20000"
1990
+ max="25000"
2005
1991
  min="1"
2006
1992
  name="membership_amount"
2007
1993
  onChange={[Function]}
@@ -23,6 +23,7 @@ const EmailSignUpForm = () => {
23
23
  ESU_FIELDS.LAST_NAME
24
24
  ]);
25
25
  if (valid) {
26
+ // eslint-disable-next-line no-console
26
27
  console.log(data);
27
28
  }
28
29
  }
@@ -170,7 +170,7 @@ const Signup = ({
170
170
  id={`${mbshipID}--MoneyBuy-userInput`}
171
171
  showLabel
172
172
  {...rest}
173
- max="20000"
173
+ max="25000"
174
174
  min="1"
175
175
  value={userInput}
176
176
  pattern="[^[0-9]+([,.][0-9]+)?$]"
@@ -183,8 +183,8 @@ const Signup = ({
183
183
  </FormFieldset>
184
184
  <Button as="input" type="submit" value="Donate" />
185
185
  {errorMsg && (
186
- <Error tag="p">
187
- Please enter a number between 1 and 20000, and up to 2 decimal
186
+ <Error tag="p" className="error--amount">
187
+ Please enter a number between 1 and 25000, and up to 2 decimal
188
188
  places
189
189
  </Error>
190
190
  )}
@@ -589,7 +589,7 @@ it("renders correctly", () => {
589
589
  aria-label="Input a different amount"
590
590
  className="c19"
591
591
  id="mship-1--MoneyBuy-userInput"
592
- max="20000"
592
+ max="25000"
593
593
  min="1"
594
594
  name="membership_amount"
595
595
  onChange={[Function]}
@@ -7,7 +7,7 @@ const onKeyPress = event => {
7
7
 
8
8
  const isAmountValid = input => {
9
9
  const reg = /^\s*(?=.*[1-9])\d*(?:\.\d{1,2})?\s*$/g;
10
- const isValid = input * 1 >= 1 && input * 1 <= 20000 && reg.test(input);
10
+ const isValid = input * 1 >= 1 && input * 1 <= 25000 && reg.test(input);
11
11
  return isValid;
12
12
  };
13
13