@comicrelief/component-library 8.26.0 → 8.28.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/Button/Button.test.js +62 -1
- package/dist/components/Atoms/ButtonWithStates/ButtonWithStates.js +4 -1
- package/dist/components/Atoms/Checkbox/Checkbox.js +1 -1
- package/dist/components/Atoms/Checkbox/Checkbox.test.js +160 -1
- package/dist/components/Atoms/Icons/Arrow.js +1 -1
- package/dist/components/Atoms/Icons/Chevron.js +1 -1
- package/dist/components/Atoms/Input/Input.js +3 -3
- package/dist/components/Atoms/Input/input.test.js +238 -2
- package/dist/components/Atoms/Label/Label.js +9 -1
- package/dist/components/Atoms/Link/Link.test.js +219 -4
- package/dist/components/Atoms/Logo/Logo.test.js +36 -1
- package/dist/components/Atoms/Pagination/Item/Item.js +1 -1
- package/dist/components/Atoms/Pagination/List/List.js +1 -1
- package/dist/components/Atoms/Pagination/Pagination.js +1 -1
- package/dist/components/Atoms/Pagination/Pagination.test.js +14 -14
- package/dist/components/Atoms/Picture/Picture.js +9 -2
- package/dist/components/Atoms/Picture/Picture.md +2 -1
- package/dist/components/Atoms/Picture/Picture.test.js +90 -2
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +178 -1
- package/dist/components/Atoms/RichText/RichText.test.js +14 -1
- package/dist/components/Atoms/SocialIcons/Icon/Icon.js +2 -2
- package/dist/components/Atoms/SocialIcons/Utils/Links.js +3 -3
- package/dist/components/Atoms/Text/Text.js +3 -3
- package/dist/components/Atoms/TextArea/TextArea.test.js +90 -1
- package/dist/components/Atoms/TextInputWithDropdown/TextInputWithDropdown.js +3 -3
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.js +1 -1
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +479 -2
- package/dist/components/Molecules/Card/Card.style.js +1 -1
- package/dist/components/Molecules/Chip/Chip.test.js +104 -1
- package/dist/components/Molecules/Descriptor/Descriptor.js +1 -1
- package/dist/components/Molecules/Descriptor/Descriptor.test.js +216 -1
- package/dist/components/Molecules/DoubleCopy/DoubleCopy.test.js +55 -1
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +148 -1
- package/dist/components/Molecules/Promo/_ProgressRing.js +5 -5
- package/dist/components/Molecules/SchoolLookup/SchoolLookup.js +1 -1
- package/dist/components/Molecules/SearchInput/SearchInput.test.js +190 -1
- package/dist/components/Molecules/SearchResult/SearchResult.js +1 -1
- package/dist/components/Molecules/ShareButton/ShareButton.js +3 -3
- package/dist/components/Molecules/ShareButton/ShareButton.test.js +112 -1
- package/dist/components/Molecules/SimpleSchoolLookup/SimpleSchoolLookup.js +1 -1
- package/dist/components/Molecules/SingleMessage/SingleMessage.js +4 -4
- package/dist/components/Molecules/SingleMessage/SingleMessage.style.js +2 -2
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.js +1 -1
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +8 -8
- package/dist/components/Molecules/VideoBanner/VideoBanner.test.js +18 -1
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +181 -1
- package/dist/components/Organisms/Donate/Donate.js +1 -1
- package/dist/components/Organisms/Donate/Donate.style.js +3 -1
- package/dist/components/Organisms/Donate/Form/Form.js +8 -8
- package/dist/components/Organisms/Donate/GivingSelector/GivingSelector.js +4 -4
- package/dist/components/Organisms/Donate/MoneyBuy/MoneyBuy.js +1 -1
- package/dist/components/Organisms/Footer/Footer.js +1 -1
- package/dist/components/Organisms/Footer/Nav/Nav.js +1 -1
- package/dist/components/Organisms/Header/HeaderNav/HeaderNav.js +2 -2
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +5 -5
- package/dist/components/Organisms/ImpactSlider/ImpactSlider.style.js +1 -1
- package/dist/components/Organisms/ImpactSlider/_ImpactMoneybuys.js +1 -1
- package/dist/components/Organisms/ImpactSlider/_utils.js +2 -2
- package/dist/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js +5 -5
- package/dist/components/Organisms/MarketingPreferencesDS/_OptInCheckbox.js +3 -3
- package/dist/components/Organisms/Membership/Form/Form.js +5 -5
- package/dist/components/Organisms/Membership/Membership.style.js +1 -1
- package/dist/components/Organisms/Membership/Membership.test.js +633 -1
- package/dist/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
- package/dist/components/Organisms/RichtextCarousel/RichtextCarousel.test.js +208 -1
- package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.test.js +341 -1
- package/dist/components/Organisms/WYMDCarousel/_utils.js +1 -1
- package/dist/theme/crTheme/colors.js +0 -8
- package/dist/theme/crTheme/linkStyles.js +4 -4
- package/dist/theme/shared/allBreakpoints.js +1 -1
- package/dist/theme/shared/fontFamilies.js +1 -1
- package/dist/utils/Membership.js +2 -2
- package/dist/utils/ShareButton/sharePopUpHelper.js +1 -1
- package/dist/utils/ShareButton/shareUrlHelper.js +2 -2
- package/dist/utils/internalLinkHelper.js +1 -1
- package/package.json +1 -1
- package/src/components/Atoms/Picture/Picture.md +2 -1
- package/src/theme/crTheme/colors.js +0 -8
|
@@ -18,7 +18,258 @@ it('renders article teaser correctly', () => {
|
|
|
18
18
|
smallImageWidth: "25%",
|
|
19
19
|
largeImageWidth: "100%"
|
|
20
20
|
})).toJSON();
|
|
21
|
-
expect(tree).toMatchInlineSnapshot(
|
|
21
|
+
expect(tree).toMatchInlineSnapshot(`
|
|
22
|
+
.c8 {
|
|
23
|
+
font-size: 0.75rem;
|
|
24
|
+
line-height: 0.75rem;
|
|
25
|
+
text-transform: inherit;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
line-height: normal;
|
|
28
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.c10 {
|
|
32
|
+
font-size: 2rem;
|
|
33
|
+
line-height: 2rem;
|
|
34
|
+
text-transform: uppercase;
|
|
35
|
+
font-weight: normal;
|
|
36
|
+
line-height: 2rem;
|
|
37
|
+
font-family: 'Anton',Impact,sans-serif;
|
|
38
|
+
-webkit-letter-spacing: 0.03rem;
|
|
39
|
+
-moz-letter-spacing: 0.03rem;
|
|
40
|
+
-ms-letter-spacing: 0.03rem;
|
|
41
|
+
letter-spacing: 0.03rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.c4 {
|
|
45
|
+
display: block;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
position: relative;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.c6 {
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
display: block;
|
|
55
|
+
object-fit: cover;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.c1 {
|
|
59
|
+
position: relative;
|
|
60
|
+
-webkit-text-decoration: none;
|
|
61
|
+
text-decoration: none;
|
|
62
|
+
display: inline;
|
|
63
|
+
line-height: 1.5rem;
|
|
64
|
+
color: #000000;
|
|
65
|
+
font-weight: normal;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.c1:hover {
|
|
69
|
+
color: #000000;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.c0 {
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 100%;
|
|
75
|
+
display: -webkit-box;
|
|
76
|
+
display: -webkit-flex;
|
|
77
|
+
display: -ms-flexbox;
|
|
78
|
+
display: flex;
|
|
79
|
+
background-color: #FFFFFF;
|
|
80
|
+
border-radius: 1rem;
|
|
81
|
+
box-shadow: 0px 0px 20px rgba(0,0,0,0.15);
|
|
82
|
+
-webkit-transition: all 0.2s;
|
|
83
|
+
transition: all 0.2s;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.c0:hover {
|
|
87
|
+
box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
|
|
88
|
+
-webkit-transform: translateY(-4px);
|
|
89
|
+
-ms-transform: translateY(-4px);
|
|
90
|
+
transform: translateY(-4px);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.c2 {
|
|
94
|
+
padding: 0;
|
|
95
|
+
display: -webkit-box;
|
|
96
|
+
display: -webkit-flex;
|
|
97
|
+
display: -ms-flexbox;
|
|
98
|
+
display: flex;
|
|
99
|
+
height: 100%;
|
|
100
|
+
-webkit-flex-direction: column;
|
|
101
|
+
-ms-flex-direction: column;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
-webkit-text-decoration: none;
|
|
104
|
+
text-decoration: none;
|
|
105
|
+
color: inherit;
|
|
106
|
+
width: 100%;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.c3 {
|
|
110
|
+
display: -webkit-box;
|
|
111
|
+
display: -webkit-flex;
|
|
112
|
+
display: -ms-flexbox;
|
|
113
|
+
display: flex;
|
|
114
|
+
-webkit-align-items: center;
|
|
115
|
+
-webkit-box-align: center;
|
|
116
|
+
-ms-flex-align: center;
|
|
117
|
+
align-items: center;
|
|
118
|
+
-webkit-box-pack: center;
|
|
119
|
+
-webkit-justify-content: center;
|
|
120
|
+
-ms-flex-pack: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
position: relative;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.c3 img {
|
|
126
|
+
border-radius: 1rem 1rem 0 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.c7 {
|
|
130
|
+
padding: 2rem;
|
|
131
|
+
height: 100%;
|
|
132
|
+
display: -webkit-box;
|
|
133
|
+
display: -webkit-flex;
|
|
134
|
+
display: -ms-flexbox;
|
|
135
|
+
display: flex;
|
|
136
|
+
-webkit-flex-direction: column;
|
|
137
|
+
-ms-flex-direction: column;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.c11 {
|
|
142
|
+
margin: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.c9 {
|
|
146
|
+
display: block;
|
|
147
|
+
margin-bottom: 1rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.c5 {
|
|
151
|
+
display: -webkit-box;
|
|
152
|
+
display: -webkit-flex;
|
|
153
|
+
display: -ms-flexbox;
|
|
154
|
+
display: flex;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
158
|
+
.c4 {
|
|
159
|
+
background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
160
|
+
background-size: cover;
|
|
161
|
+
background-position: center;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
166
|
+
.c6 {
|
|
167
|
+
visibility: hidden;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@media (min-width:740px) {
|
|
172
|
+
.c2 {
|
|
173
|
+
-webkit-flex-direction: row;
|
|
174
|
+
-ms-flex-direction: row;
|
|
175
|
+
flex-direction: row;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@media (min-width:1024px) {
|
|
180
|
+
.c2 {
|
|
181
|
+
-webkit-flex-direction: column;
|
|
182
|
+
-ms-flex-direction: column;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@media (min-width:740px) {
|
|
188
|
+
.c3 {
|
|
189
|
+
width: 45%;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.c3 img {
|
|
193
|
+
border-radius: 1rem 0 0 1rem;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (min-width:1024px) {
|
|
198
|
+
.c3 {
|
|
199
|
+
width: 100%;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.c3 img {
|
|
203
|
+
border-radius: 1rem 1rem 0 0;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@media (min-width:740px) {
|
|
208
|
+
.c7 {
|
|
209
|
+
width: 55%;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@media (min-width:1024px) {
|
|
214
|
+
.c7 {
|
|
215
|
+
width: 100%;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
<article
|
|
220
|
+
className="c0"
|
|
221
|
+
>
|
|
222
|
+
<a
|
|
223
|
+
className="c1 c2"
|
|
224
|
+
color="red"
|
|
225
|
+
href="/test"
|
|
226
|
+
target="_self"
|
|
227
|
+
type="standard"
|
|
228
|
+
>
|
|
229
|
+
<div
|
|
230
|
+
className="c3"
|
|
231
|
+
>
|
|
232
|
+
<div
|
|
233
|
+
className="c4 c5"
|
|
234
|
+
height="100%"
|
|
235
|
+
width="100%"
|
|
236
|
+
>
|
|
237
|
+
<img
|
|
238
|
+
alt="Image's description"
|
|
239
|
+
className="c6 lazyload"
|
|
240
|
+
data-lowsrc={null}
|
|
241
|
+
data-sizes="auto"
|
|
242
|
+
data-src="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
243
|
+
data-srcset="//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=200&h=150&q=50 200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=400&h=300&q=50 400w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=800&h=600&q=50 800w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1200&h=900&q=50 1200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1440&h=1080&q=50 1440w"
|
|
244
|
+
height="100%"
|
|
245
|
+
src="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
246
|
+
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
247
|
+
width="100%"
|
|
248
|
+
/>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
<div
|
|
252
|
+
className="c7"
|
|
253
|
+
>
|
|
254
|
+
<span
|
|
255
|
+
className="c8 c9"
|
|
256
|
+
color="inherit"
|
|
257
|
+
size="xs"
|
|
258
|
+
>
|
|
259
|
+
01 July 2019
|
|
260
|
+
</span>
|
|
261
|
+
<h3
|
|
262
|
+
className="c10 c11"
|
|
263
|
+
color="inherit"
|
|
264
|
+
height="2rem"
|
|
265
|
+
size="xl"
|
|
266
|
+
>
|
|
267
|
+
News article
|
|
268
|
+
</h3>
|
|
269
|
+
</div>
|
|
270
|
+
</a>
|
|
271
|
+
</article>
|
|
272
|
+
`);
|
|
22
273
|
});
|
|
23
274
|
it('renders press realese correctly', () => {
|
|
24
275
|
const tree = (0, _shallowWithTheme.default)( /*#__PURE__*/_react.default.createElement(_ArticleTeaser.default, {
|
|
@@ -29,5 +280,231 @@ it('renders press realese correctly', () => {
|
|
|
29
280
|
alt: "Image's description",
|
|
30
281
|
logoSize: "80px"
|
|
31
282
|
})).toJSON();
|
|
32
|
-
expect(tree).toMatchInlineSnapshot(
|
|
283
|
+
expect(tree).toMatchInlineSnapshot(`
|
|
284
|
+
.c8 {
|
|
285
|
+
font-size: 0.75rem;
|
|
286
|
+
line-height: 0.75rem;
|
|
287
|
+
text-transform: inherit;
|
|
288
|
+
font-weight: bold;
|
|
289
|
+
line-height: normal;
|
|
290
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.c10 {
|
|
294
|
+
font-size: 2rem;
|
|
295
|
+
line-height: 2rem;
|
|
296
|
+
text-transform: uppercase;
|
|
297
|
+
font-weight: normal;
|
|
298
|
+
line-height: 2rem;
|
|
299
|
+
font-family: 'Anton',Impact,sans-serif;
|
|
300
|
+
-webkit-letter-spacing: 0.03rem;
|
|
301
|
+
-moz-letter-spacing: 0.03rem;
|
|
302
|
+
-ms-letter-spacing: 0.03rem;
|
|
303
|
+
letter-spacing: 0.03rem;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.c4 {
|
|
307
|
+
display: block;
|
|
308
|
+
width: 80px;
|
|
309
|
+
height: 80px;
|
|
310
|
+
position: relative;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.c6 {
|
|
314
|
+
width: 80px;
|
|
315
|
+
height: 80px;
|
|
316
|
+
display: block;
|
|
317
|
+
object-fit: cover;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.c1 {
|
|
321
|
+
position: relative;
|
|
322
|
+
-webkit-text-decoration: none;
|
|
323
|
+
text-decoration: none;
|
|
324
|
+
display: inline;
|
|
325
|
+
line-height: 1.5rem;
|
|
326
|
+
color: #000000;
|
|
327
|
+
font-weight: normal;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.c1:hover {
|
|
331
|
+
color: #000000;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.c0 {
|
|
335
|
+
width: 100%;
|
|
336
|
+
height: 100%;
|
|
337
|
+
display: -webkit-box;
|
|
338
|
+
display: -webkit-flex;
|
|
339
|
+
display: -ms-flexbox;
|
|
340
|
+
display: flex;
|
|
341
|
+
background-color: #FFFFFF;
|
|
342
|
+
border-radius: 1rem;
|
|
343
|
+
box-shadow: 0px 0px 20px rgba(0,0,0,0.15);
|
|
344
|
+
-webkit-transition: all 0.2s;
|
|
345
|
+
transition: all 0.2s;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.c0:hover {
|
|
349
|
+
box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
|
|
350
|
+
-webkit-transform: translateY(-4px);
|
|
351
|
+
-ms-transform: translateY(-4px);
|
|
352
|
+
transform: translateY(-4px);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.c2 {
|
|
356
|
+
padding: 0;
|
|
357
|
+
display: -webkit-box;
|
|
358
|
+
display: -webkit-flex;
|
|
359
|
+
display: -ms-flexbox;
|
|
360
|
+
display: flex;
|
|
361
|
+
height: 100%;
|
|
362
|
+
-webkit-flex-direction: row;
|
|
363
|
+
-ms-flex-direction: row;
|
|
364
|
+
flex-direction: row;
|
|
365
|
+
-webkit-align-items: center;
|
|
366
|
+
-webkit-box-align: center;
|
|
367
|
+
-ms-flex-align: center;
|
|
368
|
+
align-items: center;
|
|
369
|
+
-webkit-text-decoration: none;
|
|
370
|
+
text-decoration: none;
|
|
371
|
+
color: inherit;
|
|
372
|
+
width: 100%;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.c3 {
|
|
376
|
+
display: -webkit-box;
|
|
377
|
+
display: -webkit-flex;
|
|
378
|
+
display: -ms-flexbox;
|
|
379
|
+
display: flex;
|
|
380
|
+
-webkit-align-items: center;
|
|
381
|
+
-webkit-box-align: center;
|
|
382
|
+
-ms-flex-align: center;
|
|
383
|
+
align-items: center;
|
|
384
|
+
-webkit-box-pack: center;
|
|
385
|
+
-webkit-justify-content: center;
|
|
386
|
+
-ms-flex-pack: center;
|
|
387
|
+
justify-content: center;
|
|
388
|
+
position: relative;
|
|
389
|
+
padding-left: 1rem;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.c3 img {
|
|
393
|
+
border-radius: 0;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.c7 {
|
|
397
|
+
padding: 2rem;
|
|
398
|
+
height: 100%;
|
|
399
|
+
display: -webkit-box;
|
|
400
|
+
display: -webkit-flex;
|
|
401
|
+
display: -ms-flexbox;
|
|
402
|
+
display: flex;
|
|
403
|
+
-webkit-flex-direction: column;
|
|
404
|
+
-ms-flex-direction: column;
|
|
405
|
+
flex-direction: column;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.c11 {
|
|
409
|
+
margin: 0;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.c9 {
|
|
413
|
+
display: block;
|
|
414
|
+
margin-bottom: 1rem;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.c5 {
|
|
418
|
+
display: -webkit-box;
|
|
419
|
+
display: -webkit-flex;
|
|
420
|
+
display: -ms-flexbox;
|
|
421
|
+
display: flex;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
425
|
+
.c4 {
|
|
426
|
+
background-image: url(mock.asset);
|
|
427
|
+
background-size: cover;
|
|
428
|
+
background-position: center;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
433
|
+
.c6 {
|
|
434
|
+
visibility: hidden;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
@media (min-width:740px) {
|
|
439
|
+
.c2 {
|
|
440
|
+
-webkit-flex-direction: row;
|
|
441
|
+
-ms-flex-direction: row;
|
|
442
|
+
flex-direction: row;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@media (min-width:1024px) {
|
|
447
|
+
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
@media (min-width:1024px) {
|
|
451
|
+
.c7 {
|
|
452
|
+
width: 100%;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
<article
|
|
457
|
+
className="c0"
|
|
458
|
+
>
|
|
459
|
+
<a
|
|
460
|
+
className="c1 c2"
|
|
461
|
+
color="red"
|
|
462
|
+
href="/test"
|
|
463
|
+
target="_self"
|
|
464
|
+
type="standard"
|
|
465
|
+
>
|
|
466
|
+
<div
|
|
467
|
+
className="c3"
|
|
468
|
+
>
|
|
469
|
+
<div
|
|
470
|
+
className="c4 c5"
|
|
471
|
+
height="80px"
|
|
472
|
+
width="80px"
|
|
473
|
+
>
|
|
474
|
+
<img
|
|
475
|
+
alt="Image's description"
|
|
476
|
+
className="c6 lazyload"
|
|
477
|
+
data-lowsrc="mock.asset"
|
|
478
|
+
data-sizes="auto"
|
|
479
|
+
data-src="mock.asset"
|
|
480
|
+
data-srcset="mock.asset"
|
|
481
|
+
height="80px"
|
|
482
|
+
src="mock.asset"
|
|
483
|
+
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
484
|
+
width="80px"
|
|
485
|
+
/>
|
|
486
|
+
</div>
|
|
487
|
+
</div>
|
|
488
|
+
<div
|
|
489
|
+
className="c7"
|
|
490
|
+
>
|
|
491
|
+
<span
|
|
492
|
+
className="c8 c9"
|
|
493
|
+
color="inherit"
|
|
494
|
+
size="xs"
|
|
495
|
+
>
|
|
496
|
+
01 July 2019
|
|
497
|
+
</span>
|
|
498
|
+
<h3
|
|
499
|
+
className="c10 c11"
|
|
500
|
+
color="inherit"
|
|
501
|
+
height="2rem"
|
|
502
|
+
size="xl"
|
|
503
|
+
>
|
|
504
|
+
Press Release
|
|
505
|
+
</h3>
|
|
506
|
+
</div>
|
|
507
|
+
</a>
|
|
508
|
+
</article>
|
|
509
|
+
`);
|
|
33
510
|
});
|
|
@@ -11,7 +11,7 @@ var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
|
11
11
|
const Container = exports.Container = _styledComponents.default.div.withConfig({
|
|
12
12
|
displayName: "Cardstyle__Container",
|
|
13
13
|
componentId: "sc-cxn4co-0"
|
|
14
|
-
})(["position:relative;display:flex;height:100%;border-radius:", ";overflow:hidden;background:", ";@media ", "{flex-direction:", ";gap:", ";background:", ";}@media ", "{flex-direction:", ";gap:", ";background:", ";}@media ", "{flex-direction:column;background:", ";}"], props => props.squaredCorners ? '0' :
|
|
14
|
+
})(["position:relative;display:flex;height:100%;border-radius:", ";overflow:hidden;background:", ";@media ", "{flex-direction:", ";gap:", ";background:", ";}@media ", "{flex-direction:", ";gap:", ";background:", ";}@media ", "{flex-direction:column;background:", ";}"], props => props.squaredCorners ? '0' : `${(0, _spacing.default)('md')}`, _ref => {
|
|
15
15
|
let {
|
|
16
16
|
theme,
|
|
17
17
|
backgroundColor
|
|
@@ -11,5 +11,108 @@ it("renders article teaser correctly", () => {
|
|
|
11
11
|
category: "Gender Justice",
|
|
12
12
|
handleToggle: handleToggle
|
|
13
13
|
})).toJSON();
|
|
14
|
-
expect(tree).toMatchInlineSnapshot(
|
|
14
|
+
expect(tree).toMatchInlineSnapshot(`
|
|
15
|
+
.c0 {
|
|
16
|
+
display: -webkit-box;
|
|
17
|
+
display: -webkit-flex;
|
|
18
|
+
display: -ms-flexbox;
|
|
19
|
+
display: flex;
|
|
20
|
+
-webkit-align-items: center;
|
|
21
|
+
-webkit-box-align: center;
|
|
22
|
+
-ms-flex-align: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
width: auto;
|
|
25
|
+
height: 48px;
|
|
26
|
+
border-radius: 2rem;
|
|
27
|
+
background-color: #d5d5d5;
|
|
28
|
+
margin: 0.5rem 0.5rem 0 0;
|
|
29
|
+
padding: 4px;
|
|
30
|
+
padding-right: 1rem;
|
|
31
|
+
-webkit-flex: 0 0 auto;
|
|
32
|
+
-ms-flex: 0 0 auto;
|
|
33
|
+
flex: 0 0 auto;
|
|
34
|
+
position: relative;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.c2 {
|
|
38
|
+
display: block;
|
|
39
|
+
position: absolute;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
opacity: 0.2;
|
|
43
|
+
border-radius: 2rem;
|
|
44
|
+
left: 0;
|
|
45
|
+
top: 0;
|
|
46
|
+
right: 0;
|
|
47
|
+
bottom: 0;
|
|
48
|
+
z-index: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.c2:hover {
|
|
52
|
+
background: #E1E2E3;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.c1 {
|
|
56
|
+
display: block;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
opacity: 0;
|
|
59
|
+
position: absolute;
|
|
60
|
+
left: 0px;
|
|
61
|
+
width: 40px;
|
|
62
|
+
height: 40px;
|
|
63
|
+
margin: 0;
|
|
64
|
+
border: 1px solid #666;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.c1 + span {
|
|
68
|
+
background: url(mock.asset) no-repeat center;
|
|
69
|
+
background-size: 24px;
|
|
70
|
+
margin-right: 1rem;
|
|
71
|
+
width: 40px;
|
|
72
|
+
height: 40px;
|
|
73
|
+
border-radius: 50%;
|
|
74
|
+
background-color: #969598;
|
|
75
|
+
float: left;
|
|
76
|
+
z-index: 2;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.c1:checked ~ span {
|
|
80
|
+
background-size: 24px;
|
|
81
|
+
background-color: #6F3AAB;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.c1:focus + span {
|
|
85
|
+
border-color: #666;
|
|
86
|
+
border-width: 3px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.c1:focus + span {
|
|
90
|
+
border-color: #666;
|
|
91
|
+
border-width: 3px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (min-width:740px) {
|
|
95
|
+
.c0 {
|
|
96
|
+
margin: 1rem 1rem 0 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
<label
|
|
101
|
+
className="c0"
|
|
102
|
+
>
|
|
103
|
+
<input
|
|
104
|
+
checked={false}
|
|
105
|
+
className="c1"
|
|
106
|
+
color="purple"
|
|
107
|
+
onChange={[Function]}
|
|
108
|
+
type="checkbox"
|
|
109
|
+
value="Gender Justice"
|
|
110
|
+
/>
|
|
111
|
+
<span />
|
|
112
|
+
<span
|
|
113
|
+
className="c2"
|
|
114
|
+
/>
|
|
115
|
+
Gender Justice
|
|
116
|
+
</label>
|
|
117
|
+
`);
|
|
15
118
|
});
|