@comicrelief/component-library 8.34.1 → 8.34.2
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.style.js +10 -15
- package/dist/components/Atoms/Link/Link.test.js +0 -3
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -2
- package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +0 -1
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +0 -1
- package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -4
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +0 -1
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +0 -1
- package/package.json +1 -1
- package/src/components/Atoms/Link/Link.style.js +0 -1
- package/src/components/Atoms/Link/Link.test.js +0 -3
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -2
- package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +0 -1
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +0 -1
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -4
- package/src/components/Organisms/CookieBanner/CookieBanner.test.js +0 -1
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +0 -1
|
@@ -48,44 +48,39 @@ const buttonStyle = () => (0, _styledComponents.css)(["display:inline-flex;posit
|
|
|
48
48
|
} = _ref7;
|
|
49
49
|
return color ? theme.buttonColors(color) : theme.buttonColors('red');
|
|
50
50
|
});
|
|
51
|
-
const linkStyle = () => (0, _styledComponents.css)(["position:relative;display:inline;
|
|
52
|
-
let {
|
|
53
|
-
theme
|
|
54
|
-
} = _ref8;
|
|
55
|
-
return theme.fontSize('l');
|
|
56
|
-
}, _ref9 => {
|
|
51
|
+
const linkStyle = () => (0, _styledComponents.css)(["position:relative;display:inline;", ";"], _ref8 => {
|
|
57
52
|
let {
|
|
58
53
|
type,
|
|
59
54
|
theme
|
|
60
|
-
} =
|
|
55
|
+
} = _ref8;
|
|
61
56
|
return type ? theme.linkStyles(type) : theme.linkStyles('standard');
|
|
62
57
|
});
|
|
63
58
|
const IconWrapper = exports.IconWrapper = _styledComponents.default.span.withConfig({
|
|
64
59
|
displayName: "Linkstyle__IconWrapper",
|
|
65
60
|
componentId: "sc-t360tr-0"
|
|
66
|
-
})(["display:inline-flex;margin-left:", ";align-self:center;right:", ";", ";@media ", "{width:auto;right:auto;position:relative;", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('m'),
|
|
61
|
+
})(["display:inline-flex;margin-left:", ";align-self:center;right:", ";", ";@media ", "{width:auto;right:auto;position:relative;", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('m'), _ref9 => {
|
|
67
62
|
let {
|
|
68
63
|
type
|
|
69
|
-
} =
|
|
64
|
+
} = _ref9;
|
|
70
65
|
return type === 'standard' && (0, _styledComponents.css)(["position:absolute;right:-2rem;top:0;bottom:0;"]);
|
|
71
|
-
},
|
|
66
|
+
}, _ref10 => {
|
|
72
67
|
let {
|
|
73
68
|
theme
|
|
74
|
-
} =
|
|
69
|
+
} = _ref10;
|
|
75
70
|
return theme.allBreakpoints('M');
|
|
76
|
-
},
|
|
71
|
+
}, _ref11 => {
|
|
77
72
|
let {
|
|
78
73
|
type
|
|
79
|
-
} =
|
|
74
|
+
} = _ref11;
|
|
80
75
|
return type === 'standard' && (0, _styledComponents.css)(["position:absolute;right:-2rem;top:0;bottom:0;"]);
|
|
81
76
|
});
|
|
82
77
|
const StyledLink = _styledComponents.default.a.withConfig({
|
|
83
78
|
displayName: "Linkstyle__StyledLink",
|
|
84
79
|
componentId: "sc-t360tr-1"
|
|
85
|
-
})(["", " ", ";"], props => props.type === 'button' ? buttonStyle : linkStyle,
|
|
80
|
+
})(["", " ", ";"], props => props.type === 'button' ? buttonStyle : linkStyle, _ref12 => {
|
|
86
81
|
let {
|
|
87
82
|
iconFirst
|
|
88
|
-
} =
|
|
83
|
+
} = _ref12;
|
|
89
84
|
return iconFirst && (0, _styledComponents.css)(["flex-direction:row-reverse;span[type=\"button\"]{margin-left:0;margin-right:1rem;}"]);
|
|
90
85
|
});
|
|
91
86
|
const HelperText = exports.HelperText = _styledComponents.default.span.withConfig({
|
|
@@ -15,7 +15,6 @@ it('renders a standard styled link correctly', () => {
|
|
|
15
15
|
.c0 {
|
|
16
16
|
position: relative;
|
|
17
17
|
display: inline;
|
|
18
|
-
line-height: 1.5rem;
|
|
19
18
|
color: #000000;
|
|
20
19
|
font-weight: normal;
|
|
21
20
|
}
|
|
@@ -67,7 +66,6 @@ it('renders a button with an icon', () => {
|
|
|
67
66
|
.c0 {
|
|
68
67
|
position: relative;
|
|
69
68
|
display: inline;
|
|
70
|
-
line-height: 1.5rem;
|
|
71
69
|
color: #000000;
|
|
72
70
|
font-weight: normal;
|
|
73
71
|
}
|
|
@@ -139,7 +137,6 @@ it('renders a standard styled link correctly with target blank and assistive tex
|
|
|
139
137
|
.c0 {
|
|
140
138
|
position: relative;
|
|
141
139
|
display: inline;
|
|
142
|
-
line-height: 1.5rem;
|
|
143
140
|
color: #000000;
|
|
144
141
|
font-weight: normal;
|
|
145
142
|
}
|
|
@@ -58,7 +58,6 @@ it('renders article teaser correctly', () => {
|
|
|
58
58
|
.c1 {
|
|
59
59
|
position: relative;
|
|
60
60
|
display: inline;
|
|
61
|
-
line-height: 1.5rem;
|
|
62
61
|
color: #000000;
|
|
63
62
|
font-weight: normal;
|
|
64
63
|
}
|
|
@@ -307,7 +306,6 @@ it('renders press realese correctly', () => {
|
|
|
307
306
|
.c1 {
|
|
308
307
|
position: relative;
|
|
309
308
|
display: inline;
|
|
310
|
-
line-height: 1.5rem;
|
|
311
309
|
color: #000000;
|
|
312
310
|
font-weight: normal;
|
|
313
311
|
}
|
|
@@ -33,7 +33,6 @@ exports[`renders correctly in minimalist form 1`] = `
|
|
|
33
33
|
.c1 {
|
|
34
34
|
position: relative;
|
|
35
35
|
display: inline;
|
|
36
|
-
line-height: 1.5rem;
|
|
37
36
|
color: #000000;
|
|
38
37
|
font-weight: normal;
|
|
39
38
|
}
|
|
@@ -208,7 +207,6 @@ exports[`renders correctly with copy 1`] = `
|
|
|
208
207
|
.c1 {
|
|
209
208
|
position: relative;
|
|
210
209
|
display: inline;
|
|
211
|
-
line-height: 1.5rem;
|
|
212
210
|
color: #000000;
|
|
213
211
|
font-weight: normal;
|
|
214
212
|
}
|
|
@@ -386,7 +384,6 @@ exports[`renders correctly with date 1`] = `
|
|
|
386
384
|
.c1 {
|
|
387
385
|
position: relative;
|
|
388
386
|
display: inline;
|
|
389
|
-
line-height: 1.5rem;
|
|
390
387
|
color: #000000;
|
|
391
388
|
font-weight: normal;
|
|
392
389
|
}
|
|
@@ -552,7 +549,6 @@ exports[`renders correctly with date and type 1`] = `
|
|
|
552
549
|
.c1 {
|
|
553
550
|
position: relative;
|
|
554
551
|
display: inline;
|
|
555
|
-
line-height: 1.5rem;
|
|
556
552
|
color: #000000;
|
|
557
553
|
font-weight: normal;
|
|
558
554
|
}
|
package/package.json
CHANGED
|
@@ -15,7 +15,6 @@ it('renders a standard styled link correctly', () => {
|
|
|
15
15
|
.c0 {
|
|
16
16
|
position: relative;
|
|
17
17
|
display: inline;
|
|
18
|
-
line-height: 1.5rem;
|
|
19
18
|
color: #000000;
|
|
20
19
|
font-weight: normal;
|
|
21
20
|
}
|
|
@@ -71,7 +70,6 @@ it('renders a button with an icon', () => {
|
|
|
71
70
|
.c0 {
|
|
72
71
|
position: relative;
|
|
73
72
|
display: inline;
|
|
74
|
-
line-height: 1.5rem;
|
|
75
73
|
color: #000000;
|
|
76
74
|
font-weight: normal;
|
|
77
75
|
}
|
|
@@ -145,7 +143,6 @@ it('renders a standard styled link correctly with target blank and assistive tex
|
|
|
145
143
|
.c0 {
|
|
146
144
|
position: relative;
|
|
147
145
|
display: inline;
|
|
148
|
-
line-height: 1.5rem;
|
|
149
146
|
color: #000000;
|
|
150
147
|
font-weight: normal;
|
|
151
148
|
}
|
|
@@ -58,7 +58,6 @@ it('renders article teaser correctly', () => {
|
|
|
58
58
|
.c1 {
|
|
59
59
|
position: relative;
|
|
60
60
|
display: inline;
|
|
61
|
-
line-height: 1.5rem;
|
|
62
61
|
color: #000000;
|
|
63
62
|
font-weight: normal;
|
|
64
63
|
}
|
|
@@ -311,7 +310,6 @@ it('renders press realese correctly', () => {
|
|
|
311
310
|
.c1 {
|
|
312
311
|
position: relative;
|
|
313
312
|
display: inline;
|
|
314
|
-
line-height: 1.5rem;
|
|
315
313
|
color: #000000;
|
|
316
314
|
font-weight: normal;
|
|
317
315
|
}
|
|
@@ -33,7 +33,6 @@ exports[`renders correctly in minimalist form 1`] = `
|
|
|
33
33
|
.c1 {
|
|
34
34
|
position: relative;
|
|
35
35
|
display: inline;
|
|
36
|
-
line-height: 1.5rem;
|
|
37
36
|
color: #000000;
|
|
38
37
|
font-weight: normal;
|
|
39
38
|
}
|
|
@@ -208,7 +207,6 @@ exports[`renders correctly with copy 1`] = `
|
|
|
208
207
|
.c1 {
|
|
209
208
|
position: relative;
|
|
210
209
|
display: inline;
|
|
211
|
-
line-height: 1.5rem;
|
|
212
210
|
color: #000000;
|
|
213
211
|
font-weight: normal;
|
|
214
212
|
}
|
|
@@ -386,7 +384,6 @@ exports[`renders correctly with date 1`] = `
|
|
|
386
384
|
.c1 {
|
|
387
385
|
position: relative;
|
|
388
386
|
display: inline;
|
|
389
|
-
line-height: 1.5rem;
|
|
390
387
|
color: #000000;
|
|
391
388
|
font-weight: normal;
|
|
392
389
|
}
|
|
@@ -552,7 +549,6 @@ exports[`renders correctly with date and type 1`] = `
|
|
|
552
549
|
.c1 {
|
|
553
550
|
position: relative;
|
|
554
551
|
display: inline;
|
|
555
|
-
line-height: 1.5rem;
|
|
556
552
|
color: #000000;
|
|
557
553
|
font-weight: normal;
|
|
558
554
|
}
|