@comicrelief/component-library 8.36.0 → 8.37.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.
@@ -224,6 +224,9 @@ const Signup = _ref => {
224
224
  type: "submit",
225
225
  color: submitButtonColor,
226
226
  ref: buttonRef
227
+ // Used by analytics:
228
+ ,
229
+ className: "Button_DonateWidget"
227
230
  }, renderButtonText()))));
228
231
  };
229
232
  var _default = exports.default = Signup;
@@ -676,7 +676,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
676
676
  will help us fund amazing projects in the UK and around the world.
677
677
  </p>
678
678
  <button
679
- className="c26"
679
+ className="c26 Button_DonateWidget"
680
680
  color="red"
681
681
  type="submit"
682
682
  >
@@ -1341,7 +1341,7 @@ exports[`Monthly donation renders correctly 1`] = `
1341
1341
  </strong>
1342
1342
  </p>
1343
1343
  <button
1344
- className="c27"
1344
+ className="c27 Button_DonateWidget"
1345
1345
  color="red"
1346
1346
  type="submit"
1347
1347
  >
@@ -2098,7 +2098,7 @@ exports[`Single donation renders correctly 1`] = `
2098
2098
  a support worker to visit 10 isolated young mums with postnatal depression in the UK.
2099
2099
  </p>
2100
2100
  <button
2101
- className="c25"
2101
+ className="c25 Button_DonateWidget"
2102
2102
  color="red"
2103
2103
  type="submit"
2104
2104
  >
@@ -2593,7 +2593,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2593
2593
  </strong>
2594
2594
  </p>
2595
2595
  <button
2596
- className="c20"
2596
+ className="c20 Button_DonateWidget"
2597
2597
  color="red"
2598
2598
  type="submit"
2599
2599
  >
@@ -63,6 +63,9 @@ const ImpactSlider = _ref => {
63
63
  type: "submit",
64
64
  onClick: handleSubmit,
65
65
  disabled: currentAmount === 0
66
+ // Used by analytics:
67
+ ,
68
+ className: "Button_DonateSlider"
66
69
  }, "Donate \xA3", currentAmount, ' ', "now")));
67
70
  };
68
71
  var _default = exports.default = ImpactSlider;
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.36.0",
4
+ "version": "8.37.0",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -318,6 +318,8 @@ const Signup = ({
318
318
  type="submit"
319
319
  color={submitButtonColor}
320
320
  ref={buttonRef}
321
+ // Used by analytics:
322
+ className="Button_DonateWidget"
321
323
  >
322
324
  {renderButtonText()}
323
325
  </Button>
@@ -676,7 +676,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
676
676
  will help us fund amazing projects in the UK and around the world.
677
677
  </p>
678
678
  <button
679
- className="c26"
679
+ className="c26 Button_DonateWidget"
680
680
  color="red"
681
681
  type="submit"
682
682
  >
@@ -1341,7 +1341,7 @@ exports[`Monthly donation renders correctly 1`] = `
1341
1341
  </strong>
1342
1342
  </p>
1343
1343
  <button
1344
- className="c27"
1344
+ className="c27 Button_DonateWidget"
1345
1345
  color="red"
1346
1346
  type="submit"
1347
1347
  >
@@ -2098,7 +2098,7 @@ exports[`Single donation renders correctly 1`] = `
2098
2098
  a support worker to visit 10 isolated young mums with postnatal depression in the UK.
2099
2099
  </p>
2100
2100
  <button
2101
- className="c25"
2101
+ className="c25 Button_DonateWidget"
2102
2102
  color="red"
2103
2103
  type="submit"
2104
2104
  >
@@ -2593,7 +2593,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2593
2593
  </strong>
2594
2594
  </p>
2595
2595
  <button
2596
- className="c20"
2596
+ className="c20 Button_DonateWidget"
2597
2597
  color="red"
2598
2598
  type="submit"
2599
2599
  >
@@ -54,7 +54,13 @@ const ImpactSlider = ({
54
54
  currentAmount={currentAmount}
55
55
  opacityAnimation={opacityAnimation}
56
56
  />
57
- <SubmitButton type="submit" onClick={handleSubmit} disabled={currentAmount === 0}>
57
+ <SubmitButton
58
+ type="submit"
59
+ onClick={handleSubmit}
60
+ disabled={currentAmount === 0}
61
+ // Used by analytics:
62
+ className="Button_DonateSlider"
63
+ >
58
64
  Donate £
59
65
  {currentAmount}
60
66
  {' '}