@comicrelief/component-library 8.44.2 → 8.44.4

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 (67) hide show
  1. package/dist/components/Atoms/Checkbox/Checkbox.test.js +10 -4
  2. package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +5 -2
  3. package/dist/components/Atoms/Input/input.test.js +10 -2
  4. package/dist/components/Atoms/RadioButton/RadioButton.test.js +10 -4
  5. package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +5 -1
  6. package/dist/components/Atoms/Text/Text.js +29 -29
  7. package/dist/components/Atoms/Text/Text.md +70 -69
  8. package/dist/components/Atoms/Text/__snapshots__/Text.test.js.snap +25 -9
  9. package/dist/components/Atoms/TextArea/TextArea.test.js +5 -1
  10. package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +15 -7
  11. package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +10 -4
  12. package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +20 -10
  13. package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +5 -2
  14. package/dist/components/Molecules/Descriptor/Descriptor.test.js +15 -13
  15. package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +10 -24
  16. package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +5 -2
  17. package/dist/components/Molecules/Promo/Promo.test.js +4 -2
  18. package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +24 -6
  19. package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +5 -1
  20. package/dist/components/Molecules/SearchInput/SearchInput.test.js +5 -1
  21. package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +45 -18
  22. package/dist/components/Molecules/SingleMessage/SingleMessage.test.js +4 -2
  23. package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +39 -12
  24. package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.test.js +2 -1
  25. package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +15 -3
  26. package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +5 -1
  27. package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +5 -2
  28. package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +90 -35
  29. package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +10 -8
  30. package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +20 -58
  31. package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +3 -1
  32. package/dist/components/Organisms/Membership/Membership.test.js +25 -12
  33. package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +15 -3
  34. package/package.json +1 -1
  35. package/src/components/Atoms/Checkbox/Checkbox.test.js +10 -4
  36. package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +5 -2
  37. package/src/components/Atoms/Input/input.test.js +10 -2
  38. package/src/components/Atoms/RadioButton/RadioButton.test.js +10 -4
  39. package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +5 -1
  40. package/src/components/Atoms/Text/Text.js +25 -19
  41. package/src/components/Atoms/Text/Text.md +70 -69
  42. package/src/components/Atoms/Text/__snapshots__/Text.test.js.snap +25 -9
  43. package/src/components/Atoms/TextArea/TextArea.test.js +5 -1
  44. package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +15 -7
  45. package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +10 -4
  46. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +20 -10
  47. package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +5 -2
  48. package/src/components/Molecules/Descriptor/Descriptor.test.js +15 -13
  49. package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +10 -24
  50. package/src/components/Molecules/PartnerLink/PartnerLink.test.js +5 -2
  51. package/src/components/Molecules/Promo/Promo.test.js +2 -2
  52. package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +24 -6
  53. package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +5 -1
  54. package/src/components/Molecules/SearchInput/SearchInput.test.js +5 -1
  55. package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +45 -18
  56. package/src/components/Molecules/SingleMessage/SingleMessage.test.js +2 -2
  57. package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +39 -12
  58. package/src/components/Molecules/SingleMessageDS/SingleMessageDs.test.js +1 -1
  59. package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +15 -3
  60. package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +5 -1
  61. package/src/components/Organisms/CookieBanner/CookieBanner.test.js +5 -2
  62. package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +90 -35
  63. package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +10 -8
  64. package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +20 -58
  65. package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +1 -1
  66. package/src/components/Organisms/Membership/Membership.test.js +25 -12
  67. package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +15 -3
