@comicrelief/component-library 8.44.1 → 8.44.3

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 (99) hide show
  1. package/dist/components/Atoms/Checkbox/Checkbox.js +2 -1
  2. package/dist/components/Atoms/Checkbox/Checkbox.md +2 -2
  3. package/dist/components/Atoms/Checkbox/Checkbox.test.js +16 -0
  4. package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +5 -0
  5. package/dist/components/Atoms/Input/input.test.js +10 -0
  6. package/dist/components/Atoms/RadioButton/RadioButton.js +2 -1
  7. package/dist/components/Atoms/RadioButton/RadioButton.test.js +16 -0
  8. package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +5 -0
  9. package/dist/components/Atoms/Text/Text.js +1 -1
  10. package/dist/components/Atoms/Text/Text.md +69 -68
  11. package/dist/components/Atoms/Text/__snapshots__/Text.test.js.snap +25 -0
  12. package/dist/components/Atoms/TextArea/TextArea.test.js +5 -0
  13. package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +15 -0
  14. package/dist/components/Molecules/Accordion/Accordion.md +3 -3
  15. package/dist/components/Molecules/Accordion/Accordion.test.js +2 -1
  16. package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +16 -0
  17. package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +20 -0
  18. package/dist/components/Molecules/Banner/Banner.test.js +2 -1
  19. package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +8 -0
  20. package/dist/components/Molecules/Descriptor/Descriptor.test.js +15 -0
  21. package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +10 -0
  22. package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +5 -0
  23. package/dist/components/Molecules/Promo/Promo.test.js +4 -2
  24. package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +26 -0
  25. package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +5 -0
  26. package/dist/components/Molecules/SearchInput/SearchInput.test.js +5 -0
  27. package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +45 -0
  28. package/dist/components/Molecules/SingleMessage/SingleMessage.test.js +4 -2
  29. package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +41 -0
  30. package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.test.js +2 -1
  31. package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +16 -0
  32. package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +5 -0
  33. package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +5 -0
  34. package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +90 -0
  35. package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +10 -0
  36. package/dist/components/Organisms/Footer/Footer.js +2 -1
  37. package/dist/components/Organisms/Footer/Nav/Nav.js +8 -4
  38. package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +60 -0
  39. package/dist/components/Organisms/Header/HeaderNav/HeaderNav.js +2 -1
  40. package/dist/components/Organisms/Header/Nav/Nav.js +2 -1
  41. package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +2 -1
  42. package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
  43. package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +3 -1
  44. package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +4 -2
  45. package/dist/components/Organisms/Membership/Form/Form.js +2 -1
  46. package/dist/components/Organisms/Membership/Membership.js +2 -1
  47. package/dist/components/Organisms/Membership/Membership.test.js +111 -48
  48. package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.js +4 -2
  49. package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +15 -0
  50. package/package.json +1 -1
  51. package/src/components/Atoms/Checkbox/Checkbox.js +1 -1
  52. package/src/components/Atoms/Checkbox/Checkbox.md +2 -2
  53. package/src/components/Atoms/Checkbox/Checkbox.test.js +16 -0
  54. package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +5 -0
  55. package/src/components/Atoms/Input/input.test.js +10 -0
  56. package/src/components/Atoms/RadioButton/RadioButton.js +1 -1
  57. package/src/components/Atoms/RadioButton/RadioButton.test.js +16 -0
  58. package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +5 -0
  59. package/src/components/Atoms/Text/Text.js +6 -0
  60. package/src/components/Atoms/Text/Text.md +69 -68
  61. package/src/components/Atoms/Text/__snapshots__/Text.test.js.snap +25 -0
  62. package/src/components/Atoms/TextArea/TextArea.test.js +5 -0
  63. package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +15 -0
  64. package/src/components/Molecules/Accordion/Accordion.md +3 -3
  65. package/src/components/Molecules/Accordion/Accordion.test.js +1 -1
  66. package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +16 -0
  67. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +20 -0
  68. package/src/components/Molecules/Banner/Banner.test.js +1 -1
  69. package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +8 -0
  70. package/src/components/Molecules/Descriptor/Descriptor.test.js +15 -0
  71. package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +10 -0
  72. package/src/components/Molecules/PartnerLink/PartnerLink.test.js +5 -0
  73. package/src/components/Molecules/Promo/Promo.test.js +2 -2
  74. package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +26 -0
  75. package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +5 -0
  76. package/src/components/Molecules/SearchInput/SearchInput.test.js +5 -0
  77. package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +45 -0
  78. package/src/components/Molecules/SingleMessage/SingleMessage.test.js +2 -2
  79. package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +41 -0
  80. package/src/components/Molecules/SingleMessageDS/SingleMessageDs.test.js +1 -1
  81. package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +16 -0
  82. package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +5 -0
  83. package/src/components/Organisms/CookieBanner/CookieBanner.test.js +5 -0
  84. package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +90 -0
  85. package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +10 -0
  86. package/src/components/Organisms/Footer/Footer.js +1 -1
  87. package/src/components/Organisms/Footer/Nav/Nav.js +4 -4
  88. package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +60 -0
  89. package/src/components/Organisms/Header/HeaderNav/HeaderNav.js +1 -1
  90. package/src/components/Organisms/Header/Nav/Nav.js +1 -1
  91. package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
  92. package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
  93. package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +1 -1
  94. package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +2 -2
  95. package/src/components/Organisms/Membership/Form/Form.js +1 -1
  96. package/src/components/Organisms/Membership/Membership.js +1 -1
  97. package/src/components/Organisms/Membership/Membership.test.js +111 -48
  98. package/src/components/Organisms/WYMDCarousel/WYMDCarousel.js +2 -2
  99. package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +15 -0
