@comicrelief/component-library 8.25.7 → 8.26.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/Picture/Picture.js +9 -24
- package/dist/components/Atoms/Picture/Picture.test.js +4 -4
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +2 -2
- package/dist/components/Molecules/Card/__snapshots__/Card.test.js.snap +6 -0
- package/dist/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +28 -0
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +1 -1
- package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +28 -0
- package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +24 -0
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +78 -0
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +14 -0
- package/dist/components/Organisms/Donate/Donate.js +1 -2
- package/dist/components/Organisms/Donate/GivingSelector/GivingSelector.js +2 -2
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +4 -8
- package/dist/components/Organisms/Membership/Membership.test.js +1 -1
- package/package.json +1 -1
- package/src/components/Atoms/Picture/Picture.js +21 -19
- package/src/components/Atoms/Picture/Picture.test.js +29 -7
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +28 -0
- package/src/components/Molecules/Card/__snapshots__/Card.test.js.snap +6 -0
- package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +28 -0
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +8 -0
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +28 -0
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +24 -0
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +78 -0
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +14 -0
- package/src/components/Organisms/Donate/Donate.js +1 -1
- package/src/components/Organisms/Donate/GivingSelector/GivingSelector.js +2 -2
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +4 -8
- package/src/components/Organisms/Membership/Membership.test.js +6 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").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 = _interopRequireDefault(require("react"));
|
|
10
10
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
11
|
var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
12
12
|
require("lazysizes");
|
|
@@ -18,10 +18,9 @@ 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,
|
|
22
21
|
nonObjFitImage
|
|
23
22
|
} = _ref;
|
|
24
|
-
return
|
|
23
|
+
return nonObjFitImage && "@supports not ((object-fit: cover) or (object-fit: none) or (object-fit: contain)) {\n background-image: url(".concat(nonObjFitImage, ");\n background-size: cover;\n background-position: center;\n }\n ");
|
|
25
24
|
}, props => props.width ? props.width : '100%', props => props.height ? props.height : '100%', _ref2 => {
|
|
26
25
|
let {
|
|
27
26
|
isBackgroundImage
|
|
@@ -31,12 +30,11 @@ const Wrapper = _styledComponents.default.div.withConfig({
|
|
|
31
30
|
const Image = _styledComponents.default.img.withConfig({
|
|
32
31
|
displayName: "Picture__Image",
|
|
33
32
|
componentId: "sc-1x3z81z-1"
|
|
34
|
-
})(["width:", ";height:", ";display:block;object-fit:", ";", "
|
|
33
|
+
})(["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 => {
|
|
35
34
|
let {
|
|
36
|
-
objectFit
|
|
37
|
-
objFitState
|
|
35
|
+
objectFit
|
|
38
36
|
} = _ref3;
|
|
39
|
-
return objectFit !== 'none' &&
|
|
37
|
+
return objectFit !== 'none' && "@supports not ((object-fit: cover) or (object-fit: contain)) {\n visibility: hidden;\n ";
|
|
40
38
|
}, _ref4 => {
|
|
41
39
|
let {
|
|
42
40
|
smallBreakpointRowLayout
|
|
@@ -90,15 +88,7 @@ const Picture = _ref11 => {
|
|
|
90
88
|
mediumBreakpointRowLayout = null,
|
|
91
89
|
...rest
|
|
92
90
|
} = _ref11;
|
|
93
|
-
const document = typeof window !== 'undefined' ? window.document : null;
|
|
94
|
-
const [objFitState, setObjFitState] = (0, _react.useState)(true);
|
|
95
91
|
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]);
|
|
102
92
|
|
|
103
93
|
// Determine which image will be used for the nonObjectFit fallback
|
|
104
94
|
if (image) {
|
|
@@ -113,16 +103,14 @@ const Picture = _ref11 => {
|
|
|
113
103
|
image: image,
|
|
114
104
|
images: images,
|
|
115
105
|
isBackgroundImage: isBackgroundImage,
|
|
116
|
-
nonObjFitImage: nonObjFitImage
|
|
117
|
-
objFitState: objFitState
|
|
106
|
+
nonObjFitImage: nonObjFitImage
|
|
118
107
|
}, rest), /*#__PURE__*/_react.default.createElement(Image, {
|
|
119
108
|
alt: alt,
|
|
120
109
|
height: height,
|
|
121
110
|
width: width,
|
|
122
111
|
objectFit: objectFit,
|
|
123
112
|
"data-src": image,
|
|
124
|
-
className: "lazyload"
|
|
125
|
-
objFitState: objFitState
|
|
113
|
+
className: "lazyload"
|
|
126
114
|
}));
|
|
127
115
|
}
|
|
128
116
|
return /*#__PURE__*/_react.default.createElement(Wrapper, Object.assign({
|
|
@@ -130,11 +118,9 @@ const Picture = _ref11 => {
|
|
|
130
118
|
width: width,
|
|
131
119
|
image: image,
|
|
132
120
|
images: images,
|
|
133
|
-
setObjFitState: setObjFitState,
|
|
134
121
|
className: "lazyload",
|
|
135
122
|
isBackgroundImage: isBackgroundImage,
|
|
136
|
-
nonObjFitImage: nonObjFitImage
|
|
137
|
-
objFitState: objFitState
|
|
123
|
+
nonObjFitImage: nonObjFitImage
|
|
138
124
|
}, rest), /*#__PURE__*/_react.default.createElement(Image, {
|
|
139
125
|
alt: alt,
|
|
140
126
|
height: height,
|
|
@@ -147,7 +133,6 @@ const Picture = _ref11 => {
|
|
|
147
133
|
"data-sizes": "auto",
|
|
148
134
|
"data-lowsrc": imageLow,
|
|
149
135
|
className: "lazyload",
|
|
150
|
-
objFitState: objFitState,
|
|
151
136
|
smallBreakpointRowLayout: smallBreakpointRowLayout,
|
|
152
137
|
mediumBreakpointRowLayout: mediumBreakpointRowLayout
|
|
153
138
|
}));
|
|
@@ -6,15 +6,15 @@ 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,
|
|
13
13
|
alt: "Test images"
|
|
14
14
|
})).toJSON();
|
|
15
|
-
expect(tree).toMatchInlineSnapshot("\n .c0 {\n display: block;\n width: 100%;\n height: auto;\n position: relative;\n }\n\n .c1 {\n width: 100%;\n height: auto;\n display: block;\n object-fit: none;\n }\n\n <div\n className=\"c0 lazyload\"\n height=\"auto\"\n width=\"100%\"\n >\n <img\n alt=\"Test images\"\n className=\"c1 lazyload\"\n data-lowsrc={null}\n data-sizes=\"auto\"\n data-src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n 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\"\n height=\"auto\"\n src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"100%\"\n />\n </div>\n ");
|
|
15
|
+
expect(tree).toMatchInlineSnapshot("\n .c0 {\n display: block;\n width: 100%;\n height: auto;\n position: relative;\n }\n\n .c1 {\n width: 100%;\n height: auto;\n display: block;\n object-fit: none;\n }\n\n @supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {\n .c0 {\n background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);\n background-size: cover;\n background-position: center;\n }\n }\n\n <div\n className=\"c0 lazyload\"\n height=\"auto\"\n width=\"100%\"\n >\n <img\n alt=\"Test images\"\n className=\"c1 lazyload\"\n data-lowsrc={null}\n data-sizes=\"auto\"\n data-src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n 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\"\n height=\"auto\"\n src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"100%\"\n />\n </div>\n ");
|
|
16
16
|
});
|
|
17
|
-
it(
|
|
17
|
+
it('renders correctly with custom props', () => {
|
|
18
18
|
const tree = (0, _shallowWithTheme.default)( /*#__PURE__*/_react.default.createElement(_Picture.default, {
|
|
19
19
|
images: _data.defaultData.images,
|
|
20
20
|
image: _data.defaultData.image,
|
|
@@ -23,5 +23,5 @@ it("renders correctly with custom props", () => {
|
|
|
23
23
|
height: "100px",
|
|
24
24
|
alt: "Test images"
|
|
25
25
|
})).toJSON();
|
|
26
|
-
expect(tree).toMatchInlineSnapshot("\n .c0 {\n display: block;\n width: 200px;\n height: 100px;\n position: relative;\n }\n\n .c1 {\n width: 200px;\n height: 100px;\n display: block;\n object-fit: cover;\n }\n\n <div\n className=\"c0 lazyload\"\n height=\"100px\"\n width=\"200px\"\n >\n <img\n alt=\"Test images\"\n className=\"c1 lazyload\"\n data-lowsrc={null}\n data-sizes=\"auto\"\n data-src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n 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\"\n height=\"100px\"\n src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"200px\"\n />\n </div>\n ");
|
|
26
|
+
expect(tree).toMatchInlineSnapshot("\n .c0 {\n display: block;\n width: 200px;\n height: 100px;\n position: relative;\n }\n\n .c1 {\n width: 200px;\n height: 100px;\n display: block;\n object-fit: cover;\n }\n\n @supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {\n .c0 {\n background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);\n background-size: cover;\n background-position: center;\n }\n }\n\n @supports not ((object-fit:cover) or (object-fit:contain)) {\n .c1 {\n visibility: hidden;\n }\n }\n\n <div\n className=\"c0 lazyload\"\n height=\"100px\"\n width=\"200px\"\n >\n <img\n alt=\"Test images\"\n className=\"c1 lazyload\"\n data-lowsrc={null}\n data-sizes=\"auto\"\n data-src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n 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\"\n height=\"100px\"\n src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"200px\"\n />\n </div>\n ");
|
|
27
27
|
});
|
|
@@ -18,7 +18,7 @@ it('renders article teaser correctly', () => {
|
|
|
18
18
|
smallImageWidth: "25%",
|
|
19
19
|
largeImageWidth: "100%"
|
|
20
20
|
})).toJSON();
|
|
21
|
-
expect(tree).toMatchInlineSnapshot("\n .c8 {\n font-size: 0.75rem;\n line-height: 0.75rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c10 {\n font-size: 2rem;\n line-height: 2rem;\n text-transform: uppercase;\n font-weight: normal;\n line-height: 2rem;\n font-family: 'Anton',Impact,sans-serif;\n -webkit-letter-spacing: 0.03rem;\n -moz-letter-spacing: 0.03rem;\n -ms-letter-spacing: 0.03rem;\n letter-spacing: 0.03rem;\n }\n\n .c4 {\n display: block;\n width: 100%;\n height: 100%;\n position: relative;\n }\n\n .c6 {\n width: 100%;\n height: 100%;\n display: block;\n object-fit: cover;\n }\n\n .c1 {\n position: relative;\n -webkit-text-decoration: none;\n text-decoration: none;\n display: inline;\n line-height: 1.5rem;\n color: #000000;\n font-weight: normal;\n }\n\n .c1:hover {\n color: #000000;\n }\n\n .c0 {\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n background-color: #FFFFFF;\n border-radius: 1rem;\n box-shadow: 0px 0px 20px rgba(0,0,0,0.15);\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n }\n\n .c0:hover {\n box-shadow: 0px 0px 20px rgba(0,0,0,0.3);\n -webkit-transform: translateY(-4px);\n -ms-transform: translateY(-4px);\n transform: translateY(-4px);\n }\n\n .c2 {\n padding: 0;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n height: 100%;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-text-decoration: none;\n text-decoration: none;\n color: inherit;\n width: 100%;\n }\n\n .c3 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n position: relative;\n }\n\n .c3 img {\n border-radius: 1rem 1rem 0 0;\n }\n\n .c7 {\n padding: 2rem;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .c11 {\n margin: 0;\n }\n\n .c9 {\n display: block;\n margin-bottom: 1rem;\n }\n\n .c5 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n }\n\n @media (min-width:740px) {\n .c2 {\n -webkit-flex-direction: row;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n }\n\n @media (min-width:1024px) {\n .c2 {\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n }\n\n @media (min-width:740px) {\n .c3 {\n width: 45%;\n }\n\n .c3 img {\n border-radius: 1rem 0 0 1rem;\n }\n }\n\n @media (min-width:1024px) {\n .c3 {\n width: 100%;\n }\n\n .c3 img {\n border-radius: 1rem 1rem 0 0;\n }\n }\n\n @media (min-width:740px) {\n .c7 {\n width: 55%;\n }\n }\n\n @media (min-width:1024px) {\n .c7 {\n width: 100%;\n }\n }\n\n <article\n className=\"c0\"\n >\n <a\n className=\"c1 c2\"\n color=\"red\"\n href=\"/test\"\n target=\"_self\"\n type=\"standard\"\n >\n <div\n className=\"c3\"\n >\n <div\n className=\"c4 c5\"\n height=\"100%\"\n width=\"100%\"\n >\n <img\n alt=\"Image's description\"\n className=\"c6 lazyload\"\n data-lowsrc={null}\n data-sizes=\"auto\"\n data-src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n 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\"\n height=\"100%\"\n src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"100%\"\n />\n </div>\n </div>\n <div\n className=\"c7\"\n >\n <span\n className=\"c8 c9\"\n color=\"inherit\"\n size=\"xs\"\n >\n 01 July 2019\n </span>\n <h3\n className=\"c10 c11\"\n color=\"inherit\"\n height=\"2rem\"\n size=\"xl\"\n >\n News article\n </h3>\n </div>\n </a>\n </article>\n ");
|
|
21
|
+
expect(tree).toMatchInlineSnapshot("\n .c8 {\n font-size: 0.75rem;\n line-height: 0.75rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c10 {\n font-size: 2rem;\n line-height: 2rem;\n text-transform: uppercase;\n font-weight: normal;\n line-height: 2rem;\n font-family: 'Anton',Impact,sans-serif;\n -webkit-letter-spacing: 0.03rem;\n -moz-letter-spacing: 0.03rem;\n -ms-letter-spacing: 0.03rem;\n letter-spacing: 0.03rem;\n }\n\n .c4 {\n display: block;\n width: 100%;\n height: 100%;\n position: relative;\n }\n\n .c6 {\n width: 100%;\n height: 100%;\n display: block;\n object-fit: cover;\n }\n\n .c1 {\n position: relative;\n -webkit-text-decoration: none;\n text-decoration: none;\n display: inline;\n line-height: 1.5rem;\n color: #000000;\n font-weight: normal;\n }\n\n .c1:hover {\n color: #000000;\n }\n\n .c0 {\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n background-color: #FFFFFF;\n border-radius: 1rem;\n box-shadow: 0px 0px 20px rgba(0,0,0,0.15);\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n }\n\n .c0:hover {\n box-shadow: 0px 0px 20px rgba(0,0,0,0.3);\n -webkit-transform: translateY(-4px);\n -ms-transform: translateY(-4px);\n transform: translateY(-4px);\n }\n\n .c2 {\n padding: 0;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n height: 100%;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-text-decoration: none;\n text-decoration: none;\n color: inherit;\n width: 100%;\n }\n\n .c3 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n position: relative;\n }\n\n .c3 img {\n border-radius: 1rem 1rem 0 0;\n }\n\n .c7 {\n padding: 2rem;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .c11 {\n margin: 0;\n }\n\n .c9 {\n display: block;\n margin-bottom: 1rem;\n }\n\n .c5 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n }\n\n @supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {\n .c4 {\n background-image: url(http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);\n background-size: cover;\n background-position: center;\n }\n }\n\n @supports not ((object-fit:cover) or (object-fit:contain)) {\n .c6 {\n visibility: hidden;\n }\n }\n\n @media (min-width:740px) {\n .c2 {\n -webkit-flex-direction: row;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n }\n\n @media (min-width:1024px) {\n .c2 {\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n }\n\n @media (min-width:740px) {\n .c3 {\n width: 45%;\n }\n\n .c3 img {\n border-radius: 1rem 0 0 1rem;\n }\n }\n\n @media (min-width:1024px) {\n .c3 {\n width: 100%;\n }\n\n .c3 img {\n border-radius: 1rem 1rem 0 0;\n }\n }\n\n @media (min-width:740px) {\n .c7 {\n width: 55%;\n }\n }\n\n @media (min-width:1024px) {\n .c7 {\n width: 100%;\n }\n }\n\n <article\n className=\"c0\"\n >\n <a\n className=\"c1 c2\"\n color=\"red\"\n href=\"/test\"\n target=\"_self\"\n type=\"standard\"\n >\n <div\n className=\"c3\"\n >\n <div\n className=\"c4 c5\"\n height=\"100%\"\n width=\"100%\"\n >\n <img\n alt=\"Image's description\"\n className=\"c6 lazyload\"\n data-lowsrc={null}\n data-sizes=\"auto\"\n data-src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n 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\"\n height=\"100%\"\n src=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg\"\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"100%\"\n />\n </div>\n </div>\n <div\n className=\"c7\"\n >\n <span\n className=\"c8 c9\"\n color=\"inherit\"\n size=\"xs\"\n >\n 01 July 2019\n </span>\n <h3\n className=\"c10 c11\"\n color=\"inherit\"\n height=\"2rem\"\n size=\"xl\"\n >\n News article\n </h3>\n </div>\n </a>\n </article>\n ");
|
|
22
22
|
});
|
|
23
23
|
it('renders press realese correctly', () => {
|
|
24
24
|
const tree = (0, _shallowWithTheme.default)( /*#__PURE__*/_react.default.createElement(_ArticleTeaser.default, {
|
|
@@ -29,5 +29,5 @@ it('renders press realese correctly', () => {
|
|
|
29
29
|
alt: "Image's description",
|
|
30
30
|
logoSize: "80px"
|
|
31
31
|
})).toJSON();
|
|
32
|
-
expect(tree).toMatchInlineSnapshot("\n .c8 {\n font-size: 0.75rem;\n line-height: 0.75rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c10 {\n font-size: 2rem;\n line-height: 2rem;\n text-transform: uppercase;\n font-weight: normal;\n line-height: 2rem;\n font-family: 'Anton',Impact,sans-serif;\n -webkit-letter-spacing: 0.03rem;\n -moz-letter-spacing: 0.03rem;\n -ms-letter-spacing: 0.03rem;\n letter-spacing: 0.03rem;\n }\n\n .c4 {\n display: block;\n width: 80px;\n height: 80px;\n position: relative;\n }\n\n .c6 {\n width: 80px;\n height: 80px;\n display: block;\n object-fit: cover;\n }\n\n .c1 {\n position: relative;\n -webkit-text-decoration: none;\n text-decoration: none;\n display: inline;\n line-height: 1.5rem;\n color: #000000;\n font-weight: normal;\n }\n\n .c1:hover {\n color: #000000;\n }\n\n .c0 {\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n background-color: #FFFFFF;\n border-radius: 1rem;\n box-shadow: 0px 0px 20px rgba(0,0,0,0.15);\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n }\n\n .c0:hover {\n box-shadow: 0px 0px 20px rgba(0,0,0,0.3);\n -webkit-transform: translateY(-4px);\n -ms-transform: translateY(-4px);\n transform: translateY(-4px);\n }\n\n .c2 {\n padding: 0;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n height: 100%;\n -webkit-flex-direction: row;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-text-decoration: none;\n text-decoration: none;\n color: inherit;\n width: 100%;\n }\n\n .c3 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n position: relative;\n padding-left: 1rem;\n }\n\n .c3 img {\n border-radius: 0;\n }\n\n .c7 {\n padding: 2rem;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .c11 {\n margin: 0;\n }\n\n .c9 {\n display: block;\n margin-bottom: 1rem;\n }\n\n .c5 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n }\n\n @media (min-width:740px) {\n .c2 {\n -webkit-flex-direction: row;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n }\n\n @media (min-width:1024px) {\n\n }\n\n @media (min-width:1024px) {\n .c7 {\n width: 100%;\n }\n }\n\n <article\n className=\"c0\"\n >\n <a\n className=\"c1 c2\"\n color=\"red\"\n href=\"/test\"\n target=\"_self\"\n type=\"standard\"\n >\n <div\n className=\"c3\"\n >\n <div\n className=\"c4 c5\"\n height=\"80px\"\n width=\"80px\"\n >\n <img\n alt=\"Image's description\"\n className=\"c6 lazyload\"\n data-lowsrc=\"mock.asset\"\n data-sizes=\"auto\"\n data-src=\"mock.asset\"\n data-srcset=\"mock.asset\"\n height=\"80px\"\n src=\"mock.asset\"\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"80px\"\n />\n </div>\n </div>\n <div\n className=\"c7\"\n >\n <span\n className=\"c8 c9\"\n color=\"inherit\"\n size=\"xs\"\n >\n 01 July 2019\n </span>\n <h3\n className=\"c10 c11\"\n color=\"inherit\"\n height=\"2rem\"\n size=\"xl\"\n >\n Press Release\n </h3>\n </div>\n </a>\n </article>\n ");
|
|
32
|
+
expect(tree).toMatchInlineSnapshot("\n .c8 {\n font-size: 0.75rem;\n line-height: 0.75rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c10 {\n font-size: 2rem;\n line-height: 2rem;\n text-transform: uppercase;\n font-weight: normal;\n line-height: 2rem;\n font-family: 'Anton',Impact,sans-serif;\n -webkit-letter-spacing: 0.03rem;\n -moz-letter-spacing: 0.03rem;\n -ms-letter-spacing: 0.03rem;\n letter-spacing: 0.03rem;\n }\n\n .c4 {\n display: block;\n width: 80px;\n height: 80px;\n position: relative;\n }\n\n .c6 {\n width: 80px;\n height: 80px;\n display: block;\n object-fit: cover;\n }\n\n .c1 {\n position: relative;\n -webkit-text-decoration: none;\n text-decoration: none;\n display: inline;\n line-height: 1.5rem;\n color: #000000;\n font-weight: normal;\n }\n\n .c1:hover {\n color: #000000;\n }\n\n .c0 {\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n background-color: #FFFFFF;\n border-radius: 1rem;\n box-shadow: 0px 0px 20px rgba(0,0,0,0.15);\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n }\n\n .c0:hover {\n box-shadow: 0px 0px 20px rgba(0,0,0,0.3);\n -webkit-transform: translateY(-4px);\n -ms-transform: translateY(-4px);\n transform: translateY(-4px);\n }\n\n .c2 {\n padding: 0;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n height: 100%;\n -webkit-flex-direction: row;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-text-decoration: none;\n text-decoration: none;\n color: inherit;\n width: 100%;\n }\n\n .c3 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n position: relative;\n padding-left: 1rem;\n }\n\n .c3 img {\n border-radius: 0;\n }\n\n .c7 {\n padding: 2rem;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .c11 {\n margin: 0;\n }\n\n .c9 {\n display: block;\n margin-bottom: 1rem;\n }\n\n .c5 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n }\n\n @supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {\n .c4 {\n background-image: url(mock.asset);\n background-size: cover;\n background-position: center;\n }\n }\n\n @supports not ((object-fit:cover) or (object-fit:contain)) {\n .c6 {\n visibility: hidden;\n }\n }\n\n @media (min-width:740px) {\n .c2 {\n -webkit-flex-direction: row;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n }\n\n @media (min-width:1024px) {\n\n }\n\n @media (min-width:1024px) {\n .c7 {\n width: 100%;\n }\n }\n\n <article\n className=\"c0\"\n >\n <a\n className=\"c1 c2\"\n color=\"red\"\n href=\"/test\"\n target=\"_self\"\n type=\"standard\"\n >\n <div\n className=\"c3\"\n >\n <div\n className=\"c4 c5\"\n height=\"80px\"\n width=\"80px\"\n >\n <img\n alt=\"Image's description\"\n className=\"c6 lazyload\"\n data-lowsrc=\"mock.asset\"\n data-sizes=\"auto\"\n data-src=\"mock.asset\"\n data-srcset=\"mock.asset\"\n height=\"80px\"\n src=\"mock.asset\"\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"80px\"\n />\n </div>\n </div>\n <div\n className=\"c7\"\n >\n <span\n className=\"c8 c9\"\n color=\"inherit\"\n size=\"xs\"\n >\n 01 July 2019\n </span>\n <h3\n className=\"c10 c11\"\n color=\"inherit\"\n height=\"2rem\"\n size=\"xl\"\n >\n Press Release\n </h3>\n </div>\n </a>\n </article>\n ");
|
|
33
33
|
});
|
|
@@ -189,6 +189,12 @@ 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
|
+
|
|
192
198
|
@media (min-width:0px) {
|
|
193
199
|
.c0 {
|
|
194
200
|
-webkit-flex-direction: column;
|
|
@@ -119,6 +119,20 @@ 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
|
+
|
|
122
136
|
@media (min-width:740px) {
|
|
123
137
|
.c8 {
|
|
124
138
|
width: auto;
|
|
@@ -377,6 +391,20 @@ exports[`renders correctly 1`] = `
|
|
|
377
391
|
z-index: 2;
|
|
378
392
|
}
|
|
379
393
|
|
|
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
|
+
|
|
380
408
|
@media (min-width:740px) {
|
|
381
409
|
.c8 {
|
|
382
410
|
width: auto;
|
|
@@ -15,5 +15,5 @@ it('renders correctly', () => {
|
|
|
15
15
|
imageLow: _data.defaultData.imageLow,
|
|
16
16
|
images: _data.defaultData.images
|
|
17
17
|
}))).toJSON();
|
|
18
|
-
expect(tree).toMatchInlineSnapshot("\n .c4 {\n color: #FFFFFF;\n font-size: 0.6875rem;\n line-height: 0.6875rem;\n text-transform: inherit;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c2 {\n display: block;\n width: 100%;\n height: auto;\n position: relative;\n }\n\n .c3 {\n width: 100%;\n height: auto;\n display: block;\n object-fit: none;\n }\n\n .c0 {\n position: relative;\n -webkit-text-decoration: none;\n text-decoration: none;\n display: inline;\n line-height: 1.5rem;\n color: #000000;\n border-bottom: 2px solid #000000;\n font-weight: normal;\n }\n\n .c0:hover {\n color: #000000;\n border-bottom: 2px solid #000000;\n }\n\n .c6 {\n border: 0;\n -webkit-clip: rect(0 0 0 0);\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n height: auto;\n }\n\n .c1 {\n display: block;\n position: relative;\n padding: 0;\n border: none;\n }\n\n .c1:hover,\n .c1:focus {\n border: none;\n }\n\n .c1:hover .c5,\n .c1:focus .c5 {\n overflow: inherit;\n -webkit-clip-path: none;\n clip-path: none;\n margin: 0;\n text-align: center;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n -webkit-clip: auto;\n clip: auto;\n top: 50%;\n left: 0;\n width: 100%;\n z-index: 2;\n }\n\n .c1:hover::after,\n .c1:focus::after {\n content: '';\n position: absolute;\n display: block;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: #E52630;\n }\n\n @media (min-width:740px) {\n .c6 {\n font-size: 1rem;\n }\n }\n\n <a\n className=\"c0 c1\"\n color=\"red\"\n href=\"https://www.comicrelief.com\"\n target=\"_self\"\n type=\"standard\"\n >\n <div\n className=\"c2 lazyload\"\n height=\"auto\"\n width=\"100%\"\n >\n <img\n alt=\"test Image\"\n className=\"c3 lazyload\"\n data-lowsrc=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=100&h=50&q=100\"\n data-sizes=\"auto\"\n data-src={null}\n 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\"\n height=\"auto\"\n src={null}\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"100%\"\n />\n </div>\n <span\n className=\"c4 c5 c6\"\n color=\"white\"\n size=\"xxs\"\n >\n Find out more\n </span>\n </a>\n ");
|
|
18
|
+
expect(tree).toMatchInlineSnapshot("\n .c4 {\n color: #FFFFFF;\n font-size: 0.6875rem;\n line-height: 0.6875rem;\n text-transform: inherit;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c2 {\n display: block;\n width: 100%;\n height: auto;\n position: relative;\n }\n\n .c3 {\n width: 100%;\n height: auto;\n display: block;\n object-fit: none;\n }\n\n .c0 {\n position: relative;\n -webkit-text-decoration: none;\n text-decoration: none;\n display: inline;\n line-height: 1.5rem;\n color: #000000;\n border-bottom: 2px solid #000000;\n font-weight: normal;\n }\n\n .c0:hover {\n color: #000000;\n border-bottom: 2px solid #000000;\n }\n\n .c6 {\n border: 0;\n -webkit-clip: rect(0 0 0 0);\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n height: auto;\n }\n\n .c1 {\n display: block;\n position: relative;\n padding: 0;\n border: none;\n }\n\n .c1:hover,\n .c1:focus {\n border: none;\n }\n\n .c1:hover .c5,\n .c1:focus .c5 {\n overflow: inherit;\n -webkit-clip-path: none;\n clip-path: none;\n margin: 0;\n text-align: center;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n -webkit-clip: auto;\n clip: auto;\n top: 50%;\n left: 0;\n width: 100%;\n z-index: 2;\n }\n\n .c1:hover::after,\n .c1:focus::after {\n content: '';\n position: absolute;\n display: block;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: #E52630;\n }\n\n @supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {\n .c2 {\n background-image: url(//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);\n background-size: cover;\n background-position: center;\n }\n }\n\n @media (min-width:740px) {\n .c6 {\n font-size: 1rem;\n }\n }\n\n <a\n className=\"c0 c1\"\n color=\"red\"\n href=\"https://www.comicrelief.com\"\n target=\"_self\"\n type=\"standard\"\n >\n <div\n className=\"c2 lazyload\"\n height=\"auto\"\n width=\"100%\"\n >\n <img\n alt=\"test Image\"\n className=\"c3 lazyload\"\n data-lowsrc=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=100&h=50&q=100\"\n data-sizes=\"auto\"\n data-src={null}\n 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\"\n height=\"auto\"\n src={null}\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"100%\"\n />\n </div>\n <span\n className=\"c4 c5 c6\"\n color=\"white\"\n size=\"xxs\"\n >\n Find out more\n </span>\n </a>\n ");
|
|
19
19
|
});
|
|
@@ -153,6 +153,20 @@ 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
|
+
|
|
156
170
|
@media (min-width:740px) {
|
|
157
171
|
.c9 {
|
|
158
172
|
width: auto;
|
|
@@ -431,6 +445,20 @@ exports[`renders Promo correctly end position 1`] = `
|
|
|
431
445
|
}
|
|
432
446
|
}
|
|
433
447
|
|
|
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
|
+
|
|
434
462
|
@media (min-width:740px) {
|
|
435
463
|
.c9 {
|
|
436
464
|
width: auto;
|
|
@@ -97,6 +97,12 @@ 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
|
+
|
|
100
106
|
@media (min-width:740px) {
|
|
101
107
|
.c2 {
|
|
102
108
|
-webkit-flex-direction: row;
|
|
@@ -279,6 +285,12 @@ exports[`renders correctly with copy 1`] = `
|
|
|
279
285
|
}
|
|
280
286
|
}
|
|
281
287
|
|
|
288
|
+
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
289
|
+
.c5 {
|
|
290
|
+
visibility: hidden;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
282
294
|
@media (min-width:740px) {
|
|
283
295
|
.c2 {
|
|
284
296
|
-webkit-flex-direction: row;
|
|
@@ -452,6 +464,12 @@ exports[`renders correctly with date 1`] = `
|
|
|
452
464
|
margin: 0;
|
|
453
465
|
}
|
|
454
466
|
|
|
467
|
+
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
468
|
+
.c5 {
|
|
469
|
+
visibility: hidden;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
455
473
|
@media (min-width:740px) {
|
|
456
474
|
.c2 {
|
|
457
475
|
-webkit-flex-direction: row;
|
|
@@ -619,6 +637,12 @@ exports[`renders correctly with date and type 1`] = `
|
|
|
619
637
|
margin: 0;
|
|
620
638
|
}
|
|
621
639
|
|
|
640
|
+
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
641
|
+
.c5 {
|
|
642
|
+
visibility: hidden;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
622
646
|
@media (min-width:740px) {
|
|
623
647
|
.c2 {
|
|
624
648
|
-webkit-flex-direction: row;
|
|
@@ -65,6 +65,20 @@ 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
|
+
|
|
68
82
|
@media (min-width:740px) {
|
|
69
83
|
.c0 {
|
|
70
84
|
-webkit-flex-direction: row;
|
|
@@ -278,6 +292,20 @@ exports[`renders Single Message with Image correctly 1`] = `
|
|
|
278
292
|
z-index: 1;
|
|
279
293
|
}
|
|
280
294
|
|
|
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
|
+
|
|
281
309
|
@media (min-width:740px) {
|
|
282
310
|
.c8 {
|
|
283
311
|
width: auto;
|
|
@@ -482,6 +510,20 @@ exports[`renders Single Message with double image correctly 1`] = `
|
|
|
482
510
|
z-index: 1;
|
|
483
511
|
}
|
|
484
512
|
|
|
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
|
+
|
|
485
527
|
@media (min-width:740px) {
|
|
486
528
|
.c0 {
|
|
487
529
|
-webkit-flex-direction: row;
|
|
@@ -736,6 +778,20 @@ exports[`renders Single Message with full width correctly 1`] = `
|
|
|
736
778
|
z-index: 1;
|
|
737
779
|
}
|
|
738
780
|
|
|
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
|
+
|
|
739
795
|
@media (min-width:740px) {
|
|
740
796
|
.c8 {
|
|
741
797
|
width: auto;
|
|
@@ -940,6 +996,20 @@ exports[`renders Single Message with full width image and no text correctly 1`]
|
|
|
940
996
|
z-index: 1;
|
|
941
997
|
}
|
|
942
998
|
|
|
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
|
+
|
|
943
1013
|
@media (min-width:740px) {
|
|
944
1014
|
|
|
945
1015
|
}
|
|
@@ -1066,6 +1136,14 @@ exports[`renders Single Message with no Image correctly 1`] = `
|
|
|
1066
1136
|
padding: 1rem;
|
|
1067
1137
|
}
|
|
1068
1138
|
|
|
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
|
+
|
|
1069
1147
|
@media (min-width:740px) {
|
|
1070
1148
|
|
|
1071
1149
|
}
|
package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap
CHANGED
|
@@ -153,6 +153,20 @@ 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
|
+
|
|
156
170
|
@media (min-width:740px) {
|
|
157
171
|
.c12 {
|
|
158
172
|
width: auto;
|
|
@@ -108,8 +108,7 @@ const Donate = _ref => {
|
|
|
108
108
|
noTitlesAtAll: noTitlesAtAll,
|
|
109
109
|
paddingOption: paddingOption
|
|
110
110
|
}, !noTitlesAtAll && /*#__PURE__*/_react.default.createElement(_Donate.TitleWrapperOuter, {
|
|
111
|
-
formAlignRight: formAlignRight
|
|
112
|
-
"data-test": "this-one-here"
|
|
111
|
+
formAlignRight: formAlignRight
|
|
113
112
|
}, /*#__PURE__*/_react.default.createElement(_Donate.TitleWrapperInner, null, showCopy && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
114
113
|
tag: "h2",
|
|
115
114
|
color: textColor,
|
|
@@ -29,7 +29,7 @@ const GivingSelector = _ref => {
|
|
|
29
29
|
type: "radio",
|
|
30
30
|
label: "",
|
|
31
31
|
checked: givingType === 'single',
|
|
32
|
-
|
|
32
|
+
onChange: () => handleGivingTypeChange('single', givingType)
|
|
33
33
|
}), /*#__PURE__*/_react.default.createElement(_GivingSelector.Label, {
|
|
34
34
|
active: givingType === 'single',
|
|
35
35
|
htmlFor: "give-once--".concat(mbshipID)
|
|
@@ -41,7 +41,7 @@ const GivingSelector = _ref => {
|
|
|
41
41
|
type: "radio",
|
|
42
42
|
label: "",
|
|
43
43
|
checked: givingType === 'monthly',
|
|
44
|
-
|
|
44
|
+
onChange: () => handleGivingTypeChange('monthly', givingType)
|
|
45
45
|
}), /*#__PURE__*/_react.default.createElement(_GivingSelector.Label, {
|
|
46
46
|
active: givingType === 'monthly',
|
|
47
47
|
htmlFor: "give-monthly--".concat(mbshipID)
|
|
@@ -538,7 +538,6 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
538
538
|
>
|
|
539
539
|
<div
|
|
540
540
|
className="c2"
|
|
541
|
-
data-test="this-one-here"
|
|
542
541
|
>
|
|
543
542
|
<div
|
|
544
543
|
className="c3"
|
|
@@ -574,7 +573,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
574
573
|
className="give-once"
|
|
575
574
|
id="give-once--mship-4"
|
|
576
575
|
label=""
|
|
577
|
-
|
|
576
|
+
onChange={[Function]}
|
|
578
577
|
type="radio"
|
|
579
578
|
value="Single"
|
|
580
579
|
/>
|
|
@@ -590,7 +589,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
590
589
|
className="give-monthly"
|
|
591
590
|
id="give-monthly--mship-4"
|
|
592
591
|
label=""
|
|
593
|
-
|
|
592
|
+
onChange={[Function]}
|
|
594
593
|
type="radio"
|
|
595
594
|
value="Monthly"
|
|
596
595
|
/>
|
|
@@ -1199,7 +1198,6 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
1199
1198
|
>
|
|
1200
1199
|
<div
|
|
1201
1200
|
className="c2"
|
|
1202
|
-
data-test="this-one-here"
|
|
1203
1201
|
>
|
|
1204
1202
|
<div
|
|
1205
1203
|
className="c3"
|
|
@@ -1235,7 +1233,7 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
1235
1233
|
className="give-once"
|
|
1236
1234
|
id="give-once--mship-1"
|
|
1237
1235
|
label=""
|
|
1238
|
-
|
|
1236
|
+
onChange={[Function]}
|
|
1239
1237
|
type="radio"
|
|
1240
1238
|
value="Single"
|
|
1241
1239
|
/>
|
|
@@ -1251,7 +1249,7 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
1251
1249
|
className="give-monthly"
|
|
1252
1250
|
id="give-monthly--mship-1"
|
|
1253
1251
|
label=""
|
|
1254
|
-
|
|
1252
|
+
onChange={[Function]}
|
|
1255
1253
|
type="radio"
|
|
1256
1254
|
value="Monthly"
|
|
1257
1255
|
/>
|
|
@@ -1885,7 +1883,6 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
1885
1883
|
>
|
|
1886
1884
|
<div
|
|
1887
1885
|
className="c2"
|
|
1888
|
-
data-test="this-one-here"
|
|
1889
1886
|
>
|
|
1890
1887
|
<div
|
|
1891
1888
|
className="c3"
|
|
@@ -2508,7 +2505,6 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
|
|
|
2508
2505
|
>
|
|
2509
2506
|
<div
|
|
2510
2507
|
className="c2"
|
|
2511
|
-
data-test="this-one-here"
|
|
2512
2508
|
>
|
|
2513
2509
|
<div
|
|
2514
2510
|
className="c3"
|