@comicrelief/component-library 8.42.0 → 8.44.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.
- package/dist/components/Atoms/Checkbox/Checkbox.test.js +50 -10
- package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +27 -4
- package/dist/components/Atoms/Input/Input.js +4 -9
- package/dist/components/Atoms/Input/input.test.js +92 -14
- package/dist/components/Atoms/Label/Label.js +14 -7
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +50 -10
- package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +45 -6
- package/dist/components/Atoms/Text/Text.js +60 -75
- package/dist/components/Atoms/Text/Text.md +84 -87
- package/dist/components/Atoms/Text/__snapshots__/Text.test.js.snap +130 -21
- package/dist/components/Atoms/TextArea/TextArea.test.js +45 -6
- package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +138 -25
- package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +48 -7
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +110 -20
- package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +26 -6
- package/dist/components/Molecules/Descriptor/Descriptor.test.js +85 -15
- package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +53 -3
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +27 -4
- package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +112 -28
- package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +46 -7
- package/dist/components/Molecules/SearchInput/SearchInput.test.js +23 -6
- package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +232 -20
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +187 -30
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +50 -9
- package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +46 -7
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +26 -7
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +544 -101
- package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +75 -19
- package/dist/components/Organisms/Footer/Nav/Nav.style.js +1 -1
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +100 -47
- package/dist/components/Organisms/Membership/Membership.test.js +122 -22
- package/dist/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
- package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +75 -19
- package/dist/theme/crTheme/fontConfig.js +217 -0
- package/dist/theme/crTheme/fontHelper.js +38 -0
- package/dist/theme/shared/breakpoints2026.js +11 -2
- package/dist/theme/shared/global.css +3 -1
- package/package.json +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.test.js +50 -10
- package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +27 -4
- package/src/components/Atoms/Input/Input.js +2 -2
- package/src/components/Atoms/Input/input.test.js +92 -14
- package/src/components/Atoms/Label/Label.js +7 -3
- package/src/components/Atoms/RadioButton/RadioButton.test.js +50 -10
- package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +45 -6
- package/src/components/Atoms/Text/Text.js +55 -54
- package/src/components/Atoms/Text/Text.md +84 -87
- package/src/components/Atoms/Text/__snapshots__/Text.test.js.snap +130 -21
- package/src/components/Atoms/TextArea/TextArea.test.js +45 -6
- package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +138 -25
- package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +48 -7
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +110 -20
- package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +26 -6
- package/src/components/Molecules/Descriptor/Descriptor.test.js +85 -15
- package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +53 -3
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +27 -4
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +112 -28
- package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +46 -7
- package/src/components/Molecules/SearchInput/SearchInput.test.js +23 -6
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +232 -20
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +187 -30
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +50 -9
- package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +46 -7
- package/src/components/Organisms/CookieBanner/CookieBanner.test.js +26 -7
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +544 -101
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +75 -19
- package/src/components/Organisms/Footer/Nav/Nav.style.js +1 -1
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +100 -47
- package/src/components/Organisms/Membership/Membership.test.js +122 -22
- package/src/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
- package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +75 -19
- package/src/theme/crTheme/fontConfig.js +211 -0
- package/src/theme/crTheme/fontHelper.js +31 -0
- package/src/theme/shared/breakpoints2026.js +11 -2
- package/src/theme/shared/global.css +3 -1
|
@@ -1,121 +1,118 @@
|
|
|
1
1
|
```js
|
|
2
|
+
import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
3
|
+
|
|
2
4
|
<div>
|
|
3
5
|
<Text
|
|
4
6
|
tag="h1"
|
|
5
|
-
family="Anton"
|
|
6
|
-
uppercase
|
|
7
|
-
weight="normal"
|
|
8
|
-
size="super"
|
|
9
7
|
mobileColor="blue"
|
|
8
|
+
// To be phased out: tags to use the prescribed family always
|
|
9
|
+
family="Anton"
|
|
10
10
|
>
|
|
11
|
-
<b style={{ width: "
|
|
11
|
+
<b style={{ width: "55px", display: "inline-block" }}>H1 </b>
|
|
12
12
|
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
13
|
-
<b>family:</b>
|
|
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
|
+
|
|
14
20
|
</Text>
|
|
15
21
|
</Text>
|
|
22
|
+
|
|
16
23
|
<Text
|
|
17
24
|
tag="h2"
|
|
18
|
-
family="Anton"
|
|
19
|
-
uppercase
|
|
20
|
-
weight="normal"
|
|
21
|
-
size="big"
|
|
22
25
|
mobileColor="green"
|
|
26
|
+
family="Anton"
|
|
23
27
|
>
|
|
24
|
-
<b style={{ width: "
|
|
28
|
+
<b style={{ width: "55px", display: "inline-block" }}>H2 </b>
|
|
25
29
|
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
26
|
-
<b>family:</b>
|
|
30
|
+
<b>family:</b> {fontConfig['h2'].family} -
|
|
27
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}
|
|
28
36
|
</Text>
|
|
29
37
|
</Text>
|
|
38
|
+
|
|
30
39
|
<Text
|
|
31
40
|
tag="h3"
|
|
32
|
-
family="Anton"
|
|
33
|
-
uppercase
|
|
34
|
-
weight="normal"
|
|
35
|
-
size="xxl"
|
|
36
41
|
mobileColor="red"
|
|
42
|
+
family="Montserrat"
|
|
37
43
|
>
|
|
38
|
-
<b style={{ width: "
|
|
39
|
-
<Text style={{ textTransform: "none" }} tag="span"
|
|
40
|
-
<b>family:</b>
|
|
44
|
+
<b style={{ width: "55px", display: "inline-block" }}>H3 </b>
|
|
45
|
+
<Text style={{ textTransform: "none" }} tag="span">
|
|
46
|
+
<b>family:</b> {fontConfig['h3'].family} -
|
|
41
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}
|
|
42
52
|
</Text>
|
|
43
53
|
</Text>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<b style={{ width: "100px", display: "inline-block" }}>H3 </b>
|
|
59
|
-
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
60
|
-
<b>family:</b> Anton <b>weight:</b> Regular <b>size:</b> 48px / 3rem / xxl
|
|
61
|
-
</Text>
|
|
62
|
-
</Text>
|
|
63
|
-
<Text tag="h4" family="Anton" uppercase weight="normal" size="xl">
|
|
64
|
-
<b style={{ width: "100px", display: "inline-block" }}>H4 </b>
|
|
65
|
-
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
66
|
-
<b>family:</b> Anton <b>weight:</b> Regular <b>size:</b> 32px / 2rem / xl
|
|
67
|
-
</Text>
|
|
68
|
-
</Text>
|
|
69
|
-
<Text tag="h4" family="Anton" uppercase weight="normal" size="l">
|
|
70
|
-
<b style={{ width: "100px", display: "inline-block" }}>H5 </b>
|
|
71
|
-
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
72
|
-
<b>family:</b> Anton <b>weight:</b> Regular <b>size:</b> 24px / 1.5rem / l
|
|
54
|
+
|
|
55
|
+
<Text
|
|
56
|
+
tag="h4"
|
|
57
|
+
family="Montserrat"
|
|
58
|
+
weight="normal"
|
|
59
|
+
// To be phased out: text to always be rendered as typed
|
|
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}
|
|
73
68
|
</Text>
|
|
74
69
|
</Text>
|
|
70
|
+
|
|
75
71
|
<Text tag="p" size="m">
|
|
76
|
-
<span style={{ width: "
|
|
77
|
-
|
|
78
|
-
<b>family:</b>
|
|
79
|
-
|
|
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
80
|
</Text>
|
|
81
|
-
</Text>
|
|
82
|
-
<Text tag="p" size="s">
|
|
83
|
-
<span style={{ width: "100px", display: "inline-block" }}>Body2</span>
|
|
84
|
-
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
85
|
-
<b>family:</b> Montserrat <b>weight:</b> Regular <b>size:</b> 16px / 1rem
|
|
86
|
-
/ s
|
|
87
|
-
</Text>
|
|
88
|
-
</Text>
|
|
89
|
-
</div>
|
|
90
|
-
```
|
|
91
81
|
|
|
92
|
-
|
|
82
|
+
<Text tag="p" style={{ marginTop: "55px", fontStyle: "italic"}}>
|
|
83
|
+
Tags to be phased out:
|
|
84
|
+
</Text>
|
|
93
85
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
<Text tag="h4" family="Founders_bold" uppercase size="l" textAlign="center">
|
|
109
|
-
Heading 5, textAlign prop
|
|
110
|
-
</Text>
|
|
111
|
-
<Text tag="p" family="Founders" size="m">
|
|
112
|
-
Body 1
|
|
113
|
-
</Text>
|
|
114
|
-
<Text tag="p" family="Founders" size="s">
|
|
115
|
-
Body 2
|
|
86
|
+
<Text
|
|
87
|
+
tag="h5"
|
|
88
|
+
family="Anton"
|
|
89
|
+
uppercase
|
|
90
|
+
// To be phased-out
|
|
91
|
+
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>
|
|
116
100
|
</Text>
|
|
117
|
-
|
|
118
|
-
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
<Text tag="h6"
|
|
104
|
+
family="Anton"
|
|
105
|
+
uppercase
|
|
106
|
+
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>
|
|
119
115
|
</Text>
|
|
116
|
+
|
|
120
117
|
</div>
|
|
121
118
|
```
|
|
@@ -2,17 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders heavy heading correctly 1`] = `
|
|
4
4
|
.c0 {
|
|
5
|
-
font-
|
|
6
|
-
|
|
5
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
6
|
+
font-weight: 700;
|
|
7
7
|
text-transform: inherit;
|
|
8
|
+
-webkit-letter-spacing: 0;
|
|
9
|
+
-moz-letter-spacing: 0;
|
|
10
|
+
-ms-letter-spacing: 0;
|
|
11
|
+
letter-spacing: 0;
|
|
12
|
+
font-size: 1.25rem;
|
|
13
|
+
line-height: 1.5rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.c0 {
|
|
8
17
|
font-weight: 1000;
|
|
9
|
-
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (min-width:740px) {
|
|
21
|
+
.c0 {
|
|
22
|
+
font-size: 1.25rem;
|
|
23
|
+
line-height: 1.5rem;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media (min-width:1024px) {
|
|
28
|
+
.c0 {
|
|
29
|
+
font-size: 1.375rem;
|
|
30
|
+
line-height: 1.625rem;
|
|
31
|
+
}
|
|
10
32
|
}
|
|
11
33
|
|
|
12
34
|
<h3
|
|
13
35
|
className="c0"
|
|
14
36
|
color="inherit"
|
|
15
|
-
size="s"
|
|
16
37
|
>
|
|
17
38
|
Heading 3 heavy
|
|
18
39
|
</h3>
|
|
@@ -20,18 +41,39 @@ exports[`renders heavy heading correctly 1`] = `
|
|
|
20
41
|
|
|
21
42
|
exports[`renders high heading correctly 1`] = `
|
|
22
43
|
.c0 {
|
|
23
|
-
font-
|
|
24
|
-
|
|
44
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
45
|
+
font-weight: 700;
|
|
25
46
|
text-transform: inherit;
|
|
47
|
+
-webkit-letter-spacing: 0;
|
|
48
|
+
-moz-letter-spacing: 0;
|
|
49
|
+
-ms-letter-spacing: 0;
|
|
50
|
+
letter-spacing: 0;
|
|
51
|
+
font-size: 1.25rem;
|
|
52
|
+
line-height: 1.5rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.c0 {
|
|
26
56
|
line-height: 5;
|
|
27
|
-
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (min-width:740px) {
|
|
60
|
+
.c0 {
|
|
61
|
+
font-size: 1.25rem;
|
|
62
|
+
line-height: 1.5rem;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media (min-width:1024px) {
|
|
67
|
+
.c0 {
|
|
68
|
+
font-size: 1.375rem;
|
|
69
|
+
line-height: 1.625rem;
|
|
70
|
+
}
|
|
28
71
|
}
|
|
29
72
|
|
|
30
73
|
<h3
|
|
31
74
|
className="c0"
|
|
32
75
|
color="inherit"
|
|
33
76
|
height="5"
|
|
34
|
-
size="s"
|
|
35
77
|
>
|
|
36
78
|
Heading 3 high
|
|
37
79
|
</h3>
|
|
@@ -39,10 +81,34 @@ exports[`renders high heading correctly 1`] = `
|
|
|
39
81
|
|
|
40
82
|
exports[`renders large heading correctly 1`] = `
|
|
41
83
|
.c0 {
|
|
42
|
-
font-size: 1.5rem;
|
|
43
|
-
line-height: 1.5rem;
|
|
44
|
-
text-transform: inherit;
|
|
45
84
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
85
|
+
font-weight: 700;
|
|
86
|
+
text-transform: inherit;
|
|
87
|
+
-webkit-letter-spacing: 0;
|
|
88
|
+
-moz-letter-spacing: 0;
|
|
89
|
+
-ms-letter-spacing: 0;
|
|
90
|
+
letter-spacing: 0;
|
|
91
|
+
font-size: 1.25rem;
|
|
92
|
+
line-height: 1.5rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.c0 {
|
|
96
|
+
font-size: 1.5rem;
|
|
97
|
+
line-height: normal;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (min-width:740px) {
|
|
101
|
+
.c0 {
|
|
102
|
+
font-size: 1.25rem;
|
|
103
|
+
line-height: 1.5rem;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (min-width:1024px) {
|
|
108
|
+
.c0 {
|
|
109
|
+
font-size: 1.375rem;
|
|
110
|
+
line-height: 1.625rem;
|
|
111
|
+
}
|
|
46
112
|
}
|
|
47
113
|
|
|
48
114
|
<h3
|
|
@@ -56,15 +122,35 @@ exports[`renders large heading correctly 1`] = `
|
|
|
56
122
|
|
|
57
123
|
exports[`renders xl paragraph with Anton font correctly 1`] = `
|
|
58
124
|
.c0 {
|
|
59
|
-
font-
|
|
60
|
-
|
|
125
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
126
|
+
font-weight: 400;
|
|
61
127
|
text-transform: inherit;
|
|
128
|
+
-webkit-letter-spacing: 0;
|
|
129
|
+
-moz-letter-spacing: 0;
|
|
130
|
+
-ms-letter-spacing: 0;
|
|
131
|
+
letter-spacing: 0;
|
|
132
|
+
font-size: 1rem;
|
|
133
|
+
line-height: 1.25rem;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.c0 {
|
|
137
|
+
font-size: 2rem;
|
|
62
138
|
line-height: normal;
|
|
63
139
|
font-family: 'Anton',Impact,sans-serif;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media (min-width:740px) {
|
|
143
|
+
.c0 {
|
|
144
|
+
font-size: 1rem;
|
|
145
|
+
line-height: 1.25rem;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@media (min-width:1024px) {
|
|
150
|
+
.c0 {
|
|
151
|
+
font-size: 1.125rem;
|
|
152
|
+
line-height: 1.375rem;
|
|
153
|
+
}
|
|
68
154
|
}
|
|
69
155
|
|
|
70
156
|
<p
|
|
@@ -78,12 +164,35 @@ exports[`renders xl paragraph with Anton font correctly 1`] = `
|
|
|
78
164
|
|
|
79
165
|
exports[`renders xl yellow paragraph correctly 1`] = `
|
|
80
166
|
.c0 {
|
|
81
|
-
|
|
82
|
-
font-
|
|
83
|
-
line-height: 2rem;
|
|
167
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
168
|
+
font-weight: 400;
|
|
84
169
|
text-transform: inherit;
|
|
170
|
+
-webkit-letter-spacing: 0;
|
|
171
|
+
-moz-letter-spacing: 0;
|
|
172
|
+
-ms-letter-spacing: 0;
|
|
173
|
+
letter-spacing: 0;
|
|
174
|
+
font-size: 1rem;
|
|
175
|
+
line-height: 1.25rem;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.c0 {
|
|
179
|
+
font-size: 2rem;
|
|
85
180
|
line-height: normal;
|
|
86
|
-
|
|
181
|
+
color: #FFE400;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@media (min-width:740px) {
|
|
185
|
+
.c0 {
|
|
186
|
+
font-size: 1rem;
|
|
187
|
+
line-height: 1.25rem;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@media (min-width:1024px) {
|
|
192
|
+
.c0 {
|
|
193
|
+
font-size: 1.125rem;
|
|
194
|
+
line-height: 1.375rem;
|
|
195
|
+
}
|
|
87
196
|
}
|
|
88
197
|
|
|
89
198
|
<p
|
|
@@ -17,11 +17,15 @@ it('renders correctly', () => {
|
|
|
17
17
|
|
|
18
18
|
expect(tree).toMatchInlineSnapshot(`
|
|
19
19
|
.c1 {
|
|
20
|
-
font-size: 1rem;
|
|
21
|
-
line-height: 1rem;
|
|
22
|
-
text-transform: inherit;
|
|
23
|
-
line-height: normal;
|
|
24
20
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
text-transform: inherit;
|
|
23
|
+
-webkit-letter-spacing: 0;
|
|
24
|
+
-moz-letter-spacing: 0;
|
|
25
|
+
-ms-letter-spacing: 0;
|
|
26
|
+
letter-spacing: 0;
|
|
27
|
+
font-size: 1rem;
|
|
28
|
+
line-height: 1.25rem;
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
.c0 {
|
|
@@ -39,7 +43,15 @@ it('renders correctly', () => {
|
|
|
39
43
|
|
|
40
44
|
.c2 {
|
|
41
45
|
margin-bottom: 0.5rem;
|
|
42
|
-
font-
|
|
46
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
text-transform: inherit;
|
|
49
|
+
-webkit-letter-spacing: 0;
|
|
50
|
+
-moz-letter-spacing: 0;
|
|
51
|
+
-ms-letter-spacing: 0;
|
|
52
|
+
letter-spacing: 0;
|
|
53
|
+
font-size: 1rem;
|
|
54
|
+
line-height: 1.25rem;
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
.c3 {
|
|
@@ -81,6 +93,34 @@ it('renders correctly', () => {
|
|
|
81
93
|
visibility: hidden;
|
|
82
94
|
}
|
|
83
95
|
|
|
96
|
+
@media (min-width:740px) {
|
|
97
|
+
.c1 {
|
|
98
|
+
font-size: 1rem;
|
|
99
|
+
line-height: 1.25rem;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (min-width:1024px) {
|
|
104
|
+
.c1 {
|
|
105
|
+
font-size: 1.125rem;
|
|
106
|
+
line-height: 1.375rem;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (min-width:740px) {
|
|
111
|
+
.c2 {
|
|
112
|
+
font-size: 1rem;
|
|
113
|
+
line-height: 1.25rem;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (min-width:1024px) {
|
|
118
|
+
.c2 {
|
|
119
|
+
font-size: 1rem;
|
|
120
|
+
line-height: 1.25rem;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
84
124
|
<label
|
|
85
125
|
className="c0"
|
|
86
126
|
htmlFor="Please leave your comment here"
|
|
@@ -93,7 +133,6 @@ it('renders correctly', () => {
|
|
|
93
133
|
"__html": "Label",
|
|
94
134
|
}
|
|
95
135
|
}
|
|
96
|
-
size="s"
|
|
97
136
|
/>
|
|
98
137
|
<textarea
|
|
99
138
|
aria-describedby="Please leave your comment here"
|