@comicrelief/component-library 8.76.1 → 8.76.3
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/index.cjs.js +567 -567
- package/dist/index.es.js +4659 -4656
- package/package.json +1 -1
- package/src/components/Atoms/SocialIcons/SocialIcons.js +1 -1
- package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +3 -3
- package/src/components/Organisms/Footer/Footer.js +3 -3
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +3 -1
- package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +4 -4
package/package.json
CHANGED
|
@@ -79,7 +79,7 @@ const SocialIcons = ({
|
|
|
79
79
|
: ['facebook', 'instagram', 'twitter', 'youtube'];
|
|
80
80
|
|
|
81
81
|
return (
|
|
82
|
-
<StyledList $newStyle={newStyle} data-
|
|
82
|
+
<StyledList $newStyle={newStyle} data-test="SocialIconsList">
|
|
83
83
|
{brandsToShow
|
|
84
84
|
.filter(brand => shouldShowIcon(brand))
|
|
85
85
|
.map(brand => {
|
|
@@ -55,7 +55,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
55
55
|
|
|
56
56
|
<ul
|
|
57
57
|
className="c0"
|
|
58
|
-
data-
|
|
58
|
+
data-test="SocialIconsList"
|
|
59
59
|
>
|
|
60
60
|
<li
|
|
61
61
|
className="c1"
|
|
@@ -191,7 +191,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
191
191
|
|
|
192
192
|
<ul
|
|
193
193
|
className="c0"
|
|
194
|
-
data-
|
|
194
|
+
data-test="SocialIconsList"
|
|
195
195
|
>
|
|
196
196
|
<li
|
|
197
197
|
className="c1"
|
|
@@ -327,7 +327,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
327
327
|
|
|
328
328
|
<ul
|
|
329
329
|
className="c0"
|
|
330
|
-
data-
|
|
330
|
+
data-test="SocialIconsList"
|
|
331
331
|
>
|
|
332
332
|
<li
|
|
333
333
|
className="c1"
|
|
@@ -31,10 +31,10 @@ const Footer = ({
|
|
|
31
31
|
}
|
|
32
32
|
<FooterBranding>
|
|
33
33
|
<SocialIconWrapper>
|
|
34
|
-
<SocialIcons campaign={campaignName} />
|
|
34
|
+
<SocialIcons campaign={campaignName} data-test="SocialIconsList" />
|
|
35
35
|
</SocialIconWrapper>
|
|
36
36
|
|
|
37
|
-
<Brand href="/" title={`Go to ${campaign} homepage`}>
|
|
37
|
+
<Brand href="/" title={`Go to ${campaign} homepage`} data-test="footer-logo">
|
|
38
38
|
<Logo sizeSm="48px" sizeMd="72px" rotate={false} campaign={campaign} />
|
|
39
39
|
</Brand>
|
|
40
40
|
</FooterBranding>
|
|
@@ -42,7 +42,7 @@ const Footer = ({
|
|
|
42
42
|
|
|
43
43
|
{ showFundraisingRegulatorLogo && <FundraisingRegulatorLogo /> }
|
|
44
44
|
|
|
45
|
-
<FooterCopyright>
|
|
45
|
+
<FooterCopyright data-test="footer-copyright">
|
|
46
46
|
<Text tag="p" color="grey" size="s">
|
|
47
47
|
{footerCopy}
|
|
48
48
|
</Text>
|
|
@@ -592,7 +592,7 @@ exports[`renders correctly 1`] = `
|
|
|
592
592
|
>
|
|
593
593
|
<ul
|
|
594
594
|
className="c3"
|
|
595
|
-
data-
|
|
595
|
+
data-test="SocialIconsList"
|
|
596
596
|
>
|
|
597
597
|
<li
|
|
598
598
|
className="c4"
|
|
@@ -674,6 +674,7 @@ exports[`renders correctly 1`] = `
|
|
|
674
674
|
</div>
|
|
675
675
|
<a
|
|
676
676
|
className="c8 c9"
|
|
677
|
+
data-test="footer-logo"
|
|
677
678
|
href="/"
|
|
678
679
|
target="_self"
|
|
679
680
|
title="Go to Comic Relief homepage"
|
|
@@ -1220,6 +1221,7 @@ exports[`renders correctly 1`] = `
|
|
|
1220
1221
|
</nav>
|
|
1221
1222
|
<div
|
|
1222
1223
|
className="c25"
|
|
1224
|
+
data-test="footer-copyright"
|
|
1223
1225
|
>
|
|
1224
1226
|
<p
|
|
1225
1227
|
className="c26"
|
|
@@ -984,7 +984,7 @@ exports[`does not render copyright text when not supplied 1`] = `
|
|
|
984
984
|
>
|
|
985
985
|
<ul
|
|
986
986
|
className="c27"
|
|
987
|
-
data-
|
|
987
|
+
data-test="SocialIconsList"
|
|
988
988
|
>
|
|
989
989
|
<li
|
|
990
990
|
className="c28"
|
|
@@ -1170,7 +1170,7 @@ exports[`does not render copyright text when not supplied 1`] = `
|
|
|
1170
1170
|
>
|
|
1171
1171
|
<ul
|
|
1172
1172
|
className="c27"
|
|
1173
|
-
data-
|
|
1173
|
+
data-test="SocialIconsList"
|
|
1174
1174
|
>
|
|
1175
1175
|
<li
|
|
1176
1176
|
className="c28"
|
|
@@ -2308,7 +2308,7 @@ exports[`renders correctly 1`] = `
|
|
|
2308
2308
|
>
|
|
2309
2309
|
<ul
|
|
2310
2310
|
className="c27"
|
|
2311
|
-
data-
|
|
2311
|
+
data-test="SocialIconsList"
|
|
2312
2312
|
>
|
|
2313
2313
|
<li
|
|
2314
2314
|
className="c28"
|
|
@@ -2494,7 +2494,7 @@ exports[`renders correctly 1`] = `
|
|
|
2494
2494
|
>
|
|
2495
2495
|
<ul
|
|
2496
2496
|
className="c27"
|
|
2497
|
-
data-
|
|
2497
|
+
data-test="SocialIconsList"
|
|
2498
2498
|
>
|
|
2499
2499
|
<li
|
|
2500
2500
|
className="c28"
|