@@ -19,19 +19,19 @@ export const BaseText = styled.span`
19
19
  // all tags will use the new standardised styles set in fontHelper), but, in order to ensure
20
20
  // things don't break/look bad accidentally, it'll require intentional, in-situ prop removal.
21
21
 
22
- ${({ size }) => (size && `font-size: ${theme.fontSize(size)}`)};
23
- ${({ size }) => (size && 'line-height: normal')};
22
+ ${({ $size }) => ($size && `font-size: ${theme.fontSize($size)}`)};
23
+ ${({ $size }) => ($size && 'line-height: normal')};
24
24
 
25
- ${({ family }) => (family && `font-family: ${theme.fontFamilies(family)}`)};
26
- ${({ weight }) => (weight && `font-weight: ${weight}`)};
27
- ${({ height }) => (height && `line-height: ${height}`)};
28
- ${({ uppercase }) => (uppercase && 'text-transform: uppercase')};
25
+ ${({ $family }) => ($family && `font-family: ${theme.fontFamilies($family)}`)};
26
+ ${({ $weight }) => ($weight && `font-weight: ${$weight}`)};
27
+ ${({ $height }) => ($height && `line-height: ${$height}`)};
28
+ ${({ $uppercase }) => ($uppercase && 'text-transform: uppercase')};
29
29
 
30
- color: ${({ color }) => (color ? theme.color(color) : 'inherit')};
30
+ color: ${({ $color }) => ($color ? theme.color($color) : 'inherit')};
31
31
 
32
- ${({ textAlign }) => textAlign && `text-align: ${textAlign}`};
32
+ ${({ $textAlign }) => $textAlign && `text-align: ${$textAlign}`};
33
33
 
34
- ${({ size }) => (size === 'super' && css`
34
+ ${({ $size }) => ($size === 'super' && css`
35
35
  font-size: ${theme.fontSize('xxl')};
36
36
  line-height: 3rem;
37
37
 
@@ -48,11 +48,17 @@ export const BaseText = styled.span`
48
48
  }
49
49
  `)};
50
50
 
51
- ${({ mobileColor }) => mobileColor && css`
51
+ ${({ $mobileColor }) => $mobileColor && css`
52
52
  @media (max-width: ${breakpointValues2026.L - 1}px) {
53
- color: ${theme.color(mobileColor)};
53
+ color: ${theme.color($mobileColor)};
54
54
  }
55
55
  `};
56
+
57
+ // Ensure any *nested* content doesn't
58
+ span {
59
+ font-size: inherit;
60
+ line-height: inherit;
61
+ }
56
62
  }
57
63
  `)};
58
64
  `;