@@ -91,7 +91,8 @@ const Checkbox = /*#__PURE__*/_react.default.forwardRef((_ref8, ref) => {
91
91
  checkboxBorderChecked: checkboxBorderChecked,
92
92
  checkboxBorderFocus: checkboxBorderFocus
93
93
  })), /*#__PURE__*/_react.default.createElement("span", null), label ? /*#__PURE__*/_react.default.createElement(_Text.default, {
94
- weight: "bold"
94
+ weight: "bold",
95
+ size: "s"
95
96
  }, label) : children);
96
97
  });
97
98
  Checkbox.propTypes = {
@@ -6,7 +6,7 @@ import Link from '../../Atoms/Link/Link';
6
6
 
7
7
  const LongLabel = () => (
8
8
  <div>
9
- <Text tag="p">
9
+ <Text tag="p" size="s">
10
10
  I agree to the
11
11
  {' '}
12
12
  <Link target="blank" href="https://comicrelief.com/terms-of-use/">terms and conditions</Link>
@@ -15,7 +15,7 @@ const LongLabel = () => (
15
15
  {' '}
16
16
  <Link target="blank" href="https://comicrelief.com/privacy-notice/">privacy policy.</Link>
17
17
  </Text>
18
- <Text tag="p">
18
+ <Text tag="p" size="s">
19
19
  For more information, please view our fundraising
20
20
  <Link target="blank" href="https://comicrelief.com/code-of-conduct/">code of conduct.</Link>
21
21
  </Text>
@@ -30,9 +30,16 @@ it('renders correctly', () => {
30
30
  }
31
31
 
32
32
  .c2 {
33
+ font-size: 1rem;
34
+ line-height: normal;
33
35
  font-weight: bold;
34
36
  }
35
37
 
38
+ .c2 span {
39
+ font-size: inherit;
40
+ line-height: inherit;
41
+ }
42
+
36
43
  .c0 {
37
44
  display: -webkit-box;
38
45
  display: -webkit-flex;
@@ -111,6 +118,7 @@ it('renders correctly', () => {
111
118
  <span
112
119
  className="c2"
113
120
  color="inherit"
121
+ size="s"
114
122
  >
115
123
  Tennis
116
124
  </span>
@@ -128,9 +136,16 @@ it('renders correctly', () => {
128
136
  }
129
137
 
130
138
  .c2 {
139
+ font-size: 1rem;
140
+ line-height: normal;
131
141
  font-weight: bold;
132
142
  }
133
143
 
144
+ .c2 span {
145
+ font-size: inherit;
146
+ line-height: inherit;
147
+ }
148
+
134
149
  .c0 {
135
150
  display: -webkit-box;
136
151
  display: -webkit-flex;
@@ -209,6 +224,7 @@ it('renders correctly', () => {
209
224
  <span
210
225
  className="c2"
211
226
  color="inherit"
227
+ size="s"
212
228
  >
213
229
  Handball
214
230
  </span>
@@ -19,6 +19,11 @@ exports[`renders correctly 1`] = `
19
19
  color: #E52630;
20
20
  }
21
21
 
22
+ .c0 span {
23
+ font-size: inherit;
24
+ line-height: inherit;
25
+ }
26
+
22
27
  .c1 {
23
28
  display: inline-block;
24
29
  width: 100%;
@@ -27,6 +27,11 @@ it('renders correctly', () => {
27
27
  line-height: 1.25rem;
28
28
  }
29
29
 
30
+ .c1 span {
31
+ font-size: inherit;
32
+ line-height: inherit;
33
+ }
34
+
30
35
  .c0 {
31
36
  width: 100%;
32
37
  position: relative;
@@ -194,6 +199,11 @@ it('renders with responsive max widths correctly', () => {
194
199
  line-height: 1.25rem;
195
200
  }
196
201
 
202
+ .c1 span {
203
+ font-size: inherit;
204
+ line-height: inherit;
205
+ }
206
+
197
207
  .c0 {
198
208
  width: 100%;
199
209
  position: relative;
@@ -72,7 +72,8 @@ const RadioButton = /*#__PURE__*/_react.default.forwardRef((_ref7, ref) => {
72
72
  id: value,
73
73
  ref: ref
74
74
  })), /*#__PURE__*/_react.default.createElement("span", null), /*#__PURE__*/_react.default.createElement(_Text.default, {
75
- weight: "bold"
75
+ weight: "bold",
76
+ size: "s"
76
77
  }, label));
77
78
  });
78
79
  RadioButton.propTypes = {
@@ -32,9 +32,16 @@ it('renders correctly', () => {
32
32
  }
33
33
 
34
34
  .c2 {
35
+ font-size: 1rem;
36
+ line-height: normal;
35
37
  font-weight: bold;
36
38
  }
37
39
 
40
+ .c2 span {
41
+ font-size: inherit;
42
+ line-height: inherit;
43
+ }
44
+
38
45
  .c1 {
39
46
  background-color: #FFFFFF;
40
47
  z-index: 1;
@@ -122,6 +129,7 @@ it('renders correctly', () => {
122
129
  <span
123
130
  className="c2"
124
131
  color="inherit"
132
+ size="s"
125
133
  >
126
134
  Male
127
135
  </span>
@@ -139,9 +147,16 @@ it('renders correctly', () => {
139
147
  }
140
148
 
141
149
  .c2 {
150
+ font-size: 1rem;
151
+ line-height: normal;
142
152
  font-weight: bold;
143
153
  }
144
154
 
155
+ .c2 span {
156
+ font-size: inherit;
157
+ line-height: inherit;
158
+ }
159
+
145
160
  .c1 {
146
161
  background-color: #FFFFFF;
147
162
  z-index: 1;
@@ -229,6 +244,7 @@ it('renders correctly', () => {
229
244
  <span
230
245
  className="c2"
231
246
  color="inherit"
247
+ size="s"
232
248
  >
233
249
  Female
234
250
  </span>
@@ -13,6 +13,11 @@ exports[`renders correctly 1`] = `
13
13
  line-height: 1.25rem;
14
14
  }
15
15
 
16
+ .c1 span {
17
+ font-size: inherit;
18
+ line-height: inherit;
19
+ }
20
+
16
21
  .c0 {
17
22
  width: 100%;
18
23
  position: relative;
@@ -19,7 +19,7 @@ const BaseText = exports.BaseText = _styledComponents.default.span.withConfig({
19
19
  as,
20
20
  theme
21
21
  } = _ref;
22
- return as !== undefined && (0, _styledComponents.css)(["", " &{", ";", ";", ";", ";", ";", ";color:", ";", ";", ";", ";}"], (0, _fontHelper.default)(theme, as), _ref2 => {
22
+ return as !== undefined && (0, _styledComponents.css)(["", " &{", ";", ";", ";", ";", ";", ";color:", ";", ";", ";", ";span{font-size:inherit;line-height:inherit;}}"], (0, _fontHelper.default)(theme, as), _ref2 => {
23
23
  let {
24
24
  size
25
25
  } = _ref2;
@@ -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", display: "inline-block" }}>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", display: "inline-block" }}>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", display: "inline-block" }}>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", display: "inline-block" }}>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">
71
+
72
+
73
+ <Text tag="p" size="m" style={{ marginTop: "2rem"}}>
72
74
  <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>
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>
81
83
 
82
- <Text tag="p" style={{ marginTop: "55px", fontStyle: "italic"}}>
83
- Tags to be phased out:
84
- </Text>
84
+ <Text tag="p" style={{ marginTop: "55px", fontStyle: "italic"}}>
85
+ Tags to be phased out:
86
+ </Text>
85
87
 
86
- <Text
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", display: "inline-block" }}>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", display: "inline-block" }}>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;
@@ -56,6 +61,11 @@ exports[`renders high heading correctly 1`] = `
56
61
  line-height: 5;
57
62
  }
58
63
 
64
+ .c0 span {
65
+ font-size: inherit;
66
+ line-height: inherit;
67
+ }
68
+
59
69
  @media (min-width:740px) {
60
70
  .c0 {
61
71
  font-size: 1.25rem;
@@ -97,6 +107,11 @@ exports[`renders large heading correctly 1`] = `
97
107
  line-height: normal;
98
108
  }
99
109
 
110
+ .c0 span {
111
+ font-size: inherit;
112
+ line-height: inherit;
113
+ }
114
+
100
115
  @media (min-width:740px) {
101
116
  .c0 {
102
117
  font-size: 1.25rem;
@@ -139,6 +154,11 @@ exports[`renders xl paragraph with Anton font correctly 1`] = `
139
154
  font-family: 'Anton',Impact,sans-serif;
140
155
  }
141
156
 
157
+ .c0 span {
158
+ font-size: inherit;
159
+ line-height: inherit;
160
+ }
161
+
142
162
  @media (min-width:740px) {
143
163
  .c0 {
144
164
  font-size: 1rem;
@@ -181,6 +201,11 @@ exports[`renders xl yellow paragraph correctly 1`] = `
181
201
  color: #FFE400;
182
202
  }
183
203
 
204
+ .c0 span {
205
+ font-size: inherit;
206
+ line-height: inherit;
207
+ }
208
+
184
209
  @media (min-width:740px) {
185
210
  .c0 {
186
211
  font-size: 1rem;
@@ -27,6 +27,11 @@ it('renders correctly', () => {
27
27
  line-height: 1.25rem;
28
28
  }
29
29
 
30
+ .c1 span {
31
+ font-size: inherit;
32
+ line-height: inherit;
33
+ }
34
+
30
35
  .c0 {
31
36
  width: 100%;
32
37
  position: relative;
@@ -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;
@@ -182,6 +187,11 @@ exports[`renders correctly with value and no options 1`] = `
182
187
  line-height: 1.25rem;
183
188
  }
184
189
 
190
+ .c2 span {
191
+ font-size: inherit;
192
+ line-height: inherit;
193
+ }
194
+
185
195
  .c1 {
186
196
  width: 100%;
187
197
  position: relative;
@@ -351,6 +361,11 @@ exports[`renders correctly with value and options 1`] = `
351
361
  line-height: 1.25rem;
352
362
  }
353
363
 
364
+ .c2 span {
365
+ font-size: inherit;
366
+ line-height: inherit;
367
+ }
368
+
354
369
  .c1 {
355
370
  width: 100%;
356
371
  position: relative;
@@ -10,7 +10,7 @@ import Text from '../../Atoms/Text/Text';
10
10
  </Text>
11
11
  }
12
12
  >
13
- <Text tag="p">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</Text>
13
+ <Text tag="p" size="s">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</Text>
14
14
  </Accordion>
15
15
  ```
16
16
 
@@ -26,9 +26,9 @@ import Text from '../../Atoms/Text/Text';
26
26
  }
27
27
  >
28
28
 
29
- <Text tag="p">Customised bottom padding here!</Text>
29
+ <Text tag="p" size="s">Customised bottom padding here!</Text>
30
30
 
31
- <Text tag="p">
31
+ <Text tag="p" size="s">
32
32
  <a href="https://www.google.com">A plain anchor link, made to resemble a Link component</a>.
33
33
  </Text>
34
34
  </Accordion>
@@ -14,7 +14,8 @@ it('renders correctly', () => {
14
14
  size: "l"
15
15
  }, "I am the title")
16
16
  }, /*#__PURE__*/_react.default.createElement(_Text.default, {
17
- tag: "p"
17
+ tag: "p",
18
+ size: "s"
18
19
  }, "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"))).toJSON();
19
20
  expect(tree).toMatchSnapshot();
20
21
  });
@@ -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;
@@ -30,6 +35,16 @@ exports[`renders correctly 1`] = `
30
35
  line-height: 1.25rem;
31
36
  }
32
37
 
38
+ .c6 {
39
+ font-size: 1rem;
40
+ line-height: normal;
41
+ }
42
+
43
+ .c6 span {
44
+ font-size: inherit;
45
+ line-height: inherit;
46
+ }
47
+
33
48
  .c4 {
34
49
  -webkit-transform: rotate(180deg);
35
50
  -ms-transform: rotate(180deg);
@@ -189,6 +204,7 @@ exports[`renders correctly 1`] = `
189
204
  <p
190
205
  className="c6"
191
206
  color="inherit"
207
+ size="s"
192
208
  >
193
209
  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
194
210
  </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%;
@@ -330,6 +340,11 @@ it('renders press realese correctly', () => {
330
340
  font-weight: bold;
331
341
  }
332
342
 
343
+ .c8 span {
344
+ font-size: inherit;
345
+ line-height: inherit;
346
+ }
347
+
333
348
  .c10 {
334
349
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
335
350
  font-weight: 700;
@@ -351,6 +366,11 @@ it('renders press realese correctly', () => {
351
366
  text-transform: uppercase;
352
367
  }
353
368
 
369
+ .c10 span {
370
+ font-size: inherit;
371
+ line-height: inherit;
372
+ }
373
+
354
374
  .c4 {
355
375
  display: block;
356
376
  width: 80px;
@@ -11,7 +11,8 @@ it('renders correctly', () => {
11
11
  backgroundColor: "purple_dark"
12
12
  }, /*#__PURE__*/_react.default.createElement(_Text.default, {
13
13
  tag: "p",
14
- color: "white"
14
+ color: "white",
15
+ size: "s"
15
16
  }, "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."))).toJSON();
16
17
  expect(tree).toMatchSnapshot();
17
18
  });
@@ -14,9 +14,16 @@ exports[`renders correctly 1`] = `
14
14
  }
15
15
 
16
16
  .c2 {
17
+ font-size: 1rem;
18
+ line-height: normal;
17
19
  color: #FFFFFF;
18
20
  }
19
21
 
22
+ .c2 span {
23
+ font-size: inherit;
24
+ line-height: inherit;
25
+ }
26
+
20
27
  .c0 {
21
28
  background: #48276E;
22
29
  }
@@ -63,6 +70,7 @@ exports[`renders correctly 1`] = `
63
70
  <p
64
71
  className="c2"
65
72
  color="white"
73
+ size="s"
66
74
  >
67
75
  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.
68
76
  </p>