@comicrelief/component-library 8.89.1 → 8.90.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.
Files changed (56) hide show
  1. package/dist/index.cjs.js +879 -829
  2. package/dist/index.es.js +4924 -4862
  3. package/package.json +1 -1
  4. package/src/components/Atoms/Icons/ArrowExample.jsx +8 -5
  5. package/src/components/Atoms/Icons/AtSign.js +4 -4
  6. package/src/components/Atoms/Icons/GiftAidLogo.js +13 -7
  7. package/src/components/Atoms/Icons/IconsExample.jsx +3 -1
  8. package/src/components/Atoms/Icons/Internal.js +4 -4
  9. package/src/components/Atoms/Icons/Post.js +4 -4
  10. package/src/components/Atoms/Link/Link.test.js +0 -2
  11. package/src/components/Molecules/Accordion/AccordionExample.jsx +11 -9
  12. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.js +1 -1
  13. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -2
  14. package/src/components/Molecules/Banner/Banner.js +2 -2
  15. package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +0 -1
  16. package/src/components/Molecules/Box/Box.js +1 -1
  17. package/src/components/Molecules/Box/__snapshots__/Box.test.js.snap +0 -1
  18. package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +0 -4
  19. package/src/components/Molecules/LogoLinked/LogoLinked.js +4 -4
  20. package/src/components/Molecules/LogoLinked/LogoLinked.style.js +2 -2
  21. package/src/components/Molecules/Lookup/Lookup.js +0 -2
  22. package/src/components/Molecules/PopUp/PopUpGiftAid/PopUpGiftAid.js +36 -7
  23. package/src/components/Molecules/PopUp/PopUpGiftAid/PopUpGiftAidExample.jsx +34 -33
  24. package/src/components/Molecules/PopUp/PopUpGiftAid/__snapshots__/PopUpGiftAid.test.js.snap +48 -36
  25. package/src/components/Molecules/PopUp/PopUpSecurePayment/PopUpSecurePayment.js +19 -3
  26. package/src/components/Molecules/PopUp/PopUpSecurePayment/PopUpSecurePaymentExample.jsx +23 -37
  27. package/src/components/Molecules/PopUp/PopUpShared.style.js +47 -1
  28. package/src/components/Molecules/SearchResult/SearchResult.js +4 -4
  29. package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -8
  30. package/src/components/Organisms/Donate/Donate.js +1 -1
  31. package/src/components/Organisms/Donate/Form/Form.js +2 -2
  32. package/src/components/Organisms/Donate/MoneyBuy/MoneyBuy.js +1 -1
  33. package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +0 -7
  34. package/src/components/Organisms/DonateBanner/Form/Form.js +2 -2
  35. package/src/components/Organisms/DonateBanner/MoneyBuy/MoneyBuy.js +1 -1
  36. package/src/components/Organisms/DonateBanner/__snapshots__/DonateBanner.test.js.snap +0 -7
  37. package/src/components/Organisms/DynamicGallery/_DynamicGalleryColumn.js +1 -1
  38. package/src/components/Organisms/DynamicGallery/__snapshots__/DynamicGallery.test.js.snap +0 -3
  39. package/src/components/Organisms/Footer/Footer.js +2 -2
  40. package/src/components/Organisms/Footer/FooterExample.jsx +3 -3
  41. package/src/components/Organisms/Footer/Nav/Nav.js +3 -3
  42. package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +0 -49
  43. package/src/components/Organisms/Header/Burger/BurgerMenu.js +1 -1
  44. package/src/components/Organisms/Header/Header.js +1 -1
  45. package/src/components/Organisms/Header/HeaderNav/HeaderNav.js +3 -3
  46. package/src/components/Organisms/Header/Nav/Nav.js +2 -2
  47. package/src/components/Organisms/Header2025/Burger/BurgerMenu.js +1 -1
  48. package/src/components/Organisms/Header2025/Header2025.js +2 -2
  49. package/src/components/Organisms/Header2025/Header2025Example.jsx +2 -2
  50. package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +2 -2
  51. package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +4 -4
  52. package/src/components/Organisms/Header2025/HeaderNav2025/MoreNav.js +2 -2
  53. package/src/components/Organisms/MarketingPreferencesDS/_OptInCheckbox.js +1 -1
  54. package/src/components/Organisms/Membership/Form/Form.js +3 -3
  55. package/src/components/Organisms/Membership/Membership.test.js +0 -9
  56. package/src/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
