@comicrelief/component-library 7.30.0 → 7.31.1
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/Organisms/Footer/Footer.md +1 -1
- package/dist/components/Organisms/Footer/Footer.style.js +1 -1
- package/dist/theme/crTheme/colors.js +2 -0
- package/package.json +1 -1
- package/playwright/components/organisms/footer.spec.js +1 -4
- package/src/components/Organisms/Footer/Footer.md +1 -1
- package/src/components/Organisms/Footer/Footer.style.js +1 -0
- package/src/theme/crTheme/colors.js +2 -0
|
@@ -18,7 +18,7 @@ import footerCopy from './data/footerCopy';
|
|
|
18
18
|
|
|
19
19
|
<p>Adding a additionalLegalLine to the top of the footer</p>
|
|
20
20
|
<Footer
|
|
21
|
-
additionalLegalLine="
|
|
21
|
+
additionalLegalLine="CHICKEN RUN: DAWN OF THE NUGGET ™/ © Aardman. Netflix ™/© Netflix. Used with permission/Wallace & Gromit Ltd. All rights reserved/ Shaun the Sheep © & TM /Morph ©/TM Aardman Animations Ltd. All rights reserved."
|
|
22
22
|
navItems={data}
|
|
23
23
|
footerCopy={footerCopy.copy}
|
|
24
24
|
campaign="Comic Relief"
|
|
@@ -41,7 +41,7 @@ const InnerWrapper = exports.InnerWrapper = _styledComponents.default.div.withCo
|
|
|
41
41
|
const FooterLegalLine = exports.FooterLegalLine = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
42
42
|
displayName: "Footerstyle__FooterLegalLine",
|
|
43
43
|
componentId: "sc-167xaf5-3"
|
|
44
|
-
})(["text-align:left;margin-top:1rem;"]);
|
|
44
|
+
})(["text-align:left;margin-top:1rem;line-height:1.5rem;"]);
|
|
45
45
|
const FooterBranding = exports.FooterBranding = _styledComponents.default.div.withConfig({
|
|
46
46
|
displayName: "Footerstyle__FooterBranding",
|
|
47
47
|
componentId: "sc-167xaf5-4"
|
|
@@ -27,6 +27,7 @@ const colors = {
|
|
|
27
27
|
green_light: '#F4F2F4',
|
|
28
28
|
grey: '#969598',
|
|
29
29
|
grey_dark: '#222222',
|
|
30
|
+
grey_stone: '#CEDCDA',
|
|
30
31
|
grey_extra_light: '#f0f0f0',
|
|
31
32
|
grey_for_forms: '#666',
|
|
32
33
|
grey_label: '#5C5C5E',
|
|
@@ -43,6 +44,7 @@ const colors = {
|
|
|
43
44
|
purple_dark: '#48276E',
|
|
44
45
|
purple_light: '#DFC6F6',
|
|
45
46
|
red: '#E52630',
|
|
47
|
+
red_secondary: '#F9723A',
|
|
46
48
|
red_dark: '#890B11',
|
|
47
49
|
rnd_23_teal: '#3EB1AA',
|
|
48
50
|
rnd_23_yellow: '#FFE300',
|
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@ const { test, expect } = require('@playwright/test');
|
|
|
2
2
|
|
|
3
3
|
test.describe('footer component', () => {
|
|
4
4
|
test('Standard footer', async ({ page }) => {
|
|
5
|
-
|
|
6
5
|
await page.goto('/#footer');
|
|
7
6
|
|
|
8
7
|
await expect(page.locator('[data-testid="Footer-example-1"]')).toBeVisible();
|
|
@@ -22,7 +21,6 @@ test.describe('footer component', () => {
|
|
|
22
21
|
});
|
|
23
22
|
|
|
24
23
|
test('Overrides allowList functionality', async ({ page }) => {
|
|
25
|
-
|
|
26
24
|
await page.goto('/#footer');
|
|
27
25
|
|
|
28
26
|
await expect(page.locator('[data-testid="Footer-example-1"]')).toBeVisible();
|
|
@@ -42,13 +40,12 @@ test.describe('footer component', () => {
|
|
|
42
40
|
});
|
|
43
41
|
|
|
44
42
|
test('additional legal line footer', async ({ page }) => {
|
|
45
|
-
|
|
46
43
|
await page.goto('/#footer');
|
|
47
44
|
|
|
48
45
|
await expect(page.locator('[data-testid="Footer-example-1"]')).toBeVisible();
|
|
49
46
|
|
|
50
47
|
// legal line to the top of the footer should be present
|
|
51
|
-
await expect(page.locator('[data-preview="Footer"] > div > div:nth-child(6) > footer[role="banner"] > div > p')).toContainText('
|
|
48
|
+
await expect(page.locator('[data-preview="Footer"] > div > div:nth-child(6) > footer[role="banner"] > div > p')).toContainText('CHICKEN RUN: DAWN OF THE NUGGET ™/ © Aardman. Netflix ™/© Netflix. Used with permission/Wallace & Gromit Ltd. All rights reserved/ Shaun the Sheep © & TM /Morph ©/TM Aardman Animations Ltd. All rights reserved.');
|
|
52
49
|
|
|
53
50
|
// footer social icons should be visible
|
|
54
51
|
await expect(page.locator('[data-preview="Footer"] > div > div:nth-child(4) > footer[role="banner"] [title="Check out our Facebook page"]')).toBeVisible();
|
|
@@ -18,7 +18,7 @@ import footerCopy from './data/footerCopy';
|
|
|
18
18
|
|
|
19
19
|
<p>Adding a additionalLegalLine to the top of the footer</p>
|
|
20
20
|
<Footer
|
|
21
|
-
additionalLegalLine="
|
|
21
|
+
additionalLegalLine="CHICKEN RUN: DAWN OF THE NUGGET ™/ © Aardman. Netflix ™/© Netflix. Used with permission/Wallace & Gromit Ltd. All rights reserved/ Shaun the Sheep © & TM /Morph ©/TM Aardman Animations Ltd. All rights reserved."
|
|
22
22
|
navItems={data}
|
|
23
23
|
footerCopy={footerCopy.copy}
|
|
24
24
|
campaign="Comic Relief"
|
|
@@ -21,6 +21,7 @@ const colors = {
|
|
|
21
21
|
green_light: '#F4F2F4',
|
|
22
22
|
grey: '#969598',
|
|
23
23
|
grey_dark: '#222222',
|
|
24
|
+
grey_stone: '#CEDCDA',
|
|
24
25
|
grey_extra_light: '#f0f0f0',
|
|
25
26
|
grey_for_forms: '#666',
|
|
26
27
|
grey_label: '#5C5C5E',
|
|
@@ -37,6 +38,7 @@ const colors = {
|
|
|
37
38
|
purple_dark: '#48276E',
|
|
38
39
|
purple_light: '#DFC6F6',
|
|
39
40
|
red: '#E52630',
|
|
41
|
+
red_secondary: '#F9723A',
|
|
40
42
|
red_dark: '#890B11',
|
|
41
43
|
rnd_23_teal: '#3EB1AA',
|
|
42
44
|
rnd_23_yellow: '#FFE300',
|