Skip to content

Commit 201556e

Browse files
Add new icons (#169)
* add new icons and class name to each icon * add icon colour black modifier class
1 parent d09ad66 commit 201556e

27 files changed

+144
-16
lines changed

docs/_includes/layouts/icons-example.njk

+55
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/account.svg">account.svg</a></td>
1717
<td>Account and settings - <a href="/components/top-navigation/">top navigation</a></td>
1818
</tr>
19+
<tr>
20+
<td>{{ nhsappIcon('calendar') }}</td>
21+
<td>calendar</td>
22+
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/calendar.svg">calendar.svg</a></td>
23+
<td>Add to calendar</td>
24+
</tr>
25+
<tr>
26+
<td>{{ nhsappIcon('clock') }}</td>
27+
<td>clock</td>
28+
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/clock.svg">clock.svg</a></td>
29+
<td>Long stay on appointments</td>
30+
</tr>
1931
<tr>
2032
<td>{{ nhsappIcon('chevronRight') }}</td>
2133
<td>chevronRight</td>
@@ -34,6 +46,24 @@
3446
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/cross.svg">cross.svg</a></td>
3547
<td>Services - <a href="/components/bottom-navigation/">bottom navigation</a></td>
3648
</tr>
49+
<tr>
50+
<td>{{ nhsappIcon('download') }}</td>
51+
<td>download</td>
52+
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/download.svg">download.svg</a></td>
53+
<td>Download a document on appointments</td>
54+
</tr>
55+
<tr>
56+
<td>{{ nhsappIcon('email') }}</td>
57+
<td>email</td>
58+
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/email.svg">email.svg</a></td>
59+
<td>Get a copy of document by email on appointments</td>
60+
</tr>
61+
<tr>
62+
<td>{{ nhsappIcon('filter') }}</td>
63+
<td>filter</td>
64+
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/filter.svg">filter.svg</a></td>
65+
<td>Filter a list</td>
66+
</tr>
3767
<tr>
3868
<td>{{ nhsappIcon('heartFilled') }}</td>
3969
<td>heartFilled</td>
@@ -64,6 +94,12 @@
6494
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/home.svg">home.svg</a></td>
6595
<td>Home - <a href="/components/bottom-navigation/">bottom navigation</a></td>
6696
</tr>
97+
<tr>
98+
<td>{{ nhsappIcon('letter') }}</td>
99+
<td>letter</td>
100+
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/letter.svg">letter.svg</a></td>
101+
<td>Get a copy of document by post on appointments</td>
102+
</tr>
67103
<tr>
68104
<td>{{ nhsappIcon('messagesFilled') }}</td>
69105
<td>messagesFilled</td>
@@ -88,6 +124,25 @@
88124
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/messages-unread.svg">messages-unread.svg</a></td>
89125
<td>Messages with unread items - <a href="/components/bottom-navigation/">bottom navigation</a> and <a href="/components/card-links/">card links</a></td>
90126
</tr>
127+
<tr>
128+
<td>{{ nhsappIcon('night') }}</td>
129+
<td>night</td>
130+
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/night.svg">night.svg</a></td>
131+
<td>Overnight stay on appointments</td>
132+
</tr>
133+
<tr>
134+
<td>{{ nhsappIcon('phoneCall') }}</td>
135+
<td>phoneCall
136+
</td>
137+
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/phone-call.svg">phone-call.svg</a></td>
138+
<td>Call to confirm on appointments</td>
139+
</tr>
140+
<tr>
141+
<td>{{ nhsappIcon('sort') }}</td>
142+
<td>sort</td>
143+
<td><a target="_blank" rel="noopener noreferrer" href="https://github.com/nhsuk/nhsapp-frontend/tree/main/src/assets/icons/messages-unread.svg">sort.svg</a></td>
144+
<td>Sort a list</td>
145+
</tr>
91146
<tr>
92147
<td>{{ nhsappIcon('switchProfile') }}</td>
93148
<td>switchProfile</td>

docs/components/icons.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ You can find the [icons in Figma](https://www.figma.com/design/6f2CbcZ7cnpNrtKEc
3535

3636
## Accessibility
3737

38-
Icons that act as functional buttons should have aria labels, so that they are announced to screen reader users. If an icon is not functional, and it appears alongside supporting text that conveys the same meaning, it may not need alt-text or an aria label. Designers and developers should work together to understand the most accessible option in context, considering [NHS Service Manual accessibility guidance](https://service-manual.nhs.uk/accessibility/design).
38+
Icons that act as functional buttons should have aria labels, so that they are announced to screen reader users. If an icon is not functional, and it appears alongside supporting text that conveys the same meaning, it may not need alt-text or an aria label.
39+
40+
Designers and developers should work together to understand the most accessible option in context, considering [NHS Service Manual accessibility guidance](https://service-manual.nhs.uk/accessibility/design).
3941

4042
## Research
4143

42-
The icons used on the top navigation and bottom navigation of the NHS App were well-recognised when shown to users without supporting text in our research sessions. Participants generally understood the meaning of the icons. However, the research supported the need for some icons to have accompanying text to make the meaning clear.
44+
The icons used on the top navigation and bottom navigation of the NHS App were well-recognised when shown to users without supporting text in our research sessions.
45+
46+
Participants generally understood the meaning of the icons. However, the research supported the need for some icons to have accompanying text to make the meaning clear.

src/assets/icons/account.svg

+1-1
Loading

src/assets/icons/calendar.svg

+3
Loading

src/assets/icons/chevron-right.svg

+1-1
Loading

src/assets/icons/clock.svg

+4
Loading

src/assets/icons/cross-filled.svg

+1-1
Loading

src/assets/icons/cross.svg

+1-1
Loading

src/assets/icons/download.svg

+3
Loading

src/assets/icons/email.svg

+3
Loading

src/assets/icons/filter.svg

+3
Loading

src/assets/icons/heart-filled.svg

+1-1
Loading

src/assets/icons/heart.svg

+1-1
Loading

src/assets/icons/help.svg

+1-1
Loading

0 commit comments

Comments
 (0)