@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.
- package/dist/components/Atoms/Checkbox/Checkbox.js +2 -1
- package/dist/components/Atoms/Checkbox/Checkbox.md +2 -2
- package/dist/components/Atoms/Checkbox/Checkbox.test.js +16 -0
- package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +5 -0
- package/dist/components/Atoms/Input/input.test.js +10 -0
- package/dist/components/Atoms/RadioButton/RadioButton.js +2 -1
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +16 -0
- package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +5 -0
- package/dist/components/Atoms/Text/Text.js +1 -1
- package/dist/components/Atoms/Text/Text.md +69 -68
- package/dist/components/Atoms/Text/__snapshots__/Text.test.js.snap +25 -0
- package/dist/components/Atoms/TextArea/TextArea.test.js +5 -0
- package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +15 -0
- package/dist/components/Molecules/Accordion/Accordion.md +3 -3
- package/dist/components/Molecules/Accordion/Accordion.test.js +2 -1
- package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +16 -0
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +20 -0
- package/dist/components/Molecules/Banner/Banner.test.js +2 -1
- package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +8 -0
- package/dist/components/Molecules/Descriptor/Descriptor.test.js +15 -0
- package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +10 -0
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +5 -0
- package/dist/components/Molecules/Promo/Promo.test.js +4 -2
- package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +26 -0
- package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +5 -0
- package/dist/components/Molecules/SearchInput/SearchInput.test.js +5 -0
- package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +45 -0
- package/dist/components/Molecules/SingleMessage/SingleMessage.test.js +4 -2
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +41 -0
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.test.js +2 -1
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +16 -0
- package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +5 -0
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +5 -0
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +90 -0
- package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +10 -0
- package/dist/components/Organisms/Footer/Footer.js +2 -1
- package/dist/components/Organisms/Footer/Nav/Nav.js +8 -4
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +60 -0
- package/dist/components/Organisms/Header/HeaderNav/HeaderNav.js +2 -1
- package/dist/components/Organisms/Header/Nav/Nav.js +2 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +2 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +3 -1
- package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +4 -2
- package/dist/components/Organisms/Membership/Form/Form.js +2 -1
- package/dist/components/Organisms/Membership/Membership.js +2 -1
- package/dist/components/Organisms/Membership/Membership.test.js +111 -48
- package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.js +4 -2
- package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +15 -0
- package/package.json +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.js +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.md +2 -2
- package/src/components/Atoms/Checkbox/Checkbox.test.js +16 -0
- package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +5 -0
- package/src/components/Atoms/Input/input.test.js +10 -0
- package/src/components/Atoms/RadioButton/RadioButton.js +1 -1
- package/src/components/Atoms/RadioButton/RadioButton.test.js +16 -0
- package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +5 -0
- package/src/components/Atoms/Text/Text.js +6 -0
- package/src/components/Atoms/Text/Text.md +69 -68
- package/src/components/Atoms/Text/__snapshots__/Text.test.js.snap +25 -0
- package/src/components/Atoms/TextArea/TextArea.test.js +5 -0
- package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +15 -0
- package/src/components/Molecules/Accordion/Accordion.md +3 -3
- package/src/components/Molecules/Accordion/Accordion.test.js +1 -1
- package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +16 -0
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +20 -0
- package/src/components/Molecules/Banner/Banner.test.js +1 -1
- package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +8 -0
- package/src/components/Molecules/Descriptor/Descriptor.test.js +15 -0
- package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +10 -0
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +5 -0
- package/src/components/Molecules/Promo/Promo.test.js +2 -2
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +26 -0
- package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +5 -0
- package/src/components/Molecules/SearchInput/SearchInput.test.js +5 -0
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +45 -0
- package/src/components/Molecules/SingleMessage/SingleMessage.test.js +2 -2
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +41 -0
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.test.js +1 -1
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +16 -0
- package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +5 -0
- package/src/components/Organisms/CookieBanner/CookieBanner.test.js +5 -0
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +90 -0
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +10 -0
- package/src/components/Organisms/Footer/Footer.js +1 -1
- package/src/components/Organisms/Footer/Nav/Nav.js +4 -4
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +60 -0
- package/src/components/Organisms/Header/HeaderNav/HeaderNav.js +1 -1
- package/src/components/Organisms/Header/Nav/Nav.js +1 -1
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +1 -1
- package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +2 -2
- package/src/components/Organisms/Membership/Form/Form.js +1 -1
- package/src/components/Organisms/Membership/Membership.js +1 -1
- package/src/components/Organisms/Membership/Membership.test.js +111 -48
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.js +2 -2
- package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +15 -0
|
@@ -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
|
-
<
|
|
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
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<Text tag="p" size="m" style={{ marginTop: "2rem"}}>
|
|
72
74
|
<span style={{ width: "55px", display: "inline-block" }}>Body</span>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
<Text tag="p" style={{ marginTop: "55px", fontStyle: "italic"}}>
|
|
85
|
+
Tags to be phased out:
|
|
86
|
+
</Text>
|
|
85
87
|
|
|
86
|
-
|
|
88
|
+
<Text
|
|
87
89
|
tag="h5"
|
|
88
90
|
family="Anton"
|
|
89
91
|
uppercase
|
|
90
92
|
// To be phased-out
|
|
91
93
|
weight="normal">
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
<
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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;
|
package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap
CHANGED
|
@@ -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>
|
|
@@ -13,7 +13,7 @@ it('renders correctly', () => {
|
|
|
13
13
|
</Text>
|
|
14
14
|
)}
|
|
15
15
|
>
|
|
16
|
-
<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>
|
|
16
|
+
<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>
|
|
17
17
|
</Accordion>
|
|
18
18
|
).toJSON();
|
|
19
19
|
|
|
@@ -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%;
|
|
@@ -334,6 +344,11 @@ it('renders press realese correctly', () => {
|
|
|
334
344
|
font-weight: bold;
|
|
335
345
|
}
|
|
336
346
|
|
|
347
|
+
.c8 span {
|
|
348
|
+
font-size: inherit;
|
|
349
|
+
line-height: inherit;
|
|
350
|
+
}
|
|
351
|
+
|
|
337
352
|
.c10 {
|
|
338
353
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
339
354
|
font-weight: 700;
|
|
@@ -355,6 +370,11 @@ it('renders press realese correctly', () => {
|
|
|
355
370
|
text-transform: uppercase;
|
|
356
371
|
}
|
|
357
372
|
|
|
373
|
+
.c10 span {
|
|
374
|
+
font-size: inherit;
|
|
375
|
+
line-height: inherit;
|
|
376
|
+
}
|
|
377
|
+
|
|
358
378
|
.c4 {
|
|
359
379
|
display: block;
|
|
360
380
|
width: 80px;
|
|
@@ -7,7 +7,7 @@ import Text from '../../Atoms/Text/Text';
|
|
|
7
7
|
it('renders correctly', () => {
|
|
8
8
|
const tree = renderWithTheme(
|
|
9
9
|
<Banner backgroundColor="purple_dark">
|
|
10
|
-
<Text tag="p" color="white">
|
|
10
|
+
<Text tag="p" color="white" size="s">
|
|
11
11
|
Mental health issues affect 1 in 4 of us in the UK.
|
|
12
12
|
Join now and with your help we can provide vital support for people like Jordan.
|
|
13
13
|
You know what to do.
|
|
@@ -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>
|
|
@@ -44,6 +44,11 @@ it('renders article teaser correctly', () => {
|
|
|
44
44
|
color: #222222;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
.c3 span {
|
|
48
|
+
font-size: inherit;
|
|
49
|
+
line-height: inherit;
|
|
50
|
+
}
|
|
51
|
+
|
|
47
52
|
.c7 {
|
|
48
53
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
49
54
|
font-weight: 700;
|
|
@@ -65,6 +70,11 @@ it('renders article teaser correctly', () => {
|
|
|
65
70
|
text-transform: uppercase;
|
|
66
71
|
}
|
|
67
72
|
|
|
73
|
+
.c7 span {
|
|
74
|
+
font-size: inherit;
|
|
75
|
+
line-height: inherit;
|
|
76
|
+
}
|
|
77
|
+
|
|
68
78
|
.c10 {
|
|
69
79
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
70
80
|
font-weight: 400;
|
|
@@ -85,6 +95,11 @@ it('renders article teaser correctly', () => {
|
|
|
85
95
|
color: #222222;
|
|
86
96
|
}
|
|
87
97
|
|
|
98
|
+
.c10 span {
|
|
99
|
+
font-size: inherit;
|
|
100
|
+
line-height: inherit;
|
|
101
|
+
}
|
|
102
|
+
|
|
88
103
|
.c0 {
|
|
89
104
|
position: relative;
|
|
90
105
|
width: 100%;
|
|
@@ -19,6 +19,11 @@ exports[`renders correctly 1`] = `
|
|
|
19
19
|
text-transform: uppercase;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.c2 span {
|
|
23
|
+
font-size: inherit;
|
|
24
|
+
line-height: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
22
27
|
.c3 {
|
|
23
28
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
24
29
|
font-weight: 400;
|
|
@@ -36,6 +41,11 @@ exports[`renders correctly 1`] = `
|
|
|
36
41
|
line-height: normal;
|
|
37
42
|
}
|
|
38
43
|
|
|
44
|
+
.c3 span {
|
|
45
|
+
font-size: inherit;
|
|
46
|
+
line-height: inherit;
|
|
47
|
+
}
|
|
48
|
+
|
|
39
49
|
.c4 {
|
|
40
50
|
position: relative;
|
|
41
51
|
display: inline;
|
|
@@ -25,7 +25,7 @@ it('renders Promo correctly', () => {
|
|
|
25
25
|
>
|
|
26
26
|
Curabitur pretium tincidunt lacus
|
|
27
27
|
</Text>
|
|
28
|
-
<Text tag="p" color="white">
|
|
28
|
+
<Text tag="p" color="white" size="s">
|
|
29
29
|
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius,
|
|
30
30
|
turpis et commodo, est eros bibendum elit, nec luctus magna sollicitudin.
|
|
31
31
|
</Text>
|
|
@@ -60,7 +60,7 @@ it('renders Promo correctly end position', () => {
|
|
|
60
60
|
>
|
|
61
61
|
Curabitur pretium tincidunt lacus
|
|
62
62
|
</Text>
|
|
63
|
-
<Text tag="p" color="white">
|
|
63
|
+
<Text tag="p" color="white" size="s">
|
|
64
64
|
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius,
|
|
65
65
|
turpis et commodo, est eros bibendum elit, nec luctus magna sollicitudin.
|
|
66
66
|
</Text>
|
|
@@ -24,6 +24,11 @@ exports[`renders Promo correctly 1`] = `
|
|
|
24
24
|
line-height: 3rem;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
.c7 span {
|
|
28
|
+
font-size: inherit;
|
|
29
|
+
line-height: inherit;
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
.c8 {
|
|
28
33
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
29
34
|
font-weight: 400;
|
|
@@ -37,9 +42,16 @@ exports[`renders Promo correctly 1`] = `
|
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
.c8 {
|
|
45
|
+
font-size: 1rem;
|
|
46
|
+
line-height: normal;
|
|
40
47
|
color: #FFFFFF;
|
|
41
48
|
}
|
|
42
49
|
|
|
50
|
+
.c8 span {
|
|
51
|
+
font-size: inherit;
|
|
52
|
+
line-height: inherit;
|
|
53
|
+
}
|
|
54
|
+
|
|
43
55
|
.c2 {
|
|
44
56
|
display: block;
|
|
45
57
|
width: 100%;
|
|
@@ -297,6 +309,7 @@ exports[`renders Promo correctly 1`] = `
|
|
|
297
309
|
<p
|
|
298
310
|
className="c8"
|
|
299
311
|
color="white"
|
|
312
|
+
size="s"
|
|
300
313
|
>
|
|
301
314
|
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo, est eros bibendum elit, nec luctus magna sollicitudin.
|
|
302
315
|
</p>
|
|
@@ -341,6 +354,11 @@ exports[`renders Promo correctly end position 1`] = `
|
|
|
341
354
|
line-height: 3rem;
|
|
342
355
|
}
|
|
343
356
|
|
|
357
|
+
.c7 span {
|
|
358
|
+
font-size: inherit;
|
|
359
|
+
line-height: inherit;
|
|
360
|
+
}
|
|
361
|
+
|
|
344
362
|
.c8 {
|
|
345
363
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
346
364
|
font-weight: 400;
|
|
@@ -354,9 +372,16 @@ exports[`renders Promo correctly end position 1`] = `
|
|
|
354
372
|
}
|
|
355
373
|
|
|
356
374
|
.c8 {
|
|
375
|
+
font-size: 1rem;
|
|
376
|
+
line-height: normal;
|
|
357
377
|
color: #FFFFFF;
|
|
358
378
|
}
|
|
359
379
|
|
|
380
|
+
.c8 span {
|
|
381
|
+
font-size: inherit;
|
|
382
|
+
line-height: inherit;
|
|
383
|
+
}
|
|
384
|
+
|
|
360
385
|
.c2 {
|
|
361
386
|
display: block;
|
|
362
387
|
width: 100%;
|
|
@@ -625,6 +650,7 @@ exports[`renders Promo correctly end position 1`] = `
|
|
|
625
650
|
<p
|
|
626
651
|
className="c8"
|
|
627
652
|
color="white"
|
|
653
|
+
size="s"
|
|
628
654
|
>
|
|
629
655
|
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo, est eros bibendum elit, nec luctus magna sollicitudin.
|
|
630
656
|
</p>
|