Skip to content

Commit df03ce4

Browse files
Remove icons not in NHS.UK frontend v10.0.0
1 parent 7bafd0a commit df03ce4

File tree

15 files changed

+0
-286
lines changed

15 files changed

+0
-286
lines changed

src/__tests__/index.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,14 @@ describe('Index', () => {
1717
'CharacterCount',
1818
'CharacterCountType',
1919
'Checkboxes',
20-
'ChevronLeftIcon',
21-
'ChevronRightIcon',
2220
'Clearfix',
23-
'CloseIcon',
2421
'Col',
2522
'Container',
2623
'ContentsList',
2724
'CrossIcon',
2825
'DateInput',
2926
'Details',
3027
'DoAndDontList',
31-
'EmdashIcon',
3228
'ErrorMessage',
3329
'ErrorSummary',
3430
'Fieldset',
@@ -42,19 +38,16 @@ describe('Index', () => {
4238
'InsetText',
4339
'Label',
4440
'LedeText',
45-
'MinusIcon',
4641
'NavAZ',
4742
'Pagination',
4843
'Panel',
49-
'PlusIcon',
5044
'Radios',
5145
'ReadingWidth',
5246
'ReviewDate',
5347
'Row',
5448
'SearchIcon',
5549
'Select',
5650
'SkipLink',
57-
'SmallEmdashIcon',
5851
'SummaryList',
5952
'Table',
6053
'Tabs',

src/components/content-presentation/icons/__tests__/__snapshots__/Icons.test.tsx.snap

Lines changed: 0 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -55,57 +55,6 @@ exports[`Icons all icons match snapshots: ArrowRightCircle 1`] = `
5555
</div>
5656
`;
5757

58-
exports[`Icons all icons match snapshots: ChevronDown 1`] = `
59-
<div>
60-
<svg
61-
aria-hidden="true"
62-
class="nhsuk-icon nhsuk-icon__chevron-down"
63-
height="34"
64-
viewBox="0 0 24 24"
65-
width="34"
66-
xmlns="http://www.w3.org/2000/svg"
67-
>
68-
<path
69-
d="M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z"
70-
/>
71-
</svg>
72-
</div>
73-
`;
74-
75-
exports[`Icons all icons match snapshots: ChevronLeft 1`] = `
76-
<div>
77-
<svg
78-
aria-hidden="true"
79-
class="nhsuk-icon nhsuk-icon__chevron-left"
80-
height="34"
81-
viewBox="0 0 24 24"
82-
width="34"
83-
xmlns="http://www.w3.org/2000/svg"
84-
>
85-
<path
86-
d="M8.5 12c0-.3.1-.5.3-.7l5-5c.4-.4 1-.4 1.4 0s.4 1 0 1.4L10.9 12l4.3 4.3c.4.4.4 1 0 1.4s-1 .4-1.4 0l-5-5c-.2-.2-.3-.4-.3-.7z"
87-
/>
88-
</svg>
89-
</div>
90-
`;
91-
92-
exports[`Icons all icons match snapshots: ChevronRight 1`] = `
93-
<div>
94-
<svg
95-
aria-hidden="true"
96-
class="nhsuk-icon nhsuk-icon__chevron-right"
97-
height="34"
98-
viewBox="0 0 24 24"
99-
width="34"
100-
xmlns="http://www.w3.org/2000/svg"
101-
>
102-
<path
103-
d="M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z"
104-
/>
105-
</svg>
106-
</div>
107-
`;
108-
10958
exports[`Icons all icons match snapshots: ChevronRightCircle 1`] = `
11059
<div>
11160
<svg
@@ -142,23 +91,6 @@ exports[`Icons all icons match snapshots: ChevronRightCircle 1`] = `
14291
</div>
14392
`;
14493

145-
exports[`Icons all icons match snapshots: Close 1`] = `
146-
<div>
147-
<svg
148-
aria-hidden="true"
149-
class="nhsuk-icon nhsuk-icon__close"
150-
height="34"
151-
viewBox="0 0 24 24"
152-
width="34"
153-
xmlns="http://www.w3.org/2000/svg"
154-
>
155-
<path
156-
d="M13.41 12l5.3-5.29a1 1 0 1 0-1.42-1.42L12 10.59l-5.29-5.3a1 1 0 0 0-1.42 1.42l5.3 5.29-5.3 5.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l5.29-5.3 5.29 5.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"
157-
/>
158-
</svg>
159-
</div>
160-
`;
161-
16294
exports[`Icons all icons match snapshots: Cross 1`] = `
16395
<div>
16496
<svg
@@ -181,77 +113,6 @@ exports[`Icons all icons match snapshots: Cross 1`] = `
181113
</div>
182114
`;
183115

184-
exports[`Icons all icons match snapshots: Emdash 1`] = `
185-
<div>
186-
<svg
187-
aria-hidden="true"
188-
class="nhsuk-icon nhsuk-icon__emdash"
189-
height="1"
190-
viewBox="0 0 24 24"
191-
width="19"
192-
xmlns="http://www.w3.org/2000/svg"
193-
>
194-
<path
195-
d="M0 0h19v1H0z"
196-
/>
197-
</svg>
198-
</div>
199-
`;
200-
201-
exports[`Icons all icons match snapshots: Minus 1`] = `
202-
<div>
203-
<svg
204-
aria-hidden="true"
205-
class="nhsuk-icon nhsuk-icon__minus"
206-
height="34"
207-
viewBox="0 0 24 24"
208-
width="34"
209-
xmlns="http://www.w3.org/2000/svg"
210-
>
211-
<circle
212-
cx="12"
213-
cy="12"
214-
r="10"
215-
/>
216-
<path
217-
d="M8 12h8"
218-
fill="none"
219-
stroke="#fff"
220-
stroke-linecap="round"
221-
stroke-miterlimit="10"
222-
stroke-width="2"
223-
/>
224-
</svg>
225-
</div>
226-
`;
227-
228-
exports[`Icons all icons match snapshots: Plus 1`] = `
229-
<div>
230-
<svg
231-
aria-hidden="true"
232-
class="nhsuk-icon nhsuk-icon__minus"
233-
height="34"
234-
viewBox="0 0 24 24"
235-
width="34"
236-
xmlns="http://www.w3.org/2000/svg"
237-
>
238-
<circle
239-
cx="12"
240-
cy="12"
241-
r="10"
242-
/>
243-
<path
244-
d="M12 8v8M8 12h8"
245-
fill="none"
246-
stroke="#fff"
247-
stroke-linecap="round"
248-
stroke-miterlimit="10"
249-
stroke-width="2"
250-
/>
251-
</svg>
252-
</div>
253-
`;
254-
255116
exports[`Icons all icons match snapshots: Search 1`] = `
256117
<div>
257118
<svg
@@ -269,23 +130,6 @@ exports[`Icons all icons match snapshots: Search 1`] = `
269130
</div>
270131
`;
271132

272-
exports[`Icons all icons match snapshots: SmallEmdash 1`] = `
273-
<div>
274-
<svg
275-
aria-hidden="true"
276-
class="nhsuk-icon nhsuk-icon__emdash"
277-
height="1"
278-
viewBox="0 0 24 24"
279-
width="16"
280-
xmlns="http://www.w3.org/2000/svg"
281-
>
282-
<path
283-
d="M0 0h16v1H0z"
284-
/>
285-
</svg>
286-
</div>
287-
`;
288-
289133
exports[`Icons all icons match snapshots: Tick 1`] = `
290134
<div>
291135
<svg
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
export { ArrowLeft } from './individual/ArrowLeft';
22
export { ArrowRight } from './individual/ArrowRight';
33
export { ArrowRightCircle } from './individual/ArrowRightCircle';
4-
export { ChevronDown } from './individual/ChevronDown';
5-
export { ChevronLeft } from './individual/ChevronLeft';
6-
export { ChevronRight } from './individual/ChevronRight';
74
export { ChevronRightCircle } from './individual/ChevronRightCircle';
8-
export { Close } from './individual/Close';
95
export { Cross } from './individual/Cross';
10-
export { SmallEmdash } from './individual/SmallEmdash';
11-
export { Emdash } from './individual/Emdash';
12-
export { Minus } from './individual/Minus';
13-
export { Plus } from './individual/Plus';
146
export { Search } from './individual/Search';
157
export { Tick } from './individual/Tick';

src/components/content-presentation/icons/individual/ChevronDown.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/content-presentation/icons/individual/ChevronLeft.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/content-presentation/icons/individual/ChevronRight.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/content-presentation/icons/individual/Close.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/content-presentation/icons/individual/Emdash.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/content-presentation/icons/individual/Minus.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/components/content-presentation/icons/individual/Plus.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)