@@ -1,9 +1,9 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`renders coral_light variant 1`] = `
4
- .c2 {
4
+ .c3 {
5
5
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
6
- background-color: #FFFFFF;
6
+ background-color: transparent;
7
7
  color: #000000;
8
8
  display: flex;
9
9
  flex-direction: column;
@@ -12,7 +12,7 @@ exports[`renders coral_light variant 1`] = `
12
12
  border-radius: 1rem;
13
13
  }
14
14
 
15
- .c2 h3 {
15
+ .c3 h3 {
16
16
  margin-right: 16px;
17
17
  }
18
18
 
@@ -21,57 +21,63 @@ exports[`renders coral_light variant 1`] = `
21
21
  width: 100%;
22
22
  }
23
23
 
24
- .c1 {
24
+ .c2 {
25
25
  visibility: visible;
26
26
  }
27
27
 
28
- .c4 {
29
- fill: #000000;
28
+ .c5 {
29
+ display: block;
30
+ width: 100%;
31
+ height: auto;
32
+ fill: inherit;
30
33
  }
31
34
 
32
- .c3 {
35
+ .c1 {
36
+ position: static;
37
+ }
38
+
39
+ .c4 {
40
+ display: block;
41
+ width: 100%;
42
+ padding: 0;
33
43
  border: none;
34
44
  background: none;
35
45
  cursor: pointer;
36
46
  }
37
47
 
38
- .c3:hover svg {
48
+ .c4:hover svg {
39
49
  fill: #E52630;
40
50
  }
41
51
 
42
52
  @media (min-width: 1024px) {
43
- .c4 {
53
+ .c5 {
44
54
  fill: #000000;
45
55
  }
46
56
  }
47
57
 
48
58
  <div
49
59
  backgroundColor="coral_light"
50
- className="c0"
60
+ className="c0 c1"
51
61
  data-open="false"
52
62
  data-testid="pop-up-gift-aid"
53
63
  >
54
64
  <div
55
- className="c1"
65
+ className="c2"
56
66
  >
57
67
  <div
58
- className="c2"
68
+ className="c3"
59
69
  >
60
70
  <button
61
71
  aria-expanded="false"
62
72
  aria-label="What is Gift Aid?"
63
- className="c3"
73
+ className="c4"
64
74
  onClick={[Function]}
65
75
  type="button"
66
76
  >
67
77
  <svg
68
- className="c4"
69
- colour="black"
78
+ className="c5"
70
79
  fill="#000000"
71
- height={49.6}
72
- mobileColour={null}
73
80
  viewBox="0 0 350 124"
74
- width={140}
75
81
  xmlns="http://www.w3.org/2000/svg"
76
82
  >
77
83
  <path
@@ -85,9 +91,9 @@ exports[`renders coral_light variant 1`] = `
85
91
  `;
86
92
 
87
93
  exports[`renders default blue_light variant 1`] = `
88
- .c2 {
94
+ .c3 {
89
95
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
90
- background-color: #FFFFFF;
96
+ background-color: transparent;
91
97
  color: #000000;
92
98
  display: flex;
93
99
  flex-direction: column;
@@ -96,7 +102,7 @@ exports[`renders default blue_light variant 1`] = `
96
102
  border-radius: 1rem;
97
103
  }
98
104
 
99
- .c2 h3 {
105
+ .c3 h3 {
100
106
  margin-right: 16px;
101
107
  }
102
108
 
@@ -105,56 +111,62 @@ exports[`renders default blue_light variant 1`] = `
105
111
  width: 100%;
106
112
  }
107
113
 
108
- .c1 {
114
+ .c2 {
109
115
  visibility: visible;
110
116
  }
111
117
 
112
- .c4 {
113
- fill: #000000;
118
+ .c5 {
119
+ display: block;
120
+ width: 100%;
121
+ height: auto;
122
+ fill: inherit;
114
123
  }
115
124
 
116
- .c3 {
125
+ .c1 {
126
+ position: static;
127
+ }
128
+
129
+ .c4 {
130
+ display: block;
131
+ width: 100%;
132
+ padding: 0;
117
133
  border: none;
118
134
  background: none;
119
135
  cursor: pointer;
120
136
  }
121
137
 
122
- .c3:hover svg {
138
+ .c4:hover svg {
123
139
  fill: #E52630;
124
140
  }
125
141
 
126
142
  @media (min-width: 1024px) {
127
- .c4 {
143
+ .c5 {
128
144
  fill: #000000;
129
145
  }
130
146
  }
131
147
 
132
148
  <div
133
- className="c0"
149
+ className="c0 c1"
134
150
  data-open="false"
135
151
  data-testid="pop-up-gift-aid"
136
152
  >
137
153
  <div
138
- className="c1"
154
+ className="c2"
139
155
  >
140
156
  <div
141
- className="c2"
157
+ className="c3"
142
158
  >
143
159
  <button
144
160
  aria-expanded="false"
145
161
  aria-label="What is Gift Aid?"
146
- className="c3"
162
+ className="c4"
147
163
  onClick={[Function]}
148
164
  type="button"
149
165
  >
150
166
  <svg
151
- className="c4"
152
- colour="black"
167
+ className="c5"
153
168
  fill="#000000"
154
- height={49.6}
155
- mobileColour={null}
156
169
  viewBox="0 0 350 124"
157
- width={140}
158
170
  xmlns="http://www.w3.org/2000/svg"
159
171
  >
160
172
  <path
@@ -6,10 +6,21 @@ import Text from '../../../Atoms/Text/Text';
6
6
  import Cross from '../../../Atoms/Icons/CrossRoundedCorners';
7
7
  import Padlock from '../../../Atoms/Icons/Padlock';
8
8
  import {
9
- Container, Trigger, CloseButton, PopUpWindow, PopUpHeading, PopUpBodyText
9
+ Container, Trigger, CloseButton, PopUpWindow, PopUpHeading, PopUpBodyText, PageOverlay
10
10
  } from '../PopUpShared.style';
11
11
  import { usePopUpOpen } from '../PopUpShared.utils';
12
12
 
13
+ /**
14
+ * The open popup is positioned over the trigger, so its width is set
15
+ * independently of the trigger's width (via openWindowWidth) and centred on it
16
+ */
17
+ const OpenPopUpWindow = styled(PopUpWindow)`
18
+ width: ${({ $openWindowWidth }) => $openWindowWidth};
19
+ left: 50%;
20
+ right: auto;
21
+ margin-left: ${({ $openWindowWidth }) => `calc(${$openWindowWidth} / -2)`};
22
+ `;
23
+
13
24
  const DEFAULT_TRIGGER_TEXT = 'Your donation is secure and encrypted';
14
25
 
15
26
  const DEFAULT_HEADING = 'How we keep your donations secure and encrypted';
@@ -41,6 +52,7 @@ const PopUpSecurePayment = ({
41
52
  triggerText = DEFAULT_TRIGGER_TEXT,
42
53
  heading = DEFAULT_HEADING,
43
54
  paragraphs = DEFAULT_PARAGRAPHS,
55
+ openWindowWidth = '100%',
44
56
  onOpenChange,
45
57
  ...rest
46
58
  }) => {
@@ -55,6 +67,8 @@ const PopUpSecurePayment = ({
55
67
  data-open={isOpen ? 'true' : 'false'}
56
68
  {...rest}
57
69
  >
70
+ {isRendered && <PageOverlay aria-hidden="true" />}
71
+
58
72
  <Trigger $hidden={isRendered}>
59
73
  <SecureButton
60
74
  type="button"
@@ -67,10 +81,11 @@ const PopUpSecurePayment = ({
67
81
  </Trigger>
68
82
 
69
83
  {isRendered && (
70
- <PopUpWindow
84
+ <OpenPopUpWindow
71
85
  $backgroundColour="white"
72
86
  $isOpen={isRendered}
73
87
  $isClosing={isClosing}
88
+ $openWindowWidth={openWindowWidth}
74
89
  >
75
90
  <CloseButton
76
91
  type="button"
@@ -86,7 +101,7 @@ const PopUpSecurePayment = ({
86
101
  // eslint-disable-next-line react/no-array-index-key
87
102
  <PopUpBodyText key={index}>{paragraph}</PopUpBodyText>
88
103
  ))}
89
- </PopUpWindow>
104
+ </OpenPopUpWindow>
90
105
  )}
91
106
  </Container>
92
107
  );
@@ -96,6 +111,7 @@ PopUpSecurePayment.propTypes = {
96
111
  triggerText: PropTypes.string,
97
112
  heading: PropTypes.string,
98
113
  paragraphs: PropTypes.arrayOf(PropTypes.string),
114
+ openWindowWidth: PropTypes.string,
99
115
  onOpenChange: PropTypes.func
100
116
  };
101
117
 
@@ -1,46 +1,32 @@
1
1
  import React, { useState } from 'react';
2
2
  import PopUpSecurePayment from './PopUpSecurePayment';
3
- import styled from 'styled-components';
4
-
5
- /**
6
- * Parent styling from the JS state (onOpenChange) uses data-open attribute
7
- * on the popup's container to fire CSS styles via :has()
8
- */
9
- const Wrapper = styled.div`
10
- position: relative;
11
- padding: 1rem;
12
- background: ${({ $isOpen }) => ($isOpen ? 'orange' : 'green')};
13
-
14
- &:has([data-open="true"]) {
15
- outline: 2px solid black;
16
- }
17
-
18
- /* Shade over the wrapper's content while the popup is open */
19
- &:before {
20
- content: '';
21
- position: absolute;
22
- top: 0;
23
- right: 0;
24
- bottom: 0;
25
- left: 0;
26
- background-color: rgba(0, 0, 0, 0.4);
27
- pointer-events: none;
28
- display: ${({ $isOpen }) => ($isOpen ? 'block' : 'none')};
29
- }
30
- `;
31
-
32
- const Status = styled.p`
33
- margin: 0 0 0.5rem;
34
- color: white;
35
- `;
3
+ import { ExampleContainer } from '../PopUpShared.style';
36
4
 
37
5
  export default function PopUpSecurePaymentExample() {
38
6
  const [isOpen, setIsOpen] = useState(false);
39
7
 
40
8
  return (
41
- <Wrapper $isOpen={isOpen}>
42
- <Status>{isOpen ? 'Popup is open' : 'popup is closed'}</Status>
43
- <PopUpSecurePayment onOpenChange={setIsOpen} />
44
- </Wrapper>
9
+ <>
10
+ <ExampleContainer $isOpen={isOpen}>
11
+ <h3>Default / no props, isOpen trigger</h3>
12
+ <PopUpSecurePayment onOpenChange={setIsOpen} />
13
+ </ExampleContainer>
14
+
15
+ <ExampleContainer>
16
+ <h3>Props: triggerText, openWindowWidth</h3>
17
+ <PopUpSecurePayment triggerText="Your payment is protected by 256-bit encryption" openWindowWidth="280px" />
18
+ </ExampleContainer>
19
+
20
+ <ExampleContainer>
21
+ <h3>Custom heading and paragraphs.</h3>
22
+ <PopUpSecurePayment
23
+ heading="Your details are safe with us"
24
+ paragraphs={[
25
+ 'We only use your payment details to process your donation.',
26
+ 'Card details are encrypted and never stored on our servers.'
27
+ ]}
28
+ />
29
+ </ExampleContainer>
30
+ </>
45
31
  );
46
32
  }
@@ -32,6 +32,28 @@ const closeOverlay = keyframes`
32
32
  }
33
33
  `;
34
34
 
35
+ const ExampleContainer = styled.div`
36
+ position: relative;
37
+ padding: 1rem;
38
+ min-height: 100px;
39
+ margin: 0 0 1rem auto;
40
+ border-radius: 6px;
41
+ background: light_grey;
42
+ min-height: 100px;
43
+
44
+ /* Shade over the wrapper's content while the popup is open */
45
+ &:before {
46
+ content: '';
47
+ position: absolute;
48
+ top: 0;
49
+ right: 0;
50
+ bottom: 0;
51
+ left: 0;
52
+ background-color: rgba(0, 0, 0, 0.4);
53
+ pointer-events: none;
54
+ }
55
+ `;
56
+
35
57
  const PopUpWindow = styled.div`
36
58
  font-family: ${({ theme }) => theme.fontFamilies('Montserrat')};
37
59
  background-color: ${({ theme, $backgroundColour }) => theme.color($backgroundColour)};
@@ -68,6 +90,7 @@ const PopUpWindow = styled.div`
68
90
  @media (prefers-reduced-motion: reduce) {
69
91
  animation: none;
70
92
  }
93
+ margin-top: 1rem;
71
94
  `}
72
95
 
73
96
  ${({ $isClosing }) => $isClosing && css`
@@ -79,6 +102,22 @@ const PopUpWindow = styled.div`
79
102
  `}
80
103
  `;
81
104
 
105
+ /**
106
+ * Covers the whole visible window while a popup is open. Fixed positioning
107
+ * is relative to the viewport, so it is not limited to the parent container
108
+ * (it only is if an ancestor uses transform, filter or similar)
109
+ */
110
+ const PageOverlay = styled.div`
111
+ position: fixed;
112
+ top: 0;
113
+ right: 0;
114
+ bottom: 0;
115
+ left: 0;
116
+ background-color: rgba(0, 0, 0, 0.4);
117
+ pointer-events: none;
118
+ ${zIndex('medium')}
119
+ `;
120
+
82
121
  const Container = styled.div`
83
122
  position: relative;
84
123
  width: 100%;
@@ -140,5 +179,12 @@ const PopUpBodyText = styled.p`
140
179
  `;
141
180
 
142
181
  export {
143
- Container, Trigger, CloseButton, PopUpWindow, PopUpHeading, PopUpBodyText
182
+ Container,
183
+ Trigger,
184
+ CloseButton,
185
+ PopUpWindow,
186
+ PopUpHeading,
187
+ PopUpBodyText,
188
+ PageOverlay,
189
+ ExampleContainer
144
190
  };
@@ -36,10 +36,10 @@ const Item = styled(Link)`
36
36
  const ImageWrapper = styled.div`
37
37
  height: auto;
38
38
  @media ${({ theme }) => theme.allBreakpoints('M')} {
39
- width: ${({ smallImageWidth }) => smallImageWidth};
39
+ width: ${({ $smallImageWidth }) => $smallImageWidth};
40
40
  }
41
41
  @media ${({ theme }) => theme.allBreakpoints('XL')} {
42
- width: ${({ largeImageWidth }) => largeImageWidth};
42
+ width: ${({ $largeImageWidth }) => $largeImageWidth};
43
43
  }
44
44
  `;
45
45
 
@@ -73,8 +73,8 @@ const SearchResult = ({
73
73
  <Wrapper>
74
74
  <Item href={href} type="standard">
75
75
  <ImageWrapper
76
- smallImageWidth={smallImageWidth}
77
- largeImageWidth={largeImageWidth}
76
+ $smallImageWidth={smallImageWidth}
77
+ $largeImageWidth={largeImageWidth}
78
78
  >
79
79
  <Picture
80
80
  imageLow={imageLow}
@@ -160,8 +160,6 @@ exports[`renders correctly in minimalist form 1`] = `
160
160
  >
161
161
  <div
162
162
  className="c3"
163
- largeImageWidth="100%"
164
- smallImageWidth="45%"
165
163
  >
166
164
  <div
167
165
  className="c4"
@@ -386,8 +384,6 @@ exports[`renders correctly with copy 1`] = `
386
384
  >
387
385
  <div
388
386
  className="c3"
389
- largeImageWidth="100%"
390
- smallImageWidth="45%"
391
387
  >
392
388
  <div
393
389
  className="c4"
@@ -584,8 +580,6 @@ exports[`renders correctly with date 1`] = `
584
580
  >
585
581
  <div
586
582
  className="c3"
587
- largeImageWidth="100%"
588
- smallImageWidth="45%"
589
583
  >
590
584
  <div
591
585
  className="c4"
@@ -777,8 +771,6 @@ exports[`renders correctly with date and type 1`] = `
777
771
  >
778
772
  <div
779
773
  className="c3"
780
- largeImageWidth="100%"
781
- smallImageWidth="45%"
782
774
  >
783
775
  <div
784
776
  className="c4"
@@ -94,7 +94,7 @@ const Donate = ({
94
94
  >
95
95
  {!isDesktop && mobileImages ? (
96
96
  <Picture
97
- backgroundColor={mobileBackgroundColor}
97
+ $backgroundColor={mobileBackgroundColor}
98
98
  image={mobileImage}
99
99
  images={mobileImages}
100
100
  imageLow={mobileImageLow}
@@ -254,7 +254,7 @@ const Signup = ({
254
254
  <MoneyBuys>
255
255
  {givingData.moneybuys.map(({ value }, index) => (
256
256
  <MoneyBuy
257
- isSelected={amountDonate === value}
257
+ $isSelected={amountDonate === value}
258
258
  amount={value.toString()}
259
259
  description={`£${amountFormatter(value)}`}
260
260
  setOtherAmount={() => setAmountDonate(value)}
@@ -275,7 +275,7 @@ const Signup = ({
275
275
  step="0.01"
276
276
  name="membership_amount"
277
277
  type="string"
278
- inputBorderColor={isAmountValid(amountDonate) === false}
278
+ $inputBorderColor={isAmountValid(amountDonate) === false}
279
279
  label="£"
280
280
  errorMsg=""
281
281
  id={`${mbshipID}--MoneyBuy-userInput`}
@@ -32,7 +32,7 @@ const MoneyBuyButton = styled(Input)`
32
32
  ${defaultBoxShadow(true)}
33
33
  }
34
34
 
35
- ${({ isSelected }) => isSelected
35
+ ${({ $isSelected }) => $isSelected
36
36
  && css`
37
37
  background-color: ${({ theme }) => theme.color('blue_donate')};
38
38
  ${defaultBoxShadow(true)}
@@ -648,7 +648,6 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
648
648
  aria-required={false}
649
649
  className="c24"
650
650
  id="mship-4--MoneyBuy-userInput"
651
- inputBorderColor={false}
652
651
  max="25000"
653
652
  min="1"
654
653
  name="membership_amount"
@@ -1349,7 +1348,6 @@ exports[`Monthly donation renders correctly 1`] = `
1349
1348
  aria-required={false}
1350
1349
  className="c25"
1351
1350
  id="mship-1--MoneyBuy-userInput"
1352
- inputBorderColor={false}
1353
1351
  max="25000"
1354
1352
  min="1"
1355
1353
  name="membership_amount"
@@ -2019,7 +2017,6 @@ exports[`Single donation renders correctly 1`] = `
2019
2017
  aria-required={false}
2020
2018
  className="c18"
2021
2019
  id="mship-1--moneyBuy-box1"
2022
- isSelected={false}
2023
2020
  name="mship-1--moneyBuy1"
2024
2021
  onClick={[Function]}
2025
2022
  placeholder=""
@@ -2053,7 +2050,6 @@ exports[`Single donation renders correctly 1`] = `
2053
2050
  aria-required={false}
2054
2051
  className="c18"
2055
2052
  id="mship-1--moneyBuy-box2"
2056
- isSelected={true}
2057
2053
  name="mship-1--moneyBuy2"
2058
2054
  onClick={[Function]}
2059
2055
  placeholder=""
@@ -2087,7 +2083,6 @@ exports[`Single donation renders correctly 1`] = `
2087
2083
  aria-required={false}
2088
2084
  className="c18"
2089
2085
  id="mship-1--moneyBuy-box3"
2090
- isSelected={false}
2091
2086
  name="mship-1--moneyBuy3"
2092
2087
  onClick={[Function]}
2093
2088
  placeholder=""
@@ -2130,7 +2125,6 @@ exports[`Single donation renders correctly 1`] = `
2130
2125
  aria-required={false}
2131
2126
  className="c18"
2132
2127
  id="mship-1--MoneyBuy-userInput"
2133
- inputBorderColor={false}
2134
2128
  max="25000"
2135
2129
  min="1"
2136
2130
  name="membership_amount"
@@ -2661,7 +2655,6 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2661
2655
  aria-required={false}
2662
2656
  className="c18"
2663
2657
  id="mship-1--MoneyBuy-userInput"
2664
- inputBorderColor={false}
2665
2658
  max="25000"
2666
2659
  min="1"
2667
2660
  name="membership_amount"
@@ -242,7 +242,7 @@ const Signup = ({
242
242
  <MoneyBuys>
243
243
  {givingData.moneybuys.map(({ value }, index) => (
244
244
  <MoneyBuy
245
- isSelected={amountDonate === value}
245
+ $isSelected={amountDonate === value}
246
246
  amount={value.toString()}
247
247
  description={`£${amountFormatter(value)}`}
248
248
  setOtherAmount={() => setAmountDonate(value)}
@@ -262,7 +262,7 @@ const Signup = ({
262
262
  step="0.01"
263
263
  name="membership_amount"
264
264
  type="string"
265
- inputBorderColor={isAmountValid(amountDonate) === false}
265
+ $inputBorderColor={isAmountValid(amountDonate) === false}
266
266
  prefix="£"
267
267
  label={hideMoneyBuys ? 'Donation amount' : 'Other donation amount'}
268
268
  errorMsg=""
@@ -28,7 +28,7 @@ const MoneyBuyButton = styled(Input)`
28
28
  height: 3.4375rem;
29
29
  }
30
30
 
31
- ${({ isSelected }) => (isSelected
31
+ ${({ $isSelected }) => ($isSelected
32
32
  ? css`
33
33
  background-color: ${({ theme }) => theme.color('red')};
34
34
  border: 1px solid ${({ theme }) => theme.color('red')};
@@ -658,7 +658,6 @@ exports[`Monthly donation renders correctly 1`] = `
658
658
  aria-required={false}
659
659
  className="c24"
660
660
  id="mbship-1--MoneyBuy-userInput"
661
- inputBorderColor={false}
662
661
  max="25000"
663
662
  min="1"
664
663
  name="membership_amount"
@@ -1294,7 +1293,6 @@ exports[`Single donation renders correctly 1`] = `
1294
1293
  aria-required={false}
1295
1294
  className="c16"
1296
1295
  id="mbship-1--moneyBuy-box1"
1297
- isSelected={false}
1298
1296
  name="mbship-1--moneyBuy1"
1299
1297
  onClick={[Function]}
1300
1298
  placeholder=""
@@ -1327,7 +1325,6 @@ exports[`Single donation renders correctly 1`] = `
1327
1325
  aria-required={false}
1328
1326
  className="c16"
1329
1327
  id="mbship-1--moneyBuy-box2"
1330
- isSelected={true}
1331
1328
  name="mbship-1--moneyBuy2"
1332
1329
  onClick={[Function]}
1333
1330
  placeholder=""
@@ -1360,7 +1357,6 @@ exports[`Single donation renders correctly 1`] = `
1360
1357
  aria-required={false}
1361
1358
  className="c16"
1362
1359
  id="mbship-1--moneyBuy-box3"
1363
- isSelected={false}
1364
1360
  name="mbship-1--moneyBuy3"
1365
1361
  onClick={[Function]}
1366
1362
  placeholder=""
@@ -1407,7 +1403,6 @@ exports[`Single donation renders correctly 1`] = `
1407
1403
  aria-required={false}
1408
1404
  className="c23"
1409
1405
  id="mbship-1--MoneyBuy-userInput"
1410
- inputBorderColor={false}
1411
1406
  max="25000"
1412
1407
  min="1"
1413
1408
  name="membership_amount"
@@ -1915,7 +1910,6 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
1915
1910
  aria-required={false}
1916
1911
  className="c19"
1917
1912
  id="mbship-1--MoneyBuy-userInput"
1918
- inputBorderColor={false}
1919
1913
  max="25000"
1920
1914
  min="1"
1921
1915
  name="membership_amount"
@@ -2687,7 +2681,6 @@ exports[`Text-only donate widget renders correctly 1`] = `
2687
2681
  aria-required={false}
2688
2682
  className="c26"
2689
2683
  id="mbship-4--MoneyBuy-userInput"
2690
- inputBorderColor={false}
2691
2684
  max="25000"
2692
2685
  min="1"
2693
2686
  name="membership_amount"
@@ -105,7 +105,7 @@ export default function DynamicGalleryColumn({
105
105
  <NodeComponent
106
106
  key={key}
107
107
  className="gallery-node"
108
- caption={bodyText}
108
+ $caption={bodyText}
109
109
  aria-label={bodyText}
110
110
  title={bodyText}
111
111
  data-node-index={nodeIndex}
@@ -329,7 +329,6 @@ exports[`handle a Dynamic Gallery with mocked gallery nodes 1`] = `
329
329
  >
330
330
  <button
331
331
  aria-label=""
332
- caption=""
333
332
  className="c3 gallery-node"
334
333
  data-node-index={0}
335
334
  data-testid="GalleryNode-0"
@@ -366,7 +365,6 @@ exports[`handle a Dynamic Gallery with mocked gallery nodes 1`] = `
366
365
  >
367
366
  <button
368
367
  aria-label=""
369
- caption=""
370
368
  className="c3 gallery-node"
371
369
  data-node-index={1}
372
370
  data-testid="GalleryNode-1"
@@ -403,7 +401,6 @@ exports[`handle a Dynamic Gallery with mocked gallery nodes 1`] = `
403
401
  >
404
402
  <button
405
403
  aria-label=""
406
- caption=""
407
404
  className="c3 gallery-node"
408
405
  data-node-index={2}
409
406
  data-testid="GalleryNode-2"