@comicrelief/component-library 7.1.1 → 7.2.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.
@@ -1,179 +1,179 @@
1
1
  describe('SocialIcons component', () => {
2
- before(() => {
3
- // go to social icons component
4
- cy.visit('/#socialicons');
5
- });
6
-
7
- describe('props and methods section', () => {
8
- beforeEach(() => {
9
- cy.get('[data-testid="SocialIcons-container"] button[name="rsg-usage"]')
10
- .contains('Props & methods')
11
- .as('propsBtn');
12
-
13
- cy.get('@propsBtn')
14
- .closest('[class^=rsg--tabs]')
15
- .as('container');
16
- });
17
-
18
- it('is present', () => {
19
- cy.get('@propsBtn').should('exist');
20
- });
21
-
22
- it('does not show table initially', () => {
23
- cy.get('@container')
24
- .find('table')
25
- .should('not.exist');
26
- });
27
-
28
- it('shows the table on button click', () => {
29
- cy.get('@propsBtn').click();
30
- cy.get('@container')
31
- .find('table')
32
- .should('contain', 'Prop name');
33
- });
34
- });
35
-
36
- describe('Comic Relief social icons section', () => {
37
- beforeEach(() => {
38
- cy.get('[data-testid="SocialIcons-example-1"]')
39
- .as('container')
40
- .find('[data-preview="SocialIcons"]')
41
- .as('preview');
42
-
43
- cy.get('@container')
44
- .find('button')
45
- .contains('View Code')
46
- .as('viewCodeBtn');
47
- });
48
-
49
- it('checks comic relief social icons', () => {
50
- cy.get('@container')
51
- .find('a')
52
- .first()
53
- .should('have.attr', 'href', 'https://www.facebook.com/comicrelief');
54
- cy.get('@container')
55
- .find('li:nth-child(2) > a')
56
- .should('have.attr', 'href', 'https://twitter.com/comicrelief');
57
- cy.get('@container')
58
- .find('li:nth-child(3) > a')
59
- .should('have.attr', 'href', 'https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw');
60
- cy.get('@container')
61
- .find('li:nth-child(4) > a')
62
- .should('have.attr', 'href', 'https://www.instagram.com/comicrelief');
63
- });
64
-
65
- it('has view code button', () => {
66
- cy.get('@viewCodeBtn').should('exist');
67
- });
68
-
69
- it('shows code on click', () => {
70
- cy.get('@viewCodeBtn').click();
71
- cy.get('@container')
72
- .find('textarea')
73
- .should('exist');
74
- });
75
-
76
- it('closes code on click', () => {
77
- cy.get('@viewCodeBtn').click();
78
- cy.get('@container')
79
- .find('textarea')
80
- .should('not.exist');
81
- });
82
- });
83
-
84
- describe('Red Nose Day social icons section', () => {
85
- beforeEach(() => {
86
- cy.get('[data-testid="SocialIcons-example-3"]')
87
- .as('container')
88
- .find('[data-preview="SocialIcons"]')
89
- .as('preview');
90
-
91
- cy.get('@container')
92
- .find('button')
93
- .contains('View Code')
94
- .as('viewCodeBtn');
95
- });
96
-
97
- it('checks Red Nose Day social icons', () => {
98
- cy.get('@container')
99
- .find('a')
100
- .first()
101
- .should('have.attr', 'href', 'https://www.facebook.com/rednoseday');
102
- cy.get('@container')
103
- .find('li:nth-child(2) > a')
104
- .should('have.attr', 'href', 'https://twitter.com/rednoseday');
105
- cy.get('@container')
106
- .find('li:nth-child(3) > a')
107
- .should('have.attr', 'href', 'https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw');
108
- cy.get('@container')
109
- .find('li:nth-child(4) > a')
110
- .should('have.attr', 'href', 'https://www.instagram.com/rednoseday');
111
- });
112
-
113
- it('has view code button', () => {
114
- cy.get('@viewCodeBtn').should('exist');
115
- });
116
-
117
- it('shows code on click', () => {
118
- cy.get('@viewCodeBtn').click();
119
- cy.get('@container')
120
- .find('textarea')
121
- .should('exist');
122
- });
123
-
124
- it('closes code on click', () => {
125
- cy.get('@viewCodeBtn').click();
126
- cy.get('@container')
127
- .find('textarea')
128
- .should('not.exist');
129
- });
130
- });
131
-
132
- describe('Sport Relief social icons section', () => {
133
- beforeEach(() => {
134
- cy.get('[data-testid="SocialIcons-example-5"]')
135
- .as('container')
136
- .find('[data-preview="SocialIcons"]')
137
- .as('preview');
138
-
139
- cy.get('@container')
140
- .find('button')
141
- .contains('View Code')
142
- .as('viewCodeBtn');
143
- });
144
-
145
- it('checks Sport Relief social icons', () => {
146
- cy.get('@container')
147
- .find('a')
148
- .first()
149
- .should('have.attr', 'href', 'https://www.facebook.com/sportrelief');
150
- cy.get('@container')
151
- .find('li:nth-child(2) > a')
152
- .should('have.attr', 'href', 'https://twitter.com/sportrelief');
153
- cy.get('@container')
154
- .find('li:nth-child(3) > a')
155
- .should('have.attr', 'href', 'https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw');
156
- cy.get('@container')
157
- .find('li:nth-child(4) > a')
158
- .should('have.attr', 'href', 'https://www.instagram.com/sportrelief');
159
- });
160
-
161
- it('has view code button', () => {
162
- cy.get('@viewCodeBtn').should('exist');
163
- });
164
-
165
- it('shows code on click', () => {
166
- cy.get('@viewCodeBtn').click();
167
- cy.get('@container')
168
- .find('textarea')
169
- .should('exist');
170
- });
171
-
172
- it('closes code on click', () => {
173
- cy.get('@viewCodeBtn').click();
174
- cy.get('@container')
175
- .find('textarea')
176
- .should('not.exist');
177
- });
2
+ before(() => {
3
+ // go to social icons component
4
+ cy.visit('/#socialicons');
5
+ });
6
+
7
+ describe('props and methods section', () => {
8
+ beforeEach(() => {
9
+ cy.get('[data-testid="SocialIcons-container"] button[name="rsg-usage"]')
10
+ .contains('Props & methods')
11
+ .as('propsBtn');
12
+
13
+ cy.get('@propsBtn')
14
+ .closest('[class^=rsg--tabs]')
15
+ .as('container');
178
16
  });
17
+
18
+ it('is present', () => {
19
+ cy.get('@propsBtn').should('exist');
20
+ });
21
+
22
+ it('does not show table initially', () => {
23
+ cy.get('@container')
24
+ .find('table')
25
+ .should('not.exist');
26
+ });
27
+
28
+ it('shows the table on button click', () => {
29
+ cy.get('@propsBtn').click();
30
+ cy.get('@container')
31
+ .find('table')
32
+ .should('contain', 'Prop name');
33
+ });
34
+ });
35
+
36
+ describe('Comic Relief social icons section', () => {
37
+ beforeEach(() => {
38
+ cy.get('[data-testid="SocialIcons-example-1"]')
39
+ .as('container')
40
+ .find('[data-preview="SocialIcons"]')
41
+ .as('preview');
42
+
43
+ cy.get('@container')
44
+ .find('button')
45
+ .contains('View Code')
46
+ .as('viewCodeBtn');
47
+ });
48
+
49
+ it('checks comic relief social icons', () => {
50
+ cy.get('@container')
51
+ .find('a')
52
+ .first()
53
+ .should('have.attr', 'href', 'https://www.facebook.com/comicrelief');
54
+ cy.get('@container')
55
+ .find('li:nth-child(2) > a')
56
+ .should('have.attr', 'href', 'https://www.instagram.com/comicrelief');
57
+ cy.get('@container')
58
+ .find('li:nth-child(3) > a')
59
+ .should('have.attr', 'href', 'https://twitter.com/comicrelief');
60
+ cy.get('@container')
61
+ .find('li:nth-child(4) > a')
62
+ .should('have.attr', 'href', 'https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw');
63
+ });
64
+
65
+ it('has view code button', () => {
66
+ cy.get('@viewCodeBtn').should('exist');
67
+ });
68
+
69
+ it('shows code on click', () => {
70
+ cy.get('@viewCodeBtn').click();
71
+ cy.get('@container')
72
+ .find('textarea')
73
+ .should('exist');
74
+ });
75
+
76
+ it('closes code on click', () => {
77
+ cy.get('@viewCodeBtn').click();
78
+ cy.get('@container')
79
+ .find('textarea')
80
+ .should('not.exist');
81
+ });
82
+ });
83
+
84
+ describe('Red Nose Day social icons section', () => {
85
+ beforeEach(() => {
86
+ cy.get('[data-testid="SocialIcons-example-3"]')
87
+ .as('container')
88
+ .find('[data-preview="SocialIcons"]')
89
+ .as('preview');
90
+
91
+ cy.get('@container')
92
+ .find('button')
93
+ .contains('View Code')
94
+ .as('viewCodeBtn');
95
+ });
96
+
97
+ it('checks Red Nose Day social icons', () => {
98
+ cy.get('@container')
99
+ .find('a')
100
+ .first()
101
+ .should('have.attr', 'href', 'https://www.facebook.com/rednoseday');
102
+ cy.get('@container')
103
+ .find('li:nth-child(2) > a')
104
+ .should('have.attr', 'href', 'https://www.instagram.com/rednoseday');
105
+ cy.get('@container')
106
+ .find('li:nth-child(3) > a')
107
+ .should('have.attr', 'href', 'https://twitter.com/rednoseday');
108
+ cy.get('@container')
109
+ .find('li:nth-child(4) > a')
110
+ .should('have.attr', 'href', 'https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw');
111
+ });
112
+
113
+ it('has view code button', () => {
114
+ cy.get('@viewCodeBtn').should('exist');
115
+ });
116
+
117
+ it('shows code on click', () => {
118
+ cy.get('@viewCodeBtn').click();
119
+ cy.get('@container')
120
+ .find('textarea')
121
+ .should('exist');
122
+ });
123
+
124
+ it('closes code on click', () => {
125
+ cy.get('@viewCodeBtn').click();
126
+ cy.get('@container')
127
+ .find('textarea')
128
+ .should('not.exist');
129
+ });
130
+ });
131
+
132
+ describe('Sport Relief social icons section', () => {
133
+ beforeEach(() => {
134
+ cy.get('[data-testid="SocialIcons-example-5"]')
135
+ .as('container')
136
+ .find('[data-preview="SocialIcons"]')
137
+ .as('preview');
138
+
139
+ cy.get('@container')
140
+ .find('button')
141
+ .contains('View Code')
142
+ .as('viewCodeBtn');
143
+ });
144
+
145
+ it('checks Sport Relief social icons', () => {
146
+ cy.get('@container')
147
+ .find('a')
148
+ .first()
149
+ .should('have.attr', 'href', 'https://www.facebook.com/sportrelief');
150
+ cy.get('@container')
151
+ .find('li:nth-child(2) > a')
152
+ .should('have.attr', 'href', 'https://www.instagram.com/sportrelief');
153
+ cy.get('@container')
154
+ .find('li:nth-child(3) > a')
155
+ .should('have.attr', 'href', 'https://twitter.com/sportrelief');
156
+ cy.get('@container')
157
+ .find('li:nth-child(4) > a')
158
+ .should('have.attr', 'href', 'https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw');
159
+ });
160
+
161
+ it('has view code button', () => {
162
+ cy.get('@viewCodeBtn').should('exist');
163
+ });
164
+
165
+ it('shows code on click', () => {
166
+ cy.get('@viewCodeBtn').click();
167
+ cy.get('@container')
168
+ .find('textarea')
169
+ .should('exist');
170
+ });
171
+
172
+ it('closes code on click', () => {
173
+ cy.get('@viewCodeBtn').click();
174
+ cy.get('@container')
175
+ .find('textarea')
176
+ .should('not.exist');
177
+ });
178
+ });
179
179
  });
@@ -17,8 +17,8 @@ var _instagram = _interopRequireDefault(require("../assets/instagram.svg"));
17
17
 
18
18
  var _default = {
19
19
  facebook: _facebook.default,
20
+ instagram: _instagram.default,
20
21
  twitter: _twitter.default,
21
- youtube: _youtube.default,
22
- instagram: _instagram.default
22
+ youtube: _youtube.default
23
23
  };
24
24
  exports.default = _default;
@@ -104,13 +104,13 @@ exports[`renders correctly with Comic Relief links 1`] = `
104
104
  <a
105
105
  className="c2"
106
106
  data-test="header-esu-icon"
107
- href="https://twitter.com/comicrelief"
107
+ href="https://www.instagram.com/comicrelief"
108
108
  rel="noopener noreferrer"
109
109
  target="_blank"
110
- title="Check out our Twitter account"
110
+ title="Check out our Instagram account"
111
111
  >
112
112
  <img
113
- alt="twitter"
113
+ alt="instagram"
114
114
  className="c3"
115
115
  src="mock.asset"
116
116
  />
@@ -127,13 +127,13 @@ exports[`renders correctly with Comic Relief links 1`] = `
127
127
  <a
128
128
  className="c2"
129
129
  data-test="header-esu-icon"
130
- href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
130
+ href="https://twitter.com/comicrelief"
131
131
  rel="noopener noreferrer"
132
132
  target="_blank"
133
- title="Check out our YouTube channel"
133
+ title="Check out our Twitter account"
134
134
  >
135
135
  <img
136
- alt="youtube"
136
+ alt="twitter"
137
137
  className="c3"
138
138
  src="mock.asset"
139
139
  />
@@ -150,13 +150,13 @@ exports[`renders correctly with Comic Relief links 1`] = `
150
150
  <a
151
151
  className="c2"
152
152
  data-test="header-esu-icon"
153
- href="https://www.instagram.com/comicrelief"
153
+ href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
154
154
  rel="noopener noreferrer"
155
155
  target="_blank"
156
- title="Check out our Instagram account"
156
+ title="Check out our YouTube channel"
157
157
  >
158
158
  <img
159
- alt="instagram"
159
+ alt="youtube"
160
160
  className="c3"
161
161
  src="mock.asset"
162
162
  />
@@ -274,13 +274,13 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
274
274
  <a
275
275
  className="c2"
276
276
  data-test="header-esu-icon"
277
- href="https://twitter.com/rednoseday"
277
+ href="https://www.instagram.com/rednoseday"
278
278
  rel="noopener noreferrer"
279
279
  target="_self"
280
- title="Check out our Twitter account"
280
+ title="Check out our Instagram account"
281
281
  >
282
282
  <img
283
- alt="twitter"
283
+ alt="instagram"
284
284
  className="c3"
285
285
  src="mock.asset"
286
286
  />
@@ -297,13 +297,13 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
297
297
  <a
298
298
  className="c2"
299
299
  data-test="header-esu-icon"
300
- href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
300
+ href="https://twitter.com/rednoseday"
301
301
  rel="noopener noreferrer"
302
302
  target="_self"
303
- title="Check out our YouTube channel"
303
+ title="Check out our Twitter account"
304
304
  >
305
305
  <img
306
- alt="youtube"
306
+ alt="twitter"
307
307
  className="c3"
308
308
  src="mock.asset"
309
309
  />
@@ -320,13 +320,13 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
320
320
  <a
321
321
  className="c2"
322
322
  data-test="header-esu-icon"
323
- href="https://www.instagram.com/rednoseday"
323
+ href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
324
324
  rel="noopener noreferrer"
325
325
  target="_self"
326
- title="Check out our Instagram account"
326
+ title="Check out our YouTube channel"
327
327
  >
328
328
  <img
329
- alt="instagram"
329
+ alt="youtube"
330
330
  className="c3"
331
331
  src="mock.asset"
332
332
  />
@@ -444,13 +444,13 @@ exports[`renders correctly with Sport Relief links 1`] = `
444
444
  <a
445
445
  className="c2"
446
446
  data-test="header-esu-icon"
447
- href="https://twitter.com/sportrelief"
447
+ href="https://www.instagram.com/sportrelief"
448
448
  rel="noopener noreferrer"
449
449
  target="_blank"
450
- title="Check out our Twitter account"
450
+ title="Check out our Instagram account"
451
451
  >
452
452
  <img
453
- alt="twitter"
453
+ alt="instagram"
454
454
  className="c3"
455
455
  src="mock.asset"
456
456
  />
@@ -467,13 +467,13 @@ exports[`renders correctly with Sport Relief links 1`] = `
467
467
  <a
468
468
  className="c2"
469
469
  data-test="header-esu-icon"
470
- href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
470
+ href="https://twitter.com/sportrelief"
471
471
  rel="noopener noreferrer"
472
472
  target="_blank"
473
- title="Check out our YouTube channel"
473
+ title="Check out our Twitter account"
474
474
  >
475
475
  <img
476
- alt="youtube"
476
+ alt="twitter"
477
477
  className="c3"
478
478
  src="mock.asset"
479
479
  />
@@ -490,13 +490,13 @@ exports[`renders correctly with Sport Relief links 1`] = `
490
490
  <a
491
491
  className="c2"
492
492
  data-test="header-esu-icon"
493
- href="https://www.instagram.com/sportrelief"
493
+ href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
494
494
  rel="noopener noreferrer"
495
495
  target="_blank"
496
- title="Check out our Instagram account"
496
+ title="Check out our YouTube channel"
497
497
  >
498
498
  <img
499
- alt="instagram"
499
+ alt="youtube"
500
500
  className="c3"
501
501
  src="mock.asset"
502
502
  />
@@ -1 +1,3 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 49.471c67.266 0 75.233.257 101.797 1.469 24.562 1.121 37.901 5.224 46.778 8.674 11.759 4.57 20.151 10.029 28.966 18.845 8.816 8.815 14.275 17.208 18.845 28.966 3.45 8.877 7.554 22.216 8.674 46.778 1.212 26.565 1.469 34.532 1.469 101.798s-.257 75.233-1.469 101.797c-1.121 24.562-5.225 37.901-8.674 46.778-4.57 11.759-10.029 20.151-18.845 28.966-8.816 8.816-17.208 14.275-28.966 18.845-8.877 3.45-22.216 7.554-46.778 8.674-26.56 1.212-34.527 1.469-101.797 1.469s-75.237-.257-101.797-1.469c-24.562-1.121-37.901-5.225-46.778-8.674-11.759-4.57-20.151-10.029-28.966-18.845-8.815-8.815-14.275-17.208-18.845-28.966-3.45-8.877-7.554-22.216-8.674-46.778-1.212-26.564-1.469-34.532-1.469-101.798s.257-75.233 1.469-101.797c1.121-24.562 5.224-37.901 8.674-46.778 4.57-11.759 10.029-20.151 18.845-28.966 8.815-8.815 17.208-14.275 28.966-18.845 8.877-3.45 22.216-7.554 46.778-8.674 26.564-1.213 34.531-1.469 101.797-1.469m0-45.392c-68.418 0-76.997.29-103.866 1.516-26.815 1.224-45.127 5.482-61.151 11.71-16.566 6.438-30.615 15.052-44.62 29.057-14.005 14.005-22.619 28.055-29.057 44.62-6.228 16.025-10.486 34.337-11.71 61.151C4.369 179.003 4.079 187.582 4.079 256s.29 76.997 1.516 103.866c1.224 26.815 5.482 45.127 11.71 61.151 6.438 16.566 15.052 30.615 29.057 44.62 14.005 14.005 28.055 22.619 44.62 29.057 16.025 6.228 34.337 10.486 61.151 11.71 26.87 1.226 35.449 1.516 103.866 1.516s76.997-.29 103.866-1.516c26.815-1.224 45.127-5.482 61.151-11.71 16.566-6.438 30.615-15.052 44.62-29.057 14.005-14.005 22.619-28.055 29.057-44.62 6.228-16.025 10.486-34.337 11.71-61.151 1.226-26.87 1.516-35.449 1.516-103.866s-.29-76.997-1.516-103.866c-1.224-26.815-5.482-45.127-11.71-61.151-6.438-16.566-15.052-30.615-29.057-44.62-14.005-14.005-28.055-22.619-44.62-29.057-16.025-6.228-34.337-10.486-61.151-11.71C332.997 4.369 324.418 4.079 256 4.079zm0 122.556c-71.446 0-129.365 57.918-129.365 129.365S184.554 385.365 256 385.365 385.365 327.446 385.365 256 327.446 126.635 256 126.635zm0 213.338c-46.377 0-83.974-37.596-83.974-83.973s37.596-83.974 83.974-83.974c46.377 0 83.974 37.596 83.974 83.974S302.377 339.973 256 339.973zM390.476 91.294c-16.696 0-30.23 13.535-30.23 30.23s13.535 30.23 30.23 30.23c16.696 0 30.23-13.535 30.23-30.23s-13.534-30.23-30.23-30.23z" fill="#fff"/></svg>
1
+ <svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M24 48C37.2548 48 48 37.2549 48 24C48 10.7451 37.2548 0 24 0C10.7452 0 0 10.7451 0 24C0 37.2549 10.7452 48 24 48ZM12.8354 7.91736C13.9153 7.49304 15.1505 7.20435 16.9593 7.11902C18.7725 7.03064 19.3505 7.01086 23.9673 7.00208C28.5842 6.99329 29.1666 7.01331 30.9761 7.09155C32.7856 7.16968 34.0215 7.45496 35.1034 7.87354C36.223 8.30457 37.1723 8.88428 38.1182 9.82788C39.064 10.7714 39.6472 11.7175 40.084 12.8351C40.5081 13.916 40.796 15.1471 40.882 16.96C40.9681 18.7728 40.9888 19.3516 40.9976 23.9674C41.0065 28.5833 40.9878 29.1626 40.9086 30.9772C40.83 32.7853 40.5454 34.0219 40.1265 35.103C39.6944 36.223 39.1144 37.1716 38.1722 38.1182C37.2301 39.0648 36.2825 39.6476 35.1649 40.0847C34.0844 40.5071 32.856 40.7968 31.0428 40.8827C29.2296 40.9688 28.6485 40.9891 24.0333 40.998C19.4182 41.0068 18.8358 40.9885 17.0262 40.9093C15.2168 40.8301 13.9802 40.5452 12.899 40.1273C11.777 39.6941 10.8298 39.1151 9.88354 38.1722C8.93732 37.2295 8.35352 36.2826 7.9173 35.1649C7.49298 34.0848 7.20532 32.8499 7.11902 31.0415C7.03125 29.2279 7.01086 28.6492 7.00201 24.0327C6.99316 19.4161 7.01086 18.8345 7.09076 17.0247C7.17065 15.2148 7.45422 13.9785 7.87274 12.8964C8.30524 11.7771 8.88562 10.8291 9.82812 9.8833C10.7706 8.93738 11.7178 8.35291 12.8354 7.91736ZM14.0006 37.2729C14.6003 37.5035 15.5003 37.7789 17.1578 37.851C18.951 37.9285 19.4865 37.9469 24.0262 37.937C28.5659 37.9271 29.1031 37.9094 30.8959 37.8251C32.5513 37.7462 33.4514 37.4674 34.0497 37.2339C34.8433 36.9238 35.4087 36.5559 36.0023 35.9589C36.596 35.3618 36.9649 34.7958 37.2709 34.0018C37.5018 33.4014 37.7765 32.5011 37.8489 30.8435C37.9274 29.0521 37.9434 28.5132 37.9352 23.9756C37.9271 19.4379 37.9077 18.9004 37.8224 17.1075C37.7441 15.4497 37.4661 14.5511 37.2318 13.9537C36.9217 13.1588 36.5535 12.5947 35.9561 12.0004C35.3587 11.4061 34.7933 11.0386 33.9987 10.7325C33.4 10.501 32.4987 10.2267 30.8425 10.1545C29.049 10.0757 28.5104 10.0587 23.9725 10.0686C19.4344 10.0784 18.8973 10.0955 17.1044 10.1804C15.4476 10.2593 14.5486 10.5374 13.9496 10.7714C13.1564 11.0814 12.5903 11.4493 11.9969 12.0466C11.4037 12.644 11.0351 13.2087 10.7291 14.004C10.4989 14.6035 10.2218 15.5045 10.1511 17.1606C10.0726 18.9528 10.0552 19.49 10.0651 24.0286C10.075 28.5673 10.0927 29.1051 10.1769 30.8966C10.2545 32.5541 10.535 33.4531 10.7679 34.0529C11.0779 34.8453 11.4451 35.4132 12.0428 36.0051C12.6406 36.597 13.2064 36.9669 14.0006 37.2729ZM31.3623 16.0471C31.1376 15.7119 31.0173 15.3177 31.0166 14.9142C31.0157 14.3733 31.2297 13.8541 31.6115 13.4709C31.9932 13.0878 32.5116 12.8719 33.0525 12.8708C33.456 12.87 33.8507 12.9889 34.1866 13.2124C34.5226 13.4359 34.7847 13.754 34.9398 14.1266C35.0949 14.499 35.1361 14.9092 35.0581 15.3051C34.9802 15.7009 34.7865 16.0648 34.5017 16.3507C34.2169 16.6365 33.8538 16.8314 33.4581 16.9109C33.0626 16.9904 32.6523 16.9507 32.2792 16.7969C31.9061 16.6432 31.5871 16.3822 31.3623 16.0471ZM24.0163 32.7285C19.1962 32.7377 15.2807 28.8383 15.2712 24.0171C15.262 19.1965 19.1621 15.2804 23.983 15.2709C28.8039 15.2614 32.7203 19.1619 32.7295 23.983C32.7387 28.8042 28.8365 32.7194 24.0163 32.7285ZM19.282 20.8607C18.6612 21.7938 18.331 22.8901 18.3332 24.0109C18.3346 24.7551 18.4825 25.4917 18.7687 26.1787C19.0548 26.8657 19.4734 27.4896 20.0007 28.0149C20.528 28.54 21.1536 28.9562 21.8417 29.2396C22.5298 29.5229 23.267 29.6681 24.0112 29.6665C25.132 29.6643 26.2269 29.3297 27.1576 28.7052C28.0883 28.0807 28.8129 27.1942 29.2397 26.158C29.6666 25.1216 29.7765 23.9819 29.5557 22.8832C29.3348 21.7844 28.7932 20.7758 27.9991 19.9847C27.205 19.1938 26.1942 18.6561 25.0945 18.4397C23.9948 18.2231 22.8557 18.3376 21.821 18.7686C20.7864 19.1996 19.9028 19.9276 19.282 20.8607Z" fill="white"/>
3
+ </svg>
@@ -596,13 +596,13 @@ exports[`renders correctly 1`] = `
596
596
  <a
597
597
  className="c5"
598
598
  data-test="header-esu-icon"
599
- href="https://twitter.com/comicrelief"
599
+ href="https://www.instagram.com/comicrelief"
600
600
  rel="noopener noreferrer"
601
601
  target="_blank"
602
- title="Check out our Twitter account"
602
+ title="Check out our Instagram account"
603
603
  >
604
604
  <img
605
- alt="twitter"
605
+ alt="instagram"
606
606
  className="c6"
607
607
  src="mock.asset"
608
608
  />
@@ -619,13 +619,13 @@ exports[`renders correctly 1`] = `
619
619
  <a
620
620
  className="c5"
621
621
  data-test="header-esu-icon"
622
- href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
622
+ href="https://twitter.com/comicrelief"
623
623
  rel="noopener noreferrer"
624
624
  target="_blank"
625
- title="Check out our YouTube channel"
625
+ title="Check out our Twitter account"
626
626
  >
627
627
  <img
628
- alt="youtube"
628
+ alt="twitter"
629
629
  className="c6"
630
630
  src="mock.asset"
631
631
  />
@@ -642,13 +642,13 @@ exports[`renders correctly 1`] = `
642
642
  <a
643
643
  className="c5"
644
644
  data-test="header-esu-icon"
645
- href="https://www.instagram.com/comicrelief"
645
+ href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
646
646
  rel="noopener noreferrer"
647
647
  target="_blank"
648
- title="Check out our Instagram account"
648
+ title="Check out our YouTube channel"
649
649
  >
650
650
  <img
651
- alt="instagram"
651
+ alt="youtube"
652
652
  className="c6"
653
653
  src="mock.asset"
654
654
  />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "7.1.1",
4
+ "version": "7.2.0",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -5,7 +5,7 @@ import instagram from '../assets/instagram.svg';
5
5
 
6
6
  export default {
7
7
  facebook,
8
+ instagram,
8
9
  twitter,
9
- youtube,
10
- instagram
10
+ youtube
11
11
  };
@@ -104,13 +104,13 @@ exports[`renders correctly with Comic Relief links 1`] = `
104
104
  <a
105
105
  className="c2"
106
106
  data-test="header-esu-icon"
107
- href="https://twitter.com/comicrelief"
107
+ href="https://www.instagram.com/comicrelief"
108
108
  rel="noopener noreferrer"
109
109
  target="_blank"
110
- title="Check out our Twitter account"
110
+ title="Check out our Instagram account"
111
111
  >
112
112
  <img
113
- alt="twitter"
113
+ alt="instagram"
114
114
  className="c3"
115
115
  src="mock.asset"
116
116
  />
@@ -127,13 +127,13 @@ exports[`renders correctly with Comic Relief links 1`] = `
127
127
  <a
128
128
  className="c2"
129
129
  data-test="header-esu-icon"
130
- href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
130
+ href="https://twitter.com/comicrelief"
131
131
  rel="noopener noreferrer"
132
132
  target="_blank"
133
- title="Check out our YouTube channel"
133
+ title="Check out our Twitter account"
134
134
  >
135
135
  <img
136
- alt="youtube"
136
+ alt="twitter"
137
137
  className="c3"
138
138
  src="mock.asset"
139
139
  />
@@ -150,13 +150,13 @@ exports[`renders correctly with Comic Relief links 1`] = `
150
150
  <a
151
151
  className="c2"
152
152
  data-test="header-esu-icon"
153
- href="https://www.instagram.com/comicrelief"
153
+ href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
154
154
  rel="noopener noreferrer"
155
155
  target="_blank"
156
- title="Check out our Instagram account"
156
+ title="Check out our YouTube channel"
157
157
  >
158
158
  <img
159
- alt="instagram"
159
+ alt="youtube"
160
160
  className="c3"
161
161
  src="mock.asset"
162
162
  />
@@ -274,13 +274,13 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
274
274
  <a
275
275
  className="c2"
276
276
  data-test="header-esu-icon"
277
- href="https://twitter.com/rednoseday"
277
+ href="https://www.instagram.com/rednoseday"
278
278
  rel="noopener noreferrer"
279
279
  target="_self"
280
- title="Check out our Twitter account"
280
+ title="Check out our Instagram account"
281
281
  >
282
282
  <img
283
- alt="twitter"
283
+ alt="instagram"
284
284
  className="c3"
285
285
  src="mock.asset"
286
286
  />
@@ -297,13 +297,13 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
297
297
  <a
298
298
  className="c2"
299
299
  data-test="header-esu-icon"
300
- href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
300
+ href="https://twitter.com/rednoseday"
301
301
  rel="noopener noreferrer"
302
302
  target="_self"
303
- title="Check out our YouTube channel"
303
+ title="Check out our Twitter account"
304
304
  >
305
305
  <img
306
- alt="youtube"
306
+ alt="twitter"
307
307
  className="c3"
308
308
  src="mock.asset"
309
309
  />
@@ -320,13 +320,13 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
320
320
  <a
321
321
  className="c2"
322
322
  data-test="header-esu-icon"
323
- href="https://www.instagram.com/rednoseday"
323
+ href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
324
324
  rel="noopener noreferrer"
325
325
  target="_self"
326
- title="Check out our Instagram account"
326
+ title="Check out our YouTube channel"
327
327
  >
328
328
  <img
329
- alt="instagram"
329
+ alt="youtube"
330
330
  className="c3"
331
331
  src="mock.asset"
332
332
  />
@@ -444,13 +444,13 @@ exports[`renders correctly with Sport Relief links 1`] = `
444
444
  <a
445
445
  className="c2"
446
446
  data-test="header-esu-icon"
447
- href="https://twitter.com/sportrelief"
447
+ href="https://www.instagram.com/sportrelief"
448
448
  rel="noopener noreferrer"
449
449
  target="_blank"
450
- title="Check out our Twitter account"
450
+ title="Check out our Instagram account"
451
451
  >
452
452
  <img
453
- alt="twitter"
453
+ alt="instagram"
454
454
  className="c3"
455
455
  src="mock.asset"
456
456
  />
@@ -467,13 +467,13 @@ exports[`renders correctly with Sport Relief links 1`] = `
467
467
  <a
468
468
  className="c2"
469
469
  data-test="header-esu-icon"
470
- href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
470
+ href="https://twitter.com/sportrelief"
471
471
  rel="noopener noreferrer"
472
472
  target="_blank"
473
- title="Check out our YouTube channel"
473
+ title="Check out our Twitter account"
474
474
  >
475
475
  <img
476
- alt="youtube"
476
+ alt="twitter"
477
477
  className="c3"
478
478
  src="mock.asset"
479
479
  />
@@ -490,13 +490,13 @@ exports[`renders correctly with Sport Relief links 1`] = `
490
490
  <a
491
491
  className="c2"
492
492
  data-test="header-esu-icon"
493
- href="https://www.instagram.com/sportrelief"
493
+ href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
494
494
  rel="noopener noreferrer"
495
495
  target="_blank"
496
- title="Check out our Instagram account"
496
+ title="Check out our YouTube channel"
497
497
  >
498
498
  <img
499
- alt="instagram"
499
+ alt="youtube"
500
500
  className="c3"
501
501
  src="mock.asset"
502
502
  />
@@ -1 +1,3 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 49.471c67.266 0 75.233.257 101.797 1.469 24.562 1.121 37.901 5.224 46.778 8.674 11.759 4.57 20.151 10.029 28.966 18.845 8.816 8.815 14.275 17.208 18.845 28.966 3.45 8.877 7.554 22.216 8.674 46.778 1.212 26.565 1.469 34.532 1.469 101.798s-.257 75.233-1.469 101.797c-1.121 24.562-5.225 37.901-8.674 46.778-4.57 11.759-10.029 20.151-18.845 28.966-8.816 8.816-17.208 14.275-28.966 18.845-8.877 3.45-22.216 7.554-46.778 8.674-26.56 1.212-34.527 1.469-101.797 1.469s-75.237-.257-101.797-1.469c-24.562-1.121-37.901-5.225-46.778-8.674-11.759-4.57-20.151-10.029-28.966-18.845-8.815-8.815-14.275-17.208-18.845-28.966-3.45-8.877-7.554-22.216-8.674-46.778-1.212-26.564-1.469-34.532-1.469-101.798s.257-75.233 1.469-101.797c1.121-24.562 5.224-37.901 8.674-46.778 4.57-11.759 10.029-20.151 18.845-28.966 8.815-8.815 17.208-14.275 28.966-18.845 8.877-3.45 22.216-7.554 46.778-8.674 26.564-1.213 34.531-1.469 101.797-1.469m0-45.392c-68.418 0-76.997.29-103.866 1.516-26.815 1.224-45.127 5.482-61.151 11.71-16.566 6.438-30.615 15.052-44.62 29.057-14.005 14.005-22.619 28.055-29.057 44.62-6.228 16.025-10.486 34.337-11.71 61.151C4.369 179.003 4.079 187.582 4.079 256s.29 76.997 1.516 103.866c1.224 26.815 5.482 45.127 11.71 61.151 6.438 16.566 15.052 30.615 29.057 44.62 14.005 14.005 28.055 22.619 44.62 29.057 16.025 6.228 34.337 10.486 61.151 11.71 26.87 1.226 35.449 1.516 103.866 1.516s76.997-.29 103.866-1.516c26.815-1.224 45.127-5.482 61.151-11.71 16.566-6.438 30.615-15.052 44.62-29.057 14.005-14.005 22.619-28.055 29.057-44.62 6.228-16.025 10.486-34.337 11.71-61.151 1.226-26.87 1.516-35.449 1.516-103.866s-.29-76.997-1.516-103.866c-1.224-26.815-5.482-45.127-11.71-61.151-6.438-16.566-15.052-30.615-29.057-44.62-14.005-14.005-28.055-22.619-44.62-29.057-16.025-6.228-34.337-10.486-61.151-11.71C332.997 4.369 324.418 4.079 256 4.079zm0 122.556c-71.446 0-129.365 57.918-129.365 129.365S184.554 385.365 256 385.365 385.365 327.446 385.365 256 327.446 126.635 256 126.635zm0 213.338c-46.377 0-83.974-37.596-83.974-83.973s37.596-83.974 83.974-83.974c46.377 0 83.974 37.596 83.974 83.974S302.377 339.973 256 339.973zM390.476 91.294c-16.696 0-30.23 13.535-30.23 30.23s13.535 30.23 30.23 30.23c16.696 0 30.23-13.535 30.23-30.23s-13.534-30.23-30.23-30.23z" fill="#fff"/></svg>
1
+ <svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M24 48C37.2548 48 48 37.2549 48 24C48 10.7451 37.2548 0 24 0C10.7452 0 0 10.7451 0 24C0 37.2549 10.7452 48 24 48ZM12.8354 7.91736C13.9153 7.49304 15.1505 7.20435 16.9593 7.11902C18.7725 7.03064 19.3505 7.01086 23.9673 7.00208C28.5842 6.99329 29.1666 7.01331 30.9761 7.09155C32.7856 7.16968 34.0215 7.45496 35.1034 7.87354C36.223 8.30457 37.1723 8.88428 38.1182 9.82788C39.064 10.7714 39.6472 11.7175 40.084 12.8351C40.5081 13.916 40.796 15.1471 40.882 16.96C40.9681 18.7728 40.9888 19.3516 40.9976 23.9674C41.0065 28.5833 40.9878 29.1626 40.9086 30.9772C40.83 32.7853 40.5454 34.0219 40.1265 35.103C39.6944 36.223 39.1144 37.1716 38.1722 38.1182C37.2301 39.0648 36.2825 39.6476 35.1649 40.0847C34.0844 40.5071 32.856 40.7968 31.0428 40.8827C29.2296 40.9688 28.6485 40.9891 24.0333 40.998C19.4182 41.0068 18.8358 40.9885 17.0262 40.9093C15.2168 40.8301 13.9802 40.5452 12.899 40.1273C11.777 39.6941 10.8298 39.1151 9.88354 38.1722C8.93732 37.2295 8.35352 36.2826 7.9173 35.1649C7.49298 34.0848 7.20532 32.8499 7.11902 31.0415C7.03125 29.2279 7.01086 28.6492 7.00201 24.0327C6.99316 19.4161 7.01086 18.8345 7.09076 17.0247C7.17065 15.2148 7.45422 13.9785 7.87274 12.8964C8.30524 11.7771 8.88562 10.8291 9.82812 9.8833C10.7706 8.93738 11.7178 8.35291 12.8354 7.91736ZM14.0006 37.2729C14.6003 37.5035 15.5003 37.7789 17.1578 37.851C18.951 37.9285 19.4865 37.9469 24.0262 37.937C28.5659 37.9271 29.1031 37.9094 30.8959 37.8251C32.5513 37.7462 33.4514 37.4674 34.0497 37.2339C34.8433 36.9238 35.4087 36.5559 36.0023 35.9589C36.596 35.3618 36.9649 34.7958 37.2709 34.0018C37.5018 33.4014 37.7765 32.5011 37.8489 30.8435C37.9274 29.0521 37.9434 28.5132 37.9352 23.9756C37.9271 19.4379 37.9077 18.9004 37.8224 17.1075C37.7441 15.4497 37.4661 14.5511 37.2318 13.9537C36.9217 13.1588 36.5535 12.5947 35.9561 12.0004C35.3587 11.4061 34.7933 11.0386 33.9987 10.7325C33.4 10.501 32.4987 10.2267 30.8425 10.1545C29.049 10.0757 28.5104 10.0587 23.9725 10.0686C19.4344 10.0784 18.8973 10.0955 17.1044 10.1804C15.4476 10.2593 14.5486 10.5374 13.9496 10.7714C13.1564 11.0814 12.5903 11.4493 11.9969 12.0466C11.4037 12.644 11.0351 13.2087 10.7291 14.004C10.4989 14.6035 10.2218 15.5045 10.1511 17.1606C10.0726 18.9528 10.0552 19.49 10.0651 24.0286C10.075 28.5673 10.0927 29.1051 10.1769 30.8966C10.2545 32.5541 10.535 33.4531 10.7679 34.0529C11.0779 34.8453 11.4451 35.4132 12.0428 36.0051C12.6406 36.597 13.2064 36.9669 14.0006 37.2729ZM31.3623 16.0471C31.1376 15.7119 31.0173 15.3177 31.0166 14.9142C31.0157 14.3733 31.2297 13.8541 31.6115 13.4709C31.9932 13.0878 32.5116 12.8719 33.0525 12.8708C33.456 12.87 33.8507 12.9889 34.1866 13.2124C34.5226 13.4359 34.7847 13.754 34.9398 14.1266C35.0949 14.499 35.1361 14.9092 35.0581 15.3051C34.9802 15.7009 34.7865 16.0648 34.5017 16.3507C34.2169 16.6365 33.8538 16.8314 33.4581 16.9109C33.0626 16.9904 32.6523 16.9507 32.2792 16.7969C31.9061 16.6432 31.5871 16.3822 31.3623 16.0471ZM24.0163 32.7285C19.1962 32.7377 15.2807 28.8383 15.2712 24.0171C15.262 19.1965 19.1621 15.2804 23.983 15.2709C28.8039 15.2614 32.7203 19.1619 32.7295 23.983C32.7387 28.8042 28.8365 32.7194 24.0163 32.7285ZM19.282 20.8607C18.6612 21.7938 18.331 22.8901 18.3332 24.0109C18.3346 24.7551 18.4825 25.4917 18.7687 26.1787C19.0548 26.8657 19.4734 27.4896 20.0007 28.0149C20.528 28.54 21.1536 28.9562 21.8417 29.2396C22.5298 29.5229 23.267 29.6681 24.0112 29.6665C25.132 29.6643 26.2269 29.3297 27.1576 28.7052C28.0883 28.0807 28.8129 27.1942 29.2397 26.158C29.6666 25.1216 29.7765 23.9819 29.5557 22.8832C29.3348 21.7844 28.7932 20.7758 27.9991 19.9847C27.205 19.1938 26.1942 18.6561 25.0945 18.4397C23.9948 18.2231 22.8557 18.3376 21.821 18.7686C20.7864 19.1996 19.9028 19.9276 19.282 20.8607Z" fill="white"/>
3
+ </svg>
@@ -596,13 +596,13 @@ exports[`renders correctly 1`] = `
596
596
  <a
597
597
  className="c5"
598
598
  data-test="header-esu-icon"
599
- href="https://twitter.com/comicrelief"
599
+ href="https://www.instagram.com/comicrelief"
600
600
  rel="noopener noreferrer"
601
601
  target="_blank"
602
- title="Check out our Twitter account"
602
+ title="Check out our Instagram account"
603
603
  >
604
604
  <img
605
- alt="twitter"
605
+ alt="instagram"
606
606
  className="c6"
607
607
  src="mock.asset"
608
608
  />
@@ -619,13 +619,13 @@ exports[`renders correctly 1`] = `
619
619
  <a
620
620
  className="c5"
621
621
  data-test="header-esu-icon"
622
- href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
622
+ href="https://twitter.com/comicrelief"
623
623
  rel="noopener noreferrer"
624
624
  target="_blank"
625
- title="Check out our YouTube channel"
625
+ title="Check out our Twitter account"
626
626
  >
627
627
  <img
628
- alt="youtube"
628
+ alt="twitter"
629
629
  className="c6"
630
630
  src="mock.asset"
631
631
  />
@@ -642,13 +642,13 @@ exports[`renders correctly 1`] = `
642
642
  <a
643
643
  className="c5"
644
644
  data-test="header-esu-icon"
645
- href="https://www.instagram.com/comicrelief"
645
+ href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
646
646
  rel="noopener noreferrer"
647
647
  target="_blank"
648
- title="Check out our Instagram account"
648
+ title="Check out our YouTube channel"
649
649
  >
650
650
  <img
651
- alt="instagram"
651
+ alt="youtube"
652
652
  className="c6"
653
653
  src="mock.asset"
654
654
  />