@@ -76,14 +82,14 @@ const Text = ({
76
82
  <BaseText
77
83
  {...rest}
78
84
  as={tag}
79
- color={color}
80
- size={size}
81
- uppercase={uppercase}
82
- height={height}
83
- weight={weight}
84
- family={family}
85
- mobileColor={mobileColor}
86
- textAlign={textAlign}
85
+ $color={color}
86
+ $size={size}
87
+ $uppercase={uppercase}
88
+ $height={height}
89
+ $weight={weight}
90
+ $family={family}
91
+ $mobileColor={mobileColor}
92
+ $textAlign={textAlign}
87
93
  >
88
94
  {children}
89
95
  </BaseText>
@@ -8,32 +8,32 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
8
8
  // To be phased out: tags to use the prescribed family always
9
9
  family="Anton"
10
10
  >
11
- <b style={{ width: "55px", display: "inline-block" }}>H1 </b>
12
- <Text style={{ textTransform: "none" }} tag="span" size="s">
13
- <b>family:</b> {fontConfig['h1'].family} -
14
- <b>mobileColor:</b> blue
15
- <br/>
16
- <b>font size (S / M / L breakpoints):</b> {fontConfig['h1'].small.fontSize} / {fontConfig['h1'].medium.fontSize} / {fontConfig['h1'].large.fontSize}
17
- <br/>
18
- <b>line height (S / M / L breakpoints):</b> {fontConfig['h1'].small.lineHeight} / {fontConfig['h1'].medium.lineHeight} / {fontConfig['h1'].large.lineHeight}
19
-
20
- </Text>
11
+ <span style={{ width: "55px"}}>H1 </span>
21
12
  </Text>
22
-
13
+ <Text style={{ textTransform: "none" }} tag="span" size="s">
14
+ <b>family:</b> {fontConfig['h1'].family} -
15
+ <b>mobileColor:</b> blue
16
+ <br/>
17
+ <b>font size (S / M / L breakpoints):</b> {fontConfig['h1'].small.fontSize} / {fontConfig['h1'].medium.fontSize} / {fontConfig['h1'].large.fontSize}
18
+ <br/>
19
+ <b>line height (S / M / L breakpoints):</b> {fontConfig['h1'].small.lineHeight} / {fontConfig['h1'].medium.lineHeight} / {fontConfig['h1'].large.lineHeight}
20
+ </Text>
21
+
22
+
23
23
  <Text
24
24
  tag="h2"
25
25
  mobileColor="green"
26
26
  family="Anton"
27
27
  >
28
- <b style={{ width: "55px", display: "inline-block" }}>H2 </b>
29
- <Text style={{ textTransform: "none" }} tag="span" size="s">
30
- <b>family:</b> {fontConfig['h2'].family} -
31
- <b>mobileColor:</b> green
32
- <br/>
33
- <b>font size (S / M / L breakpoints):</b> {fontConfig['h2'].small.fontSize} / {fontConfig['h2'].medium.fontSize} / {fontConfig['h2'].large.fontSize}
34
- <br/>
35
- <b>line height (S / M / L breakpoints):</b> {fontConfig['h2'].small.lineHeight} / {fontConfig['h2'].medium.lineHeight} / {fontConfig['h2'].large.lineHeight}
36
- </Text>
28
+ <span style={{ width: "55px"}}>H2 </span>
29
+ </Text>
30
+ <Text style={{ textTransform: "none" }} tag="span" size="s">
31
+ <b>family:</b> {fontConfig['h2'].family} -
32
+ <b>mobileColor:</b> green
33
+ <br/>
34
+ <b>font size (S / M / L breakpoints):</b> {fontConfig['h2'].small.fontSize} / {fontConfig['h2'].medium.fontSize} / {fontConfig['h2'].large.fontSize}
35
+ <br/>
36
+ <b>line height (S / M / L breakpoints):</b> {fontConfig['h2'].small.lineHeight} / {fontConfig['h2'].medium.lineHeight} / {fontConfig['h2'].large.lineHeight}
37
37
  </Text>
38
38
 
39
39
  <Text
@@ -41,15 +41,15 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
41
41
  mobileColor="red"
42
42
  family="Montserrat"
43
43
  >
44
- <b style={{ width: "55px", display: "inline-block" }}>H3 </b>
45
- <Text style={{ textTransform: "none" }} tag="span">
46
- <b>family:</b> {fontConfig['h3'].family} -
47
- <b>mobileColor:</b> red
48
- <br/>
49
- <b>font size (S / M / L breakpoints):</b> {fontConfig['h3'].small.fontSize} / {fontConfig['h3'].medium.fontSize} / {fontConfig['h3'].large.fontSize}
50
- <br/>
51
- <b>line height (S / M / L breakpoints):</b> {fontConfig['h3'].small.lineHeight} / {fontConfig['h3'].medium.lineHeight} / {fontConfig['h3'].large.lineHeight}
52
- </Text>
44
+ <span style={{ width: "55px"}}>H3 </span>
45
+ </Text>
46
+ <Text style={{ textTransform: "none" }} tag="span" size="s">
47
+ <b>family:</b> {fontConfig['h3'].family} -
48
+ <b>mobileColor:</b> red
49
+ <br/>
50
+ <b>font size (S / M / L breakpoints):</b> {fontConfig['h3'].small.fontSize} / {fontConfig['h3'].medium.fontSize} / {fontConfig['h3'].large.fontSize}
51
+ <br/>
52
+ <b>line height (S / M / L breakpoints):</b> {fontConfig['h3'].small.lineHeight} / {fontConfig['h3'].medium.lineHeight} / {fontConfig['h3'].large.lineHeight}
53
53
  </Text>
54
54
 
55
55
  <Text
@@ -58,61 +58,62 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
58
58
  weight="normal"
59
59
  // To be phased out: text to always be rendered as typed
60
60
  uppercase>
61
- <b style={{ width: "55px", display: "inline-block" }}>H4 </b>
62
- <Text style={{ textTransform: "none" }} tag="span">
63
- <b>family:</b> {fontConfig['span'].family} -
64
- <br/>
65
- <b>font size (S / M / L breakpoints):</b> {fontConfig['h4'].small.fontSize} / {fontConfig['h4'].medium.fontSize} / {fontConfig['h4'].large.fontSize}
66
- <br/>
67
- <b>line height (S / M / L breakpoints):</b> {fontConfig['h4'].small.lineHeight} / {fontConfig['h4'].medium.lineHeight} / {fontConfig['h4'].large.lineHeight}
68
- </Text>
61
+ <span style={{ width: "55px"}}>H4 </span>
62
+ </Text>
63
+ <Text style={{ textTransform: "none" }} tag="span" size="s">
64
+ <b>family:</b> {fontConfig['span'].family} -
65
+ <br/>
66
+ <b>font size (S / M / L breakpoints):</b> {fontConfig['h4'].small.fontSize} / {fontConfig['h4'].medium.fontSize} / {fontConfig['h4'].large.fontSize}
67
+ <br/>
68
+ <b>line height (S / M / L breakpoints):</b> {fontConfig['h4'].small.lineHeight} / {fontConfig['h4'].medium.lineHeight} / {fontConfig['h4'].large.lineHeight}
69
69
  </Text>
70
70
 
71
- <Text tag="p" size="m">
72
- <span style={{ width: "55px", display: "inline-block" }}>Body</span>
73
- <Text style={{ textTransform: "none" }} tag="span">
74
- <b>family:</b> {fontConfig['p'].family} -
75
- <br/>
76
- <b>font size (S / M / L breakpoints):</b> {fontConfig['p'].small.fontSize} / {fontConfig['p'].medium.fontSize} / {fontConfig['p'].large.fontSize}
77
- <br/>
78
- <b>line height (S / M / L breakpoints):</b> {fontConfig['p'].small.lineHeight} / {fontConfig['p'].medium.lineHeight} / {fontConfig['p'].large.lineHeight}
79
- </Text>
80
- </Text>
81
71
 
82
- <Text tag="p" style={{ marginTop: "55px", fontStyle: "italic"}}>
83
- Tags to be phased out:
84
- </Text>
85
72
 
86
- <Text
73
+ <Text tag="p" size="m" style={{ marginTop: "2rem"}} height="100px" weight="500">
74
+ <span style={{ width: "55px"}}>P (body)</span>
75
+ </Text>
76
+ <Text style={{ textTransform: "none" }} tag="span" size="s">
77
+ <b>family:</b> {fontConfig['p'].family} -
78
+ <br/>
79
+ <b>font size (S / M / L breakpoints):</b> {fontConfig['p'].small.fontSize} / {fontConfig['p'].medium.fontSize} / {fontConfig['p'].large.fontSize}
80
+ <br/>
81
+ <b>line height (S / M / L breakpoints):</b> {fontConfig['p'].small.lineHeight} / {fontConfig['p'].medium.lineHeight} / {fontConfig['p'].large.lineHeight}
82
+ </Text>
83
+
84
+ <Text tag="p" style={{ marginTop: "55px", fontStyle: "italic"}}>
85
+ Tags to be phased out:
86
+ </Text>
87
+
88
+ <Text
87
89
  tag="h5"
88
90
  family="Anton"
89
91
  uppercase
90
92
  // To be phased-out
91
93
  weight="normal">
92
- <b style={{ width: "55px", display: "inline-block" }}>H5 </b>
93
- <Text style={{ textTransform: "none" }} tag="span">
94
- <b>family:</b> {fontConfig['h5'].family} -
95
- <br/>
96
- <b>font size (S / M / L breakpoints):</b> {fontConfig['h5'].small.fontSize} / {fontConfig['h5'].medium.fontSize} / {fontConfig['h5'].large.fontSize}
97
- <br/>
98
- <b>line height (S / M / L breakpoints):</b> {fontConfig['h5'].small.lineHeight} / {fontConfig['h5'].medium.lineHeight} / {fontConfig['h5'].large.lineHeight}
99
- </Text>
94
+ <span style={{ width: "55px"}}>H5 </span>
95
+ </Text>
96
+ <Text style={{ textTransform: "none" }} tag="span" size="s">
97
+ <b>family:</b> {fontConfig['h5'].family} -
98
+ <br/>
99
+ <b>font size (S / M / L breakpoints):</b> {fontConfig['h5'].small.fontSize} / {fontConfig['h5'].medium.fontSize} / {fontConfig['h5'].large.fontSize}
100
+ <br/>
101
+ <b>line height (S / M / L breakpoints):</b> {fontConfig['h5'].small.lineHeight} / {fontConfig['h5'].medium.lineHeight} / {fontConfig['h5'].large.lineHeight}
100
102
  </Text>
101
-
102
103
 
103
104
  <Text tag="h6"
104
105
  family="Anton"
105
106
  uppercase
106
107
  weight="normal">
107
- <b style={{ width: "55px", display: "inline-block" }}>H6</b>
108
- <Text style={{ textTransform: "none" }} tag="span">
109
- <b>family:</b> {fontConfig['h6'].family}
110
- <br/>
111
- <b>font size (S / M / L breakpoints):</b> {fontConfig['h6'].small.fontSize} / {fontConfig['h6'].medium.fontSize} / {fontConfig['h6'].large.fontSize}
112
- <br/>
113
- <b>line height (S / M / L breakpoints):</b> {fontConfig['h6'].small.lineHeight} / {fontConfig['h6'].medium.lineHeight} / {fontConfig['h6'].large.lineHeight}
114
- </Text>
108
+ <span style={{ width: "55px"}}>H6</span>
109
+ </Text>
110
+ <Text style={{ textTransform: "none" }} tag="span" size="s">
111
+ <b>family:</b> {fontConfig['h6'].family}
112
+ <br/>
113
+ <b>font size (S / M / L breakpoints):</b> {fontConfig['h6'].small.fontSize} / {fontConfig['h6'].medium.fontSize} / {fontConfig['h6'].large.fontSize}
114
+ <br/>
115
+ <b>line height (S / M / L breakpoints):</b> {fontConfig['h6'].small.lineHeight} / {fontConfig['h6'].medium.lineHeight} / {fontConfig['h6'].large.lineHeight}
115
116
  </Text>
116
-
117
+
117
118
  </div>
118
119
  ```
@@ -17,6 +17,11 @@ exports[`renders heavy heading correctly 1`] = `
17
17
  font-weight: 1000;
18
18
  }
19
19
 
20
+ .c0 span {
21
+ font-size: inherit;
22
+ line-height: inherit;
23
+ }
24
+
20
25
  @media (min-width:740px) {
21
26
  .c0 {
22
27
  font-size: 1.25rem;
@@ -33,7 +38,6 @@ exports[`renders heavy heading correctly 1`] = `
33
38
 
34
39
  <h3
35
40
  className="c0"
36
- color="inherit"
37
41
  >
38
42
  Heading 3 heavy
39
43
  </h3>
@@ -56,6 +60,11 @@ exports[`renders high heading correctly 1`] = `
56
60
  line-height: 5;
57
61
  }
58
62
 
63
+ .c0 span {
64
+ font-size: inherit;
65
+ line-height: inherit;
66
+ }
67
+
59
68
  @media (min-width:740px) {
60
69
  .c0 {
61
70
  font-size: 1.25rem;
@@ -72,8 +81,6 @@ exports[`renders high heading correctly 1`] = `
72
81
 
73
82
  <h3
74
83
  className="c0"
75
- color="inherit"
76
- height="5"
77
84
  >
78
85
  Heading 3 high
79
86
  </h3>
@@ -97,6 +104,11 @@ exports[`renders large heading correctly 1`] = `
97
104
  line-height: normal;
98
105
  }
99
106
 
107
+ .c0 span {
108
+ font-size: inherit;
109
+ line-height: inherit;
110
+ }
111
+
100
112
  @media (min-width:740px) {
101
113
  .c0 {
102
114
  font-size: 1.25rem;
@@ -113,8 +125,6 @@ exports[`renders large heading correctly 1`] = `
113
125
 
114
126
  <h3
115
127
  className="c0"
116
- color="inherit"
117
- size="l"
118
128
  >
119
129
  Heading 3 large
120
130
  </h3>
@@ -139,6 +149,11 @@ exports[`renders xl paragraph with Anton font correctly 1`] = `
139
149
  font-family: 'Anton',Impact,sans-serif;
140
150
  }
141
151
 
152
+ .c0 span {
153
+ font-size: inherit;
154
+ line-height: inherit;
155
+ }
156
+
142
157
  @media (min-width:740px) {
143
158
  .c0 {
144
159
  font-size: 1rem;
@@ -155,8 +170,6 @@ exports[`renders xl paragraph with Anton font correctly 1`] = `
155
170
 
156
171
  <p
157
172
  className="c0"
158
- color="inherit"
159
- size="xl"
160
173
  >
161
174
  My paragraph xl and font Anton
162
175
  </p>
@@ -181,6 +194,11 @@ exports[`renders xl yellow paragraph correctly 1`] = `
181
194
  color: #FFE400;
182
195
  }
183
196
 
197
+ .c0 span {
198
+ font-size: inherit;
199
+ line-height: inherit;
200
+ }
201
+
184
202
  @media (min-width:740px) {
185
203
  .c0 {
186
204
  font-size: 1rem;
@@ -197,8 +215,6 @@ exports[`renders xl yellow paragraph correctly 1`] = `
197
215
 
198
216
  <p
199
217
  className="c0"
200
- color="yellow"
201
- size="xl"
202
218
  >
203
219
  My paragraph xl and yellow
204
220
  </p>
@@ -28,6 +28,11 @@ it('renders correctly', () => {
28
28
  line-height: 1.25rem;
29
29
  }
30
30
 
31
+ .c1 span {
32
+ font-size: inherit;
33
+ line-height: inherit;
34
+ }
35
+
31
36
  .c0 {
32
37
  width: 100%;
33
38
  position: relative;
@@ -127,7 +132,6 @@ it('renders correctly', () => {
127
132
  >
128
133
  <span
129
134
  className="c1 c2"
130
- color="inherit"
131
135
  dangerouslySetInnerHTML={
132
136
  Object {
133
137
  "__html": "Label",
@@ -13,6 +13,11 @@ exports[`renders correctly with no value and no options 1`] = `
13
13
  line-height: 1.25rem;
14
14
  }
15
15
 
16
+ .c2 span {
17
+ font-size: inherit;
18
+ line-height: inherit;
19
+ }
20
+
16
21
  .c1 {
17
22
  width: 100%;
18
23
  position: relative;
@@ -135,7 +140,6 @@ exports[`renders correctly with no value and no options 1`] = `
135
140
  >
136
141
  <span
137
142
  className="c2 c3"
138
- color="inherit"
139
143
  dangerouslySetInnerHTML={
140
144
  Object {
141
145
  "__html": "Search for bikes",
@@ -182,6 +186,11 @@ exports[`renders correctly with value and no options 1`] = `
182
186
  line-height: 1.25rem;
183
187
  }
184
188
 
189
+ .c2 span {
190
+ font-size: inherit;
191
+ line-height: inherit;
192
+ }
193
+
185
194
  .c1 {
186
195
  width: 100%;
187
196
  position: relative;
@@ -304,7 +313,6 @@ exports[`renders correctly with value and no options 1`] = `
304
313
  >
305
314
  <span
306
315
  className="c2 c3"
307
- color="inherit"
308
316
  dangerouslySetInnerHTML={
309
317
  Object {
310
318
  "__html": "Search for bikes",
@@ -351,6 +359,11 @@ exports[`renders correctly with value and options 1`] = `
351
359
  line-height: 1.25rem;
352
360
  }
353
361
 
362
+ .c2 span {
363
+ font-size: inherit;
364
+ line-height: inherit;
365
+ }
366
+
354
367
  .c1 {
355
368
  width: 100%;
356
369
  position: relative;
@@ -512,7 +525,6 @@ exports[`renders correctly with value and options 1`] = `
512
525
  >
513
526
  <span
514
527
  className="c2 c3"
515
- color="inherit"
516
528
  dangerouslySetInnerHTML={
517
529
  Object {
518
530
  "__html": "Search for bikes",
@@ -562,7 +574,6 @@ exports[`renders correctly with value and options 1`] = `
562
574
  >
563
575
  <span
564
576
  className="c2"
565
- color="inherit"
566
577
  >
567
578
  Canyon
568
579
  </span>
@@ -578,7 +589,6 @@ exports[`renders correctly with value and options 1`] = `
578
589
  >
579
590
  <span
580
591
  className="c2"
581
- color="inherit"
582
592
  >
583
593
  Cannondale
584
594
  </span>
@@ -594,7 +604,6 @@ exports[`renders correctly with value and options 1`] = `
594
604
  >
595
605
  <span
596
606
  className="c2"
597
- color="inherit"
598
607
  >
599
608
  Condor
600
609
  </span>
@@ -610,7 +619,6 @@ exports[`renders correctly with value and options 1`] = `
610
619
  >
611
620
  <span
612
621
  className="c2"
613
- color="inherit"
614
622
  >
615
623
  Cube
616
624
  </span>
@@ -18,6 +18,11 @@ exports[`renders correctly 1`] = `
18
18
  line-height: normal;
19
19
  }
20
20
 
21
+ .c2 span {
22
+ font-size: inherit;
23
+ line-height: inherit;
24
+ }
25
+
21
26
  .c6 {
22
27
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
23
28
  font-weight: 400;
@@ -35,6 +40,11 @@ exports[`renders correctly 1`] = `
35
40
  line-height: normal;
36
41
  }
37
42
 
43
+ .c6 span {
44
+ font-size: inherit;
45
+ line-height: inherit;
46
+ }
47
+
38
48
  .c4 {
39
49
  -webkit-transform: rotate(180deg);
40
50
  -ms-transform: rotate(180deg);
@@ -165,8 +175,6 @@ exports[`renders correctly 1`] = `
165
175
  >
166
176
  <h2
167
177
  className="c2"
168
- color="inherit"
169
- size="l"
170
178
  >
171
179
  I am the title
172
180
  </h2>
@@ -193,8 +201,6 @@ exports[`renders correctly 1`] = `
193
201
  >
194
202
  <p
195
203
  className="c6"
196
- color="inherit"
197
- size="s"
198
204
  >
199
205
  Name, surname, email and billing address We need these to process your payment, create a receipt and send it to you. Establishment information We use this information to understand which institutions (e.g. schools, companies) raise money for us. Your details will be kept safe and never shared with other organisations; see our Privacy Policy for more information
200
206
  </p>
@@ -37,6 +37,11 @@ it('renders article teaser correctly', () => {
37
37
  font-weight: bold;
38
38
  }
39
39
 
40
+ .c8 span {
41
+ font-size: inherit;
42
+ line-height: inherit;
43
+ }
44
+
40
45
  .c10 {
41
46
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
42
47
  font-weight: 700;
@@ -58,6 +63,11 @@ it('renders article teaser correctly', () => {
58
63
  text-transform: uppercase;
59
64
  }
60
65
 
66
+ .c10 span {
67
+ font-size: inherit;
68
+ line-height: inherit;
69
+ }
70
+
61
71
  .c4 {
62
72
  display: block;
63
73
  width: 100%;
@@ -284,16 +294,11 @@ it('renders article teaser correctly', () => {
284
294
  >
285
295
  <span
286
296
  className="c8 c9"
287
- color="inherit"
288
- size="xs"
289
297
  >
290
298
  01 July 2019
291
299
  </span>
292
300
  <h3
293
301
  className="c10 c11"
294
- color="inherit"
295
- height="2rem"
296
- size="xl"
297
302
  >
298
303
  News article
299
304
  </h3>
@@ -334,6 +339,11 @@ it('renders press realese correctly', () => {
334
339
  font-weight: bold;
335
340
  }
336
341
 
342
+ .c8 span {
343
+ font-size: inherit;
344
+ line-height: inherit;
345
+ }
346
+
337
347
  .c10 {
338
348
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
339
349
  font-weight: 700;
@@ -355,6 +365,11 @@ it('renders press realese correctly', () => {
355
365
  text-transform: uppercase;
356
366
  }
357
367
 
368
+ .c10 span {
369
+ font-size: inherit;
370
+ line-height: inherit;
371
+ }
372
+
358
373
  .c4 {
359
374
  display: block;
360
375
  width: 80px;
@@ -556,16 +571,11 @@ it('renders press realese correctly', () => {
556
571
  >
557
572
  <span
558
573
  className="c8 c9"
559
- color="inherit"
560
- size="xs"
561
574
  >
562
575
  01 July 2019
563
576
  </span>
564
577
  <h3
565
578
  className="c10 c11"
566
- color="inherit"
567
- height="2rem"
568
- size="xl"
569
579
  >
570
580
  Press Release
571
581
  </h3>
@@ -19,6 +19,11 @@ exports[`renders correctly 1`] = `
19
19
  color: #FFFFFF;
20
20
  }
21
21
 
22
+ .c2 span {
23
+ font-size: inherit;
24
+ line-height: inherit;
25
+ }
26
+
22
27
  .c0 {
23
28
  background: #48276E;
24
29
  }
@@ -64,8 +69,6 @@ exports[`renders correctly 1`] = `
64
69
  >
65
70
  <p
66
71
  className="c2"
67
- color="white"
68
- size="s"
69
72
  >
70
73
  Mental health issues affect 1 in 4 of us in the UK. Join now and with your help we can provide vital support for people like Jordan. You know what to do.
71
74
  </p>