@comicrelief/component-library 6.4.1 → 6.5.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.
@@ -69,7 +69,8 @@ var Donate = function Donate(_ref) {
69
69
  alt: alt,
70
70
  isBackgroundImage: true
71
71
  }) : null, /*#__PURE__*/_react.default.createElement(_Donate.Wrapper, {
72
- formAlignRight: formAlignRight
72
+ formAlignRight: formAlignRight,
73
+ "aria-live": "polite"
73
74
  }, /*#__PURE__*/_react.default.createElement(_Donate.Header, {
74
75
  formAlignRight: formAlignRight
75
76
  }, /*#__PURE__*/_react.default.createElement(_Donate.HeaderInner, null, subtitle && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
@@ -107,12 +107,19 @@ var Signup = function Signup(_ref) {
107
107
 
108
108
  var givingData = givingType === 'single' ? singleGiving : regularGiving;
109
109
  var showGivingSelector = singleGiving !== null && regularGiving !== null;
110
+
111
+ var _useState9 = (0, _react.useState)(false),
112
+ _useState10 = (0, _slicedToArray2.default)(_useState9, 2),
113
+ popOpen = _useState10[0],
114
+ setPopOpen = _useState10[1];
115
+
110
116
  return /*#__PURE__*/_react.default.createElement(_Donate.FormWrapper, null, showGivingSelector && /*#__PURE__*/_react.default.createElement(_GivingSelector.default, {
111
117
  givingType: givingType,
112
118
  changeGivingType: function changeGivingType(data) {
113
119
  return setGivingType(data);
114
- }
115
- }), givingType === 'single' && showGivingSelector && /*#__PURE__*/_react.default.createElement(_PopUpComponent.default, {
120
+ },
121
+ setPopOpen: setPopOpen
122
+ }), popOpen && /*#__PURE__*/_react.default.createElement(_PopUpComponent.default, {
116
123
  PopUpText: PopUpText
117
124
  }), /*#__PURE__*/_react.default.createElement(_Donate.Form, {
118
125
  onSubmit: function onSubmit(e) {
@@ -11,12 +11,10 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm
11
11
 
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
 
14
- var _styledComponents = _interopRequireDefault(require("styled-components"));
14
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
15
15
 
16
16
  var _Text = _interopRequireDefault(require("../../../Atoms/Text/Text"));
17
17
 
18
- var _spacing = _interopRequireDefault(require("../../../../theme/shared/spacing"));
19
-
20
18
  var _size = require("../../../../theme/shared/size");
21
19
 
22
20
  var _close = _interopRequireDefault(require("../assets/close.svg"));
@@ -26,14 +24,16 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
26
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
25
 
28
26
  /* eslint-disable */
27
+ var fadeClose = (0, _styledComponents.keyframes)(["0%{opacity:1;max-height:350px;}100%{opacity:0;max-height:0px;display:none;margin-top:-16px;}"]);
28
+
29
29
  var StyledPopUp = _styledComponents.default.div.withConfig({
30
30
  displayName: "PopUpComponent__StyledPopUp",
31
31
  componentId: "sc-1d7imlo-0"
32
- })(["display:", ";background-color:", ";box-shadow:0px 0px 16px rgba(0,0,0,0.15);border-radius:8px;", "{width:450px;margin-right:auto;margin-left:auto;}"], function (props) {
33
- return props.isPop ? "grid" : "none";
32
+ })(["display:grid;overflow:hidden;max-height:350px;opacity:1;", " background-color:", ";box-shadow:0px 0px 16px rgba(0,0,0,0.15);border-radius:10px;", "{width:450px;margin-right:auto;margin-left:auto;}"], function (props) {
33
+ return props.isClosed && (0, _styledComponents.css)(["animation:0.6s ", " ease forwards;"], fadeClose);
34
34
  }, function (_ref) {
35
35
  var theme = _ref.theme;
36
- return theme.color('white');
36
+ return theme.color('blue_light');
37
37
  }, (0, _size.media)('small'));
38
38
 
39
39
  var TextWrapper = _styledComponents.default.div.withConfig({
@@ -44,27 +44,24 @@ var TextWrapper = _styledComponents.default.div.withConfig({
44
44
  var Button = _styledComponents.default.button.withConfig({
45
45
  displayName: "PopUpComponent__Button",
46
46
  componentId: "sc-1d7imlo-2"
47
- })(["justify-self:end;background:transparent;border:0;cursor:pointer;border:1px solid ", ";:active,:focus,:hover{outline:none;border:1px solid ", ";}margin:8px;width:35px;height:35px;padding:5px;img{width:15px;height:15px;vertical-align:middle;}"], function (_ref2) {
47
+ })(["justify-self:end;background-color:transparent;border:0;cursor:pointer;width:30px;height:30px;margin:3px;:active,:focus,:hover{outline:none;border:1px solid ", ";}img{width:15px;height:15px;vertical-align:middle;}"], function (_ref2) {
48
48
  var theme = _ref2.theme;
49
- return theme.color('white');
50
- }, function (_ref3) {
51
- var theme = _ref3.theme;
52
49
  return theme.color('grey');
53
50
  });
54
51
 
55
- var PopUpComponent = function PopUpComponent(_ref4) {
56
- var PopUpText = _ref4.PopUpText;
52
+ var PopUpComponent = function PopUpComponent(_ref3) {
53
+ var PopUpText = _ref3.PopUpText;
57
54
 
58
- var _useState = (0, _react.useState)(true),
55
+ var _useState = (0, _react.useState)(false),
59
56
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
60
- isPop = _useState2[0],
61
- setIsPop = _useState2[1];
57
+ isClosed = _useState2[0],
58
+ setIsClosed = _useState2[1];
62
59
 
63
60
  return /*#__PURE__*/_react.default.createElement(StyledPopUp, {
64
- isPop: isPop
61
+ isClosed: isClosed
65
62
  }, /*#__PURE__*/_react.default.createElement(Button, {
66
63
  onClick: function onClick() {
67
- return setIsPop(false);
64
+ return setIsClosed(true);
68
65
  },
69
66
  "aria-label": "Close"
70
67
  }, /*#__PURE__*/_react.default.createElement("img", {
@@ -70,7 +70,8 @@ var Label = _styledComponents.default.label.withConfig({
70
70
 
71
71
  var GivingSelector = function GivingSelector(_ref10) {
72
72
  var givingType = _ref10.givingType,
73
- changeGivingType = _ref10.changeGivingType;
73
+ changeGivingType = _ref10.changeGivingType,
74
+ setPopOpen = _ref10.setPopOpen;
74
75
  return /*#__PURE__*/_react.default.createElement(Wrapper, null, /*#__PURE__*/_react.default.createElement(MoneyBox, null, /*#__PURE__*/_react.default.createElement("input", {
75
76
  "aria-label": "Single",
76
77
  id: "give-once",
@@ -81,6 +82,7 @@ var GivingSelector = function GivingSelector(_ref10) {
81
82
  checked: givingType === 'single',
82
83
  onClick: function onClick() {
83
84
  changeGivingType('single');
85
+ setPopOpen(true);
84
86
  }
85
87
  }), /*#__PURE__*/_react.default.createElement(Label, {
86
88
  active: givingType === 'single',
@@ -95,6 +97,7 @@ var GivingSelector = function GivingSelector(_ref10) {
95
97
  checked: givingType === 'monthly',
96
98
  onClick: function onClick() {
97
99
  changeGivingType('monthly');
100
+ setPopOpen(false);
98
101
  }
99
102
  }), /*#__PURE__*/_react.default.createElement(Label, {
100
103
  active: givingType === 'monthly',
@@ -25,14 +25,6 @@ exports[`Monthly donation renders correctly 1`] = `
25
25
  }
26
26
 
27
27
  .c16 {
28
- font-size: 1rem;
29
- line-height: 1rem;
30
- text-transform: inherit;
31
- line-height: normal;
32
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
33
- }
34
-
35
- .c20 {
36
28
  font-size: 1.5rem;
37
29
  line-height: 1.5rem;
38
30
  text-transform: inherit;
@@ -41,7 +33,7 @@ exports[`Monthly donation renders correctly 1`] = `
41
33
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
42
34
  }
43
35
 
44
- .c24 {
36
+ .c20 {
45
37
  font-size: 1rem;
46
38
  line-height: 1rem;
47
39
  text-transform: inherit;
@@ -50,7 +42,7 @@ exports[`Monthly donation renders correctly 1`] = `
50
42
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
51
43
  }
52
44
 
53
- .c29 {
45
+ .c25 {
54
46
  font-size: 1rem;
55
47
  line-height: 1rem;
56
48
  text-transform: inherit;
@@ -59,7 +51,7 @@ exports[`Monthly donation renders correctly 1`] = `
59
51
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
60
52
  }
61
53
 
62
- .c22 {
54
+ .c18 {
63
55
  position: relative;
64
56
  display: -webkit-box;
65
57
  display: -webkit-flex;
@@ -72,11 +64,11 @@ exports[`Monthly donation renders correctly 1`] = `
72
64
  width: 100%;
73
65
  }
74
66
 
75
- .c25 {
67
+ .c21 {
76
68
  margin-bottom: 0.5rem;
77
69
  }
78
70
 
79
- .c27 {
71
+ .c23 {
80
72
  position: relative;
81
73
  box-sizing: border-box;
82
74
  width: 100%;
@@ -96,56 +88,20 @@ exports[`Monthly donation renders correctly 1`] = `
96
88
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
97
89
  }
98
90
 
99
- .c27:focus {
91
+ .c23:focus {
100
92
  border: 1px solid #666;
101
93
  }
102
94
 
103
- .c26 {
95
+ .c22 {
104
96
  position: relative;
105
97
  font-size: 1.25rem;
106
98
  }
107
99
 
108
- .c13 {
109
- display: grid;
110
- background-color: #FFFFFF;
111
- box-shadow: 0px 0px 16px rgba(0,0,0,0.15);
112
- border-radius: 8px;
113
- }
114
-
115
- .c15 {
116
- margin: 0 32px 32px;
117
- }
118
-
119
- .c14 {
120
- justify-self: end;
121
- background: transparent;
122
- border: 0;
123
- cursor: pointer;
124
- border: 1px solid #FFFFFF;
125
- margin: 8px;
126
- width: 35px;
127
- height: 35px;
128
- padding: 5px;
129
- }
130
-
131
- .c14:active,
132
- .c14:focus,
133
- .c14:hover {
134
- outline: none;
135
- border: 1px solid #969598;
136
- }
137
-
138
- .c14 img {
139
- width: 15px;
140
- height: 15px;
141
- vertical-align: middle;
142
- }
143
-
144
- .c23 {
100
+ .c19 {
145
101
  display: block;
146
102
  }
147
103
 
148
- .c23 input {
104
+ .c19 input {
149
105
  border: none;
150
106
  background-color: #BECCF9;
151
107
  color: #000000;
@@ -157,13 +113,13 @@ exports[`Monthly donation renders correctly 1`] = `
157
113
  height: auto;
158
114
  }
159
115
 
160
- .c23 input:focus {
116
+ .c19 input:focus {
161
117
  border: none;
162
118
  outline: none;
163
119
  box-shadow: inset 0 0 0 4px #0565D1;
164
120
  }
165
121
 
166
- .c23 input:active:focus {
122
+ .c19 input:active:focus {
167
123
  box-shadow: 0px 0px 16px rgba(0,0,0,0.3);
168
124
  }
169
125
 
@@ -221,7 +177,7 @@ exports[`Monthly donation renders correctly 1`] = `
221
177
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
222
178
  }
223
179
 
224
- .c17 {
180
+ .c13 {
225
181
  position: relative;
226
182
  width: 100%;
227
183
  background-color: #FFFFFF;
@@ -230,37 +186,37 @@ exports[`Monthly donation renders correctly 1`] = `
230
186
  margin-top: 1rem;
231
187
  }
232
188
 
233
- .c17 h3 {
189
+ .c13 h3 {
234
190
  margin-top: 1rem;
235
191
  }
236
192
 
237
- .c17 input {
193
+ .c13 input {
238
194
  max-width: 100%;
239
195
  margin: 0;
240
196
  }
241
197
 
242
- .c17 input[type='submit'] {
198
+ .c13 input[type='submit'] {
243
199
  margin: 2rem 0;
244
200
  }
245
201
 
246
- .c18 {
202
+ .c14 {
247
203
  padding: 0 1rem 1rem;
248
204
  margin: 0;
249
205
  border: none;
250
206
  }
251
207
 
252
- .c18 input[type='submit'] {
208
+ .c14 input[type='submit'] {
253
209
  margin-bottom: 0;
254
210
  }
255
211
 
256
- .c19 {
212
+ .c15 {
257
213
  margin: 0;
258
214
  padding: 2rem 0.5rem;
259
215
  display: block;
260
216
  width: 100%;
261
217
  }
262
218
 
263
- .c21 {
219
+ .c17 {
264
220
  display: -webkit-box;
265
221
  display: -webkit-flex;
266
222
  display: -ms-flexbox;
@@ -275,18 +231,18 @@ exports[`Monthly donation renders correctly 1`] = `
275
231
  margin-bottom: 2rem;
276
232
  }
277
233
 
278
- .c21 label {
234
+ .c17 label {
279
235
  -webkit-flex: 0 0 30%;
280
236
  -ms-flex: 0 0 30%;
281
237
  flex: 0 0 30%;
282
238
  margin-bottom: 0.5rem;
283
239
  }
284
240
 
285
- .c21 label input {
241
+ .c17 label input {
286
242
  cursor: pointer;
287
243
  }
288
244
 
289
- .c28 {
245
+ .c24 {
290
246
  display: -webkit-box;
291
247
  display: -webkit-flex;
292
248
  display: -ms-flexbox;
@@ -301,11 +257,11 @@ exports[`Monthly donation renders correctly 1`] = `
301
257
  justify-content: center;
302
258
  }
303
259
 
304
- .c30 {
260
+ .c26 {
305
261
  margin-right: 0.5rem;
306
262
  }
307
263
 
308
- .c31 {
264
+ .c27 {
309
265
  position: relative;
310
266
  -webkit-flex-basis: 50%;
311
267
  -ms-flex-preferred-size: 50%;
@@ -321,7 +277,7 @@ exports[`Monthly donation renders correctly 1`] = `
321
277
  display: block;
322
278
  }
323
279
 
324
- .c31 span {
280
+ .c27 span {
325
281
  position: absolute;
326
282
  font-size: 20px;
327
283
  top: 50%;
@@ -334,7 +290,7 @@ exports[`Monthly donation renders correctly 1`] = `
334
290
  z-index: 3;
335
291
  }
336
292
 
337
- .c31 input {
293
+ .c27 input {
338
294
  height: 48px;
339
295
  border: 2px solid #969598;
340
296
  background: #F4F3F5;
@@ -342,12 +298,12 @@ exports[`Monthly donation renders correctly 1`] = `
342
298
  padding: 0.5rem 1rem 0.5rem 2rem;
343
299
  }
344
300
 
345
- .c31 input:focus {
301
+ .c27 input:focus {
346
302
  outline: none;
347
303
  border: 2px solid #969598;
348
304
  }
349
305
 
350
- .c32 {
306
+ .c28 {
351
307
  width: 100%;
352
308
  margin: 2rem 0 2rem;
353
309
  color: #FFFFFF;
@@ -366,9 +322,9 @@ exports[`Monthly donation renders correctly 1`] = `
366
322
  appearance: none;
367
323
  }
368
324
 
369
- .c32:active,
370
- .c32:focus,
371
- .c32:hover {
325
+ .c28:active,
326
+ .c28:focus,
327
+ .c28:hover {
372
328
  outline: none;
373
329
  background-color: #961D35;
374
330
  }
@@ -535,21 +491,13 @@ exports[`Monthly donation renders correctly 1`] = `
535
491
  }
536
492
 
537
493
  @media (min-width:740px) {
538
- .c27 {
494
+ .c23 {
539
495
  max-width: 290px;
540
496
  }
541
497
  }
542
498
 
543
499
  @media (min-width:740px) {
544
- .c13 {
545
- width: 450px;
546
- margin-right: auto;
547
- margin-left: auto;
548
- }
549
- }
550
-
551
- @media (min-width:740px) {
552
- .c23 input {
500
+ .c19 input {
553
501
  font-size: 2rem;
554
502
  padding: 1.5rem;
555
503
  }
@@ -606,7 +554,7 @@ exports[`Monthly donation renders correctly 1`] = `
606
554
  }
607
555
 
608
556
  @media (min-width:740px) {
609
- .c17 {
557
+ .c13 {
610
558
  width: 450px;
611
559
  margin-right: auto;
612
560
  margin-left: auto;
@@ -614,13 +562,13 @@ exports[`Monthly donation renders correctly 1`] = `
614
562
  }
615
563
 
616
564
  @media (min-width:740px) {
617
- .c18 {
565
+ .c14 {
618
566
  padding: 0 2rem 2rem;
619
567
  }
620
568
  }
621
569
 
622
570
  @media (min-width:740px) {
623
- .c21 {
571
+ .c17 {
624
572
  -webkit-flex-direction: row;
625
573
  -ms-flex-direction: row;
626
574
  flex-direction: row;
@@ -628,13 +576,13 @@ exports[`Monthly donation renders correctly 1`] = `
628
576
  }
629
577
 
630
578
  @media (min-width:740px) {
631
- .c21 label {
579
+ .c17 label {
632
580
  margin-bottom: 0;
633
581
  }
634
582
  }
635
583
 
636
584
  @media (min-width:740px) {
637
- .c31 {
585
+ .c27 {
638
586
  -webkit-flex-basis: 60%;
639
587
  -ms-flex-preferred-size: 60%;
640
588
  flex-basis: 60%;
@@ -642,7 +590,7 @@ exports[`Monthly donation renders correctly 1`] = `
642
590
  }
643
591
 
644
592
  @media (min-width:740px) {
645
- .c32 {
593
+ .c28 {
646
594
  padding: 1rem 2rem;
647
595
  }
648
596
  }
@@ -659,6 +607,7 @@ exports[`Monthly donation renders correctly 1`] = `
659
607
  id="mship-1"
660
608
  >
661
609
  <div
610
+ aria-live="polite"
662
611
  className="c1"
663
612
  >
664
613
  <div
@@ -729,43 +678,18 @@ exports[`Monthly donation renders correctly 1`] = `
729
678
  />
730
679
  </div>
731
680
  </div>
732
- <div
733
- className="c13"
734
- >
735
- <button
736
- aria-label="Close"
737
- className="c14"
738
- onClick={[Function]}
739
- >
740
- <img
741
- alt="Close cross icon"
742
- src="mock.asset"
743
- />
744
- </button>
745
- <div
746
- className="c15"
747
- >
748
- <span
749
- className="c16"
750
- color="inherit"
751
- size="s"
752
- >
753
- Help us deliver long-term impact by converting your single donation into a monthly gift.
754
- </span>
755
- </div>
756
- </div>
757
681
  <form
758
- className="c17"
682
+ className="c13"
759
683
  onSubmit={[Function]}
760
684
  >
761
685
  <fieldset
762
- className="c18"
686
+ className="c14"
763
687
  >
764
688
  <legend
765
- className="c19"
689
+ className="c15"
766
690
  >
767
691
  <span
768
- className="c20"
692
+ className="c16"
769
693
  color="inherit"
770
694
  size="l"
771
695
  >
@@ -773,14 +697,14 @@ exports[`Monthly donation renders correctly 1`] = `
773
697
  </span>
774
698
  </legend>
775
699
  <div
776
- className="c21"
700
+ className="c17"
777
701
  >
778
702
  <label
779
- className="c22 c23"
703
+ className="c18 c19"
780
704
  htmlFor="mship-1--moneyBuy-box1"
781
705
  >
782
706
  <span
783
- className="c24 c25"
707
+ className="c20 c21"
784
708
  color="inherit"
785
709
  dangerouslySetInnerHTML={
786
710
  Object {
@@ -790,13 +714,13 @@ exports[`Monthly donation renders correctly 1`] = `
790
714
  size="s"
791
715
  />
792
716
  <div
793
- className="c26"
717
+ className="c22"
794
718
  >
795
719
 
796
720
  <input
797
721
  aria-describedby="mship-1--moneyBuy-box1"
798
722
  aria-label="£10"
799
- className="c27"
723
+ className="c23"
800
724
  id="mship-1--moneyBuy-box1"
801
725
  name="mship-1--moneyBuy1"
802
726
  onClick={[Function]}
@@ -809,11 +733,11 @@ exports[`Monthly donation renders correctly 1`] = `
809
733
 
810
734
  </label>
811
735
  <label
812
- className="c22 c23"
736
+ className="c18 c19"
813
737
  htmlFor="mship-1--moneyBuy-box2"
814
738
  >
815
739
  <span
816
- className="c24 c25"
740
+ className="c20 c21"
817
741
  color="inherit"
818
742
  dangerouslySetInnerHTML={
819
743
  Object {
@@ -823,13 +747,13 @@ exports[`Monthly donation renders correctly 1`] = `
823
747
  size="s"
824
748
  />
825
749
  <div
826
- className="c26"
750
+ className="c22"
827
751
  >
828
752
 
829
753
  <input
830
754
  aria-describedby="mship-1--moneyBuy-box2"
831
755
  aria-label="£20"
832
- className="c27"
756
+ className="c23"
833
757
  id="mship-1--moneyBuy-box2"
834
758
  name="mship-1--moneyBuy2"
835
759
  onClick={[Function]}
@@ -842,11 +766,11 @@ exports[`Monthly donation renders correctly 1`] = `
842
766
 
843
767
  </label>
844
768
  <label
845
- className="c22 c23"
769
+ className="c18 c19"
846
770
  htmlFor="mship-1--moneyBuy-box3"
847
771
  >
848
772
  <span
849
- className="c24 c25"
773
+ className="c20 c21"
850
774
  color="inherit"
851
775
  dangerouslySetInnerHTML={
852
776
  Object {
@@ -856,13 +780,13 @@ exports[`Monthly donation renders correctly 1`] = `
856
780
  size="s"
857
781
  />
858
782
  <div
859
- className="c26"
783
+ className="c22"
860
784
  >
861
785
 
862
786
  <input
863
787
  aria-describedby="mship-1--moneyBuy-box3"
864
788
  aria-label="£30"
865
- className="c27"
789
+ className="c23"
866
790
  id="mship-1--moneyBuy-box3"
867
791
  name="mship-1--moneyBuy3"
868
792
  onClick={[Function]}
@@ -876,21 +800,21 @@ exports[`Monthly donation renders correctly 1`] = `
876
800
  </label>
877
801
  </div>
878
802
  <div
879
- className="c28"
803
+ className="c24"
880
804
  >
881
805
  <span
882
- className="c29 c30"
806
+ className="c25 c26"
883
807
  color="inherit"
884
808
  size="s"
885
809
  >
886
810
  Other amount
887
811
  </span>
888
812
  <label
889
- className="c22 c31"
813
+ className="c18 c27"
890
814
  htmlFor="mship-1--MoneyBuy-userInput"
891
815
  >
892
816
  <span
893
- className="c24 c25"
817
+ className="c20 c21"
894
818
  color="inherit"
895
819
  dangerouslySetInnerHTML={
896
820
  Object {
@@ -900,13 +824,13 @@ exports[`Monthly donation renders correctly 1`] = `
900
824
  size="s"
901
825
  />
902
826
  <div
903
- className="c26"
827
+ className="c22"
904
828
  >
905
829
 
906
830
  <input
907
831
  aria-describedby="mship-1--MoneyBuy-userInput"
908
832
  aria-label="Input a different amount"
909
- className="c27"
833
+ className="c23"
910
834
  id="mship-1--MoneyBuy-userInput"
911
835
  max="20000"
912
836
  min="1"
@@ -924,7 +848,7 @@ exports[`Monthly donation renders correctly 1`] = `
924
848
  </label>
925
849
  </div>
926
850
  <input
927
- className="c32"
851
+ className="c28"
928
852
  type="submit"
929
853
  value="Donate now"
930
854
  />
@@ -1314,10 +1238,6 @@ exports[`Single donation renders correctly 1`] = `
1314
1238
  }
1315
1239
  }
1316
1240
 
1317
- @media (min-width:740px) {
1318
-
1319
- }
1320
-
1321
1241
  @media (min-width:740px) {
1322
1242
  .c13 input {
1323
1243
  font-size: 2rem;
@@ -1433,6 +1353,7 @@ exports[`Single donation renders correctly 1`] = `
1433
1353
  id="mship-1"
1434
1354
  >
1435
1355
  <div
1356
+ aria-live="polite"
1436
1357
  className="c1"
1437
1358
  >
1438
1359
  <div
@@ -2008,6 +1929,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2008
1929
  id="mship-1"
2009
1930
  >
2010
1931
  <div
1932
+ aria-live="polite"
2011
1933
  className="c1"
2012
1934
  >
2013
1935
  <div
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": "6.4.1",
4
+ "version": "6.5.0",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {