@comicrelief/component-library 8.28.0 → 8.29.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/Link/Link.js +3 -1
- package/dist/components/Atoms/Link/Link.md +5 -0
- package/dist/components/Atoms/Link/Link.style.js +21 -16
- package/dist/components/Atoms/Picture/Picture.js +24 -16
- package/dist/components/Atoms/Picture/Picture.test.js +2 -24
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -28
- package/dist/components/Molecules/Card/__snapshots__/Card.test.js.snap +0 -6
- package/dist/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +0 -28
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +0 -8
- package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +0 -28
- package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -24
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +0 -78
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +0 -14
- package/dist/components/Organisms/Membership/Membership.test.js +0 -6
- package/dist/theme/crTheme/colors.js +46 -29
- package/package.json +1 -1
- package/src/components/Atoms/Link/Link.js +4 -1
- package/src/components/Atoms/Link/Link.md +5 -0
- package/src/components/Atoms/Link/Link.style.js +1 -1
- package/src/components/Atoms/Picture/Picture.js +19 -21
- package/src/components/Atoms/Picture/Picture.test.js +7 -29
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -28
- package/src/components/Molecules/Card/__snapshots__/Card.test.js.snap +0 -6
- package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +0 -28
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +0 -8
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +0 -28
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -24
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +0 -78
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +0 -14
- package/src/components/Organisms/Membership/Membership.test.js +0 -6
- package/src/theme/crTheme/colors.js +61 -29
|
@@ -23,6 +23,7 @@ const Link = _ref => {
|
|
|
23
23
|
underline = true,
|
|
24
24
|
icon = null,
|
|
25
25
|
iconFirst = false,
|
|
26
|
+
fullWidth = false,
|
|
26
27
|
...rest
|
|
27
28
|
} = _ref;
|
|
28
29
|
const [documentHost, setDocumentHost] = (0, _react.useState)('');
|
|
@@ -61,7 +62,8 @@ const Link = _ref => {
|
|
|
61
62
|
type: type,
|
|
62
63
|
home: home,
|
|
63
64
|
iconFirst: iconFirst,
|
|
64
|
-
underline: underline
|
|
65
|
+
underline: underline,
|
|
66
|
+
fullWidth: fullWidth
|
|
65
67
|
}), children, window === '_blank' && /*#__PURE__*/_react.default.createElement(_Link.HelperText, null, "(opens in new window)"), hasIcon && /*#__PURE__*/_react.default.createElement(_Link.IconWrapper, {
|
|
66
68
|
type: type
|
|
67
69
|
}, icon));
|
|
@@ -210,6 +210,11 @@ import { External, Download, Favourite, Internal, Chevron, Arrow, AtSign } from
|
|
|
210
210
|
White button
|
|
211
211
|
</Link>
|
|
212
212
|
</div>
|
|
213
|
+
<div style={{ display: 'block', marginTop: '10px' }}>
|
|
214
|
+
<Link color="red" href="/test" target="blank" type="button" fullWidth>
|
|
215
|
+
Full-width red button
|
|
216
|
+
</Link>
|
|
217
|
+
</div>
|
|
213
218
|
</div>
|
|
214
219
|
</div>
|
|
215
220
|
```
|
|
@@ -9,7 +9,7 @@ exports.default = exports.IconWrapper = exports.HelperText = void 0;
|
|
|
9
9
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
10
10
|
var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
11
11
|
var _hideVisually = _interopRequireDefault(require("../../../theme/shared/hideVisually"));
|
|
12
|
-
const buttonStyle = () => (0, _styledComponents.css)(["display:inline-flex;position:relative;padding:0.5rem 1.25rem;text-decoration:none;font-weight:700;font-size:", ";border-radius:2rem;transition:all 0.3s;height:3.125rem;width:100%;justify-content:center;align-items:center;cursor:pointer;", ";", ";@media ", "{width:
|
|
12
|
+
const buttonStyle = () => (0, _styledComponents.css)(["display:inline-flex;position:relative;padding:0.5rem 1.25rem;text-decoration:none;font-weight:700;font-size:", ";border-radius:2rem;transition:all 0.3s;height:3.125rem;width:100%;justify-content:center;align-items:center;cursor:pointer;", ";", ";@media ", "{width:", ";}@media ", "{", ";}"], _ref => {
|
|
13
13
|
let {
|
|
14
14
|
theme
|
|
15
15
|
} = _ref;
|
|
@@ -33,55 +33,60 @@ const buttonStyle = () => (0, _styledComponents.css)(["display:inline-flex;posit
|
|
|
33
33
|
return theme.allBreakpoints('M');
|
|
34
34
|
}, _ref5 => {
|
|
35
35
|
let {
|
|
36
|
-
|
|
36
|
+
fullWidth
|
|
37
37
|
} = _ref5;
|
|
38
|
-
return
|
|
38
|
+
return fullWidth ? '100%' : 'auto';
|
|
39
39
|
}, _ref6 => {
|
|
40
40
|
let {
|
|
41
|
-
color,
|
|
42
41
|
theme
|
|
43
42
|
} = _ref6;
|
|
43
|
+
return theme.allBreakpoints('L');
|
|
44
|
+
}, _ref7 => {
|
|
45
|
+
let {
|
|
46
|
+
color,
|
|
47
|
+
theme
|
|
48
|
+
} = _ref7;
|
|
44
49
|
return color ? theme.buttonColors(color) : theme.buttonColors('red');
|
|
45
50
|
});
|
|
46
|
-
const linkStyle = () => (0, _styledComponents.css)(["position:relative;text-decoration:none;display:inline;line-height:", ";", ";"],
|
|
51
|
+
const linkStyle = () => (0, _styledComponents.css)(["position:relative;text-decoration:none;display:inline;line-height:", ";", ";"], _ref8 => {
|
|
47
52
|
let {
|
|
48
53
|
theme
|
|
49
|
-
} =
|
|
54
|
+
} = _ref8;
|
|
50
55
|
return theme.fontSize('l');
|
|
51
|
-
},
|
|
56
|
+
}, _ref9 => {
|
|
52
57
|
let {
|
|
53
58
|
type,
|
|
54
59
|
theme,
|
|
55
60
|
underline
|
|
56
|
-
} =
|
|
61
|
+
} = _ref9;
|
|
57
62
|
return type ? theme.linkStyles(type, underline) : theme.linkStyles('standard', underline);
|
|
58
63
|
});
|
|
59
64
|
const IconWrapper = exports.IconWrapper = _styledComponents.default.span.withConfig({
|
|
60
65
|
displayName: "Linkstyle__IconWrapper",
|
|
61
66
|
componentId: "sc-t360tr-0"
|
|
62
|
-
})(["display:inline-flex;margin-left:", ";align-self:center;right:", ";", ";@media ", "{width:auto;right:auto;position:relative;", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('m'),
|
|
67
|
+
})(["display:inline-flex;margin-left:", ";align-self:center;right:", ";", ";@media ", "{width:auto;right:auto;position:relative;", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('m'), _ref10 => {
|
|
63
68
|
let {
|
|
64
69
|
type
|
|
65
|
-
} =
|
|
70
|
+
} = _ref10;
|
|
66
71
|
return type === 'standard' && (0, _styledComponents.css)(["position:absolute;right:-2rem;top:0;bottom:0;"]);
|
|
67
|
-
},
|
|
72
|
+
}, _ref11 => {
|
|
68
73
|
let {
|
|
69
74
|
theme
|
|
70
|
-
} =
|
|
75
|
+
} = _ref11;
|
|
71
76
|
return theme.allBreakpoints('M');
|
|
72
|
-
},
|
|
77
|
+
}, _ref12 => {
|
|
73
78
|
let {
|
|
74
79
|
type
|
|
75
|
-
} =
|
|
80
|
+
} = _ref12;
|
|
76
81
|
return type === 'standard' && (0, _styledComponents.css)(["position:absolute;right:-2rem;top:0;bottom:0;"]);
|
|
77
82
|
});
|
|
78
83
|
const StyledLink = _styledComponents.default.a.withConfig({
|
|
79
84
|
displayName: "Linkstyle__StyledLink",
|
|
80
85
|
componentId: "sc-t360tr-1"
|
|
81
|
-
})(["", " ", ";"], props => props.type === 'button' ? buttonStyle : linkStyle,
|
|
86
|
+
})(["", " ", ";"], props => props.type === 'button' ? buttonStyle : linkStyle, _ref13 => {
|
|
82
87
|
let {
|
|
83
88
|
iconFirst
|
|
84
|
-
} =
|
|
89
|
+
} = _ref13;
|
|
85
90
|
return iconFirst && (0, _styledComponents.css)(["flex-direction:row-reverse;span[type=\"button\"]{margin-left:0;margin-right:1rem;}"]);
|
|
86
91
|
});
|
|
87
92
|
const HelperText = exports.HelperText = _styledComponents.default.span.withConfig({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _react =
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
11
|
var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
12
12
|
require("lazysizes");
|
|
@@ -18,14 +18,10 @@ const Wrapper = _styledComponents.default.div.withConfig({
|
|
|
18
18
|
componentId: "sc-1x3z81z-0"
|
|
19
19
|
})(["", ";display:block;width:", ";height:", ";position:relative;", ";"], _ref => {
|
|
20
20
|
let {
|
|
21
|
+
objFitState,
|
|
21
22
|
nonObjFitImage
|
|
22
23
|
} = _ref;
|
|
23
|
-
return
|
|
24
|
-
background-image: url(${nonObjFitImage});
|
|
25
|
-
background-size: cover;
|
|
26
|
-
background-position: center;
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
24
|
+
return !objFitState && nonObjFitImage && `background-image: url(${nonObjFitImage}); background-size: cover; background-position: center;`;
|
|
29
25
|
}, props => props.width ? props.width : '100%', props => props.height ? props.height : '100%', _ref2 => {
|
|
30
26
|
let {
|
|
31
27
|
isBackgroundImage
|
|
@@ -35,13 +31,12 @@ const Wrapper = _styledComponents.default.div.withConfig({
|
|
|
35
31
|
const Image = _styledComponents.default.img.withConfig({
|
|
36
32
|
displayName: "Picture__Image",
|
|
37
33
|
componentId: "sc-1x3z81z-1"
|
|
38
|
-
})(["width:", ";height:", ";display:block;object-fit:", ";", "
|
|
34
|
+
})(["width:", ";height:", ";display:block;object-fit:", ";", ";", " ", " ", ""], props => props.width ? props.width : '100%', props => props.height ? props.height : 'auto', props => props.objectFit === 'none' && 'none' || props.objectFit === 'cover' && 'cover' || props.objectFit === 'contain' && 'contain', _ref3 => {
|
|
39
35
|
let {
|
|
40
|
-
objectFit
|
|
36
|
+
objectFit,
|
|
37
|
+
objFitState
|
|
41
38
|
} = _ref3;
|
|
42
|
-
return objectFit !== 'none' &&
|
|
43
|
-
visibility: hidden;
|
|
44
|
-
`;
|
|
39
|
+
return objectFit !== 'none' && !objFitState && 'visibility: hidden;';
|
|
45
40
|
}, _ref4 => {
|
|
46
41
|
let {
|
|
47
42
|
smallBreakpointRowLayout
|
|
@@ -95,7 +90,15 @@ const Picture = _ref11 => {
|
|
|
95
90
|
mediumBreakpointRowLayout = null,
|
|
96
91
|
...rest
|
|
97
92
|
} = _ref11;
|
|
93
|
+
const document = typeof window !== 'undefined' ? window.document : null;
|
|
94
|
+
const [objFitState, setObjFitState] = (0, _react.useState)(true);
|
|
98
95
|
let nonObjFitImage = null;
|
|
96
|
+
(0, _react.useEffect)(() => {
|
|
97
|
+
// Once document is available, determine if this browser supports object-fit
|
|
98
|
+
if ('objectFit' in document.documentElement.style === false) {
|
|
99
|
+
setObjFitState(false);
|
|
100
|
+
}
|
|
101
|
+
}, [document]);
|
|
99
102
|
|
|
100
103
|
// Determine which image will be used for the nonObjectFit fallback
|
|
101
104
|
if (image) {
|
|
@@ -110,14 +113,16 @@ const Picture = _ref11 => {
|
|
|
110
113
|
image: image,
|
|
111
114
|
images: images,
|
|
112
115
|
isBackgroundImage: isBackgroundImage,
|
|
113
|
-
nonObjFitImage: nonObjFitImage
|
|
116
|
+
nonObjFitImage: nonObjFitImage,
|
|
117
|
+
objFitState: objFitState
|
|
114
118
|
}, rest), /*#__PURE__*/_react.default.createElement(Image, {
|
|
115
119
|
alt: alt,
|
|
116
120
|
height: height,
|
|
117
121
|
width: width,
|
|
118
122
|
objectFit: objectFit,
|
|
119
123
|
"data-src": image,
|
|
120
|
-
className: "lazyload"
|
|
124
|
+
className: "lazyload",
|
|
125
|
+
objFitState: objFitState
|
|
121
126
|
}));
|
|
122
127
|
}
|
|
123
128
|
return /*#__PURE__*/_react.default.createElement(Wrapper, Object.assign({
|
|
@@ -125,9 +130,11 @@ const Picture = _ref11 => {
|
|
|
125
130
|
width: width,
|
|
126
131
|
image: image,
|
|
127
132
|
images: images,
|
|
133
|
+
setObjFitState: setObjFitState,
|
|
128
134
|
className: "lazyload",
|
|
129
135
|
isBackgroundImage: isBackgroundImage,
|
|
130
|
-
nonObjFitImage: nonObjFitImage
|
|
136
|
+
nonObjFitImage: nonObjFitImage,
|
|
137
|
+
objFitState: objFitState
|
|
131
138
|
}, rest), /*#__PURE__*/_react.default.createElement(Image, {
|
|
132
139
|
alt: alt,
|
|
133
140
|
height: height,
|
|
@@ -140,6 +147,7 @@ const Picture = _ref11 => {
|
|
|
140
147
|
"data-sizes": "auto",
|
|
141
148
|
"data-lowsrc": imageLow,
|
|
142
149
|
className: "lazyload",
|
|
150
|
+
objFitState: objFitState,
|
|
143
151
|
smallBreakpointRowLayout: smallBreakpointRowLayout,
|
|
144
152
|
mediumBreakpointRowLayout: mediumBreakpointRowLayout
|
|
145
153
|
}));
|
|
@@ -6,7 +6,7 @@ require("jest-styled-components");
|
|
|
6
6
|
var _shallowWithTheme = _interopRequireDefault(require("../../../../tests/hoc/shallowWithTheme"));
|
|
7
7
|
var _Picture = _interopRequireDefault(require("./Picture"));
|
|
8
8
|
var _data = require("../../../styleguide/data/data");
|
|
9
|
-
it(
|
|
9
|
+
it("renders correctly", () => {
|
|
10
10
|
const tree = (0, _shallowWithTheme.default)( /*#__PURE__*/_react.default.createElement(_Picture.default, {
|
|
11
11
|
images: _data.defaultData.images,
|
|
12
12
|
image: _data.defaultData.image,
|
|
@@ -27,14 +27,6 @@ it('renders correctly', () => {
|
|
|
27
27
|
object-fit: none;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
31
|
-
.c0 {
|
|
32
|
-
background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
33
|
-
background-size: cover;
|
|
34
|
-
background-position: center;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
30
|
<div
|
|
39
31
|
className="c0 lazyload"
|
|
40
32
|
height="auto"
|
|
@@ -55,7 +47,7 @@ it('renders correctly', () => {
|
|
|
55
47
|
</div>
|
|
56
48
|
`);
|
|
57
49
|
});
|
|
58
|
-
it(
|
|
50
|
+
it("renders correctly with custom props", () => {
|
|
59
51
|
const tree = (0, _shallowWithTheme.default)( /*#__PURE__*/_react.default.createElement(_Picture.default, {
|
|
60
52
|
images: _data.defaultData.images,
|
|
61
53
|
image: _data.defaultData.image,
|
|
@@ -79,20 +71,6 @@ it('renders correctly with custom props', () => {
|
|
|
79
71
|
object-fit: cover;
|
|
80
72
|
}
|
|
81
73
|
|
|
82
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
83
|
-
.c0 {
|
|
84
|
-
background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
85
|
-
background-size: cover;
|
|
86
|
-
background-position: center;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
91
|
-
.c1 {
|
|
92
|
-
visibility: hidden;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
74
|
<div
|
|
97
75
|
className="c0 lazyload"
|
|
98
76
|
height="100px"
|
|
@@ -154,20 +154,6 @@ it('renders article teaser correctly', () => {
|
|
|
154
154
|
display: flex;
|
|
155
155
|
}
|
|
156
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
157
|
@media (min-width:740px) {
|
|
172
158
|
.c2 {
|
|
173
159
|
-webkit-flex-direction: row;
|
|
@@ -421,20 +407,6 @@ it('renders press realese correctly', () => {
|
|
|
421
407
|
display: flex;
|
|
422
408
|
}
|
|
423
409
|
|
|
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
410
|
@media (min-width:740px) {
|
|
439
411
|
.c2 {
|
|
440
412
|
-webkit-flex-direction: row;
|
|
@@ -189,12 +189,6 @@ exports[`renders correctly with no body 1`] = `
|
|
|
189
189
|
height: auto;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
193
|
-
.c3 {
|
|
194
|
-
visibility: hidden;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
192
|
@media (min-width:0px) {
|
|
199
193
|
.c0 {
|
|
200
194
|
-webkit-flex-direction: column;
|
|
@@ -119,20 +119,6 @@ exports[`renders Column view correctly 1`] = `
|
|
|
119
119
|
z-index: 2;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
123
|
-
.c3 {
|
|
124
|
-
background-image: url(//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
125
|
-
background-size: cover;
|
|
126
|
-
background-position: center;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
131
|
-
.c4 {
|
|
132
|
-
visibility: hidden;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
122
|
@media (min-width:740px) {
|
|
137
123
|
.c8 {
|
|
138
124
|
width: auto;
|
|
@@ -391,20 +377,6 @@ exports[`renders correctly 1`] = `
|
|
|
391
377
|
z-index: 2;
|
|
392
378
|
}
|
|
393
379
|
|
|
394
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
395
|
-
.c3 {
|
|
396
|
-
background-image: url(//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
397
|
-
background-size: cover;
|
|
398
|
-
background-position: center;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
403
|
-
.c4 {
|
|
404
|
-
visibility: hidden;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
380
|
@media (min-width:740px) {
|
|
409
381
|
.c8 {
|
|
410
382
|
width: auto;
|
|
@@ -115,14 +115,6 @@ it('renders correctly', () => {
|
|
|
115
115
|
background-color: #E52630;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
119
|
-
.c2 {
|
|
120
|
-
background-image: url(//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
121
|
-
background-size: cover;
|
|
122
|
-
background-position: center;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
118
|
@media (min-width:740px) {
|
|
127
119
|
.c6 {
|
|
128
120
|
font-size: 1rem;
|
|
@@ -153,20 +153,6 @@ exports[`renders Promo correctly 1`] = `
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
157
|
-
.c2 {
|
|
158
|
-
background-image: url(../promo.jpg);
|
|
159
|
-
background-size: cover;
|
|
160
|
-
background-position: center;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
165
|
-
.c3 {
|
|
166
|
-
visibility: hidden;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
156
|
@media (min-width:740px) {
|
|
171
157
|
.c9 {
|
|
172
158
|
width: auto;
|
|
@@ -445,20 +431,6 @@ exports[`renders Promo correctly end position 1`] = `
|
|
|
445
431
|
}
|
|
446
432
|
}
|
|
447
433
|
|
|
448
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
449
|
-
.c2 {
|
|
450
|
-
background-image: url(../promo.jpg);
|
|
451
|
-
background-size: cover;
|
|
452
|
-
background-position: center;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
457
|
-
.c3 {
|
|
458
|
-
visibility: hidden;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
|
|
462
434
|
@media (min-width:740px) {
|
|
463
435
|
.c9 {
|
|
464
436
|
width: auto;
|
|
@@ -97,12 +97,6 @@ exports[`renders correctly in minimalist form 1`] = `
|
|
|
97
97
|
margin: 0;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
101
|
-
.c5 {
|
|
102
|
-
visibility: hidden;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
100
|
@media (min-width:740px) {
|
|
107
101
|
.c2 {
|
|
108
102
|
-webkit-flex-direction: row;
|
|
@@ -285,12 +279,6 @@ exports[`renders correctly with copy 1`] = `
|
|
|
285
279
|
}
|
|
286
280
|
}
|
|
287
281
|
|
|
288
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
289
|
-
.c5 {
|
|
290
|
-
visibility: hidden;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
282
|
@media (min-width:740px) {
|
|
295
283
|
.c2 {
|
|
296
284
|
-webkit-flex-direction: row;
|
|
@@ -464,12 +452,6 @@ exports[`renders correctly with date 1`] = `
|
|
|
464
452
|
margin: 0;
|
|
465
453
|
}
|
|
466
454
|
|
|
467
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
468
|
-
.c5 {
|
|
469
|
-
visibility: hidden;
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
|
|
473
455
|
@media (min-width:740px) {
|
|
474
456
|
.c2 {
|
|
475
457
|
-webkit-flex-direction: row;
|
|
@@ -637,12 +619,6 @@ exports[`renders correctly with date and type 1`] = `
|
|
|
637
619
|
margin: 0;
|
|
638
620
|
}
|
|
639
621
|
|
|
640
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
641
|
-
.c5 {
|
|
642
|
-
visibility: hidden;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
|
|
646
622
|
@media (min-width:740px) {
|
|
647
623
|
.c2 {
|
|
648
624
|
-webkit-flex-direction: row;
|
|
@@ -65,20 +65,6 @@ exports[`renders Single Message with 100% vertical height image correctly 1`] =
|
|
|
65
65
|
z-index: 1;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
69
|
-
.c3 {
|
|
70
|
-
background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
71
|
-
background-size: cover;
|
|
72
|
-
background-position: center;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
77
|
-
.c4 {
|
|
78
|
-
visibility: hidden;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
68
|
@media (min-width:740px) {
|
|
83
69
|
.c0 {
|
|
84
70
|
-webkit-flex-direction: row;
|
|
@@ -292,20 +278,6 @@ exports[`renders Single Message with Image correctly 1`] = `
|
|
|
292
278
|
z-index: 1;
|
|
293
279
|
}
|
|
294
280
|
|
|
295
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
296
|
-
.c3 {
|
|
297
|
-
background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
298
|
-
background-size: cover;
|
|
299
|
-
background-position: center;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
304
|
-
.c4 {
|
|
305
|
-
visibility: hidden;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
281
|
@media (min-width:740px) {
|
|
310
282
|
.c8 {
|
|
311
283
|
width: auto;
|
|
@@ -510,20 +482,6 @@ exports[`renders Single Message with double image correctly 1`] = `
|
|
|
510
482
|
z-index: 1;
|
|
511
483
|
}
|
|
512
484
|
|
|
513
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
514
|
-
.c3 {
|
|
515
|
-
background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
516
|
-
background-size: cover;
|
|
517
|
-
background-position: center;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
522
|
-
.c4 {
|
|
523
|
-
visibility: hidden;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
485
|
@media (min-width:740px) {
|
|
528
486
|
.c0 {
|
|
529
487
|
-webkit-flex-direction: row;
|
|
@@ -778,20 +736,6 @@ exports[`renders Single Message with full width correctly 1`] = `
|
|
|
778
736
|
z-index: 1;
|
|
779
737
|
}
|
|
780
738
|
|
|
781
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
782
|
-
.c3 {
|
|
783
|
-
background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
784
|
-
background-size: cover;
|
|
785
|
-
background-position: center;
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
790
|
-
.c4 {
|
|
791
|
-
visibility: hidden;
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
|
|
795
739
|
@media (min-width:740px) {
|
|
796
740
|
.c8 {
|
|
797
741
|
width: auto;
|
|
@@ -996,20 +940,6 @@ exports[`renders Single Message with full width image and no text correctly 1`]
|
|
|
996
940
|
z-index: 1;
|
|
997
941
|
}
|
|
998
942
|
|
|
999
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
1000
|
-
.c3 {
|
|
1001
|
-
background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
1002
|
-
background-size: cover;
|
|
1003
|
-
background-position: center;
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
1008
|
-
.c4 {
|
|
1009
|
-
visibility: hidden;
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
943
|
@media (min-width:740px) {
|
|
1014
944
|
|
|
1015
945
|
}
|
|
@@ -1136,14 +1066,6 @@ exports[`renders Single Message with no Image correctly 1`] = `
|
|
|
1136
1066
|
padding: 1rem;
|
|
1137
1067
|
}
|
|
1138
1068
|
|
|
1139
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
1140
|
-
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
1144
|
-
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
1069
|
@media (min-width:740px) {
|
|
1148
1070
|
|
|
1149
1071
|
}
|
package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap
CHANGED
|
@@ -153,20 +153,6 @@ exports[`renders correctly 1`] = `
|
|
|
153
153
|
right: 1.5rem;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
@supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
|
|
157
|
-
.c3 {
|
|
158
|
-
background-image: url(//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
|
|
159
|
-
background-size: cover;
|
|
160
|
-
background-position: center;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
165
|
-
.c4 {
|
|
166
|
-
visibility: hidden;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
156
|
@media (min-width:740px) {
|
|
171
157
|
.c12 {
|
|
172
158
|
width: auto;
|