-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from nhsuk/card-links
Add card link component guidance
- Loading branch information
Showing
4 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
layout: layouts/plain.njk | ||
title: Card links | ||
--- | ||
|
||
Use card links to help users reach the next stage of their NHS App journey. | ||
|
||
## When to use | ||
|
||
Use card links to take users: | ||
- to the start of an NHS App service | ||
- deeper into an area of the app | ||
|
||
## When not to use | ||
|
||
Do not place card links in the middle of paragraph text. | ||
|
||
## How to use | ||
|
||
The whole card should always act as a single, selectable link. | ||
|
||
Use the variation below that fits best with the context. | ||
|
||
### Short card link | ||
|
||
This is our preferred style. A concise phrase explains where the link goes. It can be read quickly because of the short amount of text. | ||
|
||
[embed short card link example] | ||
|
||
### Card link with paragraph text | ||
|
||
On pages deeper in the structure of the NHS App, users may need more details to understand where links go. In this case, you can use paragraph text below the heading to give more information. | ||
|
||
Only use this variation if you have found a user need for more detailed links on a particular page. A form of this variation is currently used on the “Messages” hub to explain different inboxes to users. | ||
|
||
[embed paragraph text example] | ||
|
||
### Using icons | ||
|
||
Icons may help users to understand the meaning of a card link. We currently only use this variation for “Switch profiles” and “Messages” links on the homepage. | ||
|
||
[embed icon example] | ||
|
||
### Using badges | ||
|
||
Use badges to alert users to new, important information that sits beyond a card link. This could include unread messages or new appointment details. | ||
|
||
[embed badge example] | ||
|
||
## Content guidance | ||
|
||
Aim to use active phrasing for card link text. This means starting the link text with a verb. For example: "Request repeat prescriptions" and "Check for available GP appointments". This follows content guidance on links and helps users to understand the action they can take. | ||
|
||
However, you may find reasons to vary this to fit with the context. On the "Your health" hub, we mainly use noun phrases (such as "GP health record") for brevity and to avoid multiple links starting with the same verb. | ||
|
||
In usability testing, we did not see evidence of this mixture of phrasing causing problems for users. We also noted that GOV.UK also vary link phrasing in a similar way. However, more research on link phrasing may be helpful to validate the best approach. | ||
|
||
## Accessibility | ||
|
||
Multiple card links placed together must be marked up as lists in the HTML code. This helps screen reader users to navigate the content, for example by letting them know how many items there are in the list. | ||
|
||
If a page has a long list of card links, consider breaking them up using headings. This makes the information easier to digest and can help screen reader users who may navigate pages by headings. | ||
|
||
If you are using icons, they should have [aria labels/hidden text?] so that screen reader users also benefit from this additional prompt on the card link. | ||
|
||
## Research | ||
|
||
In usability testing, people successfully navigated the NHS App and completed a range of tasks using short card links. They understood the meaning of the links despite the short amount of text. | ||
|
||
In some usability testing involving card links with paragraph text, users have overlooked the paragraph text. However, paragraph text has been found to help users differentiate inboxes on the “Messages” hub. | ||
|
||
The icons used on homepage card links were well understood in our user research. People were able to recognise the images and associate them with the link destination. | ||
|
||
### Knowledge gaps | ||
|
||
As noted in the content guidance section above, more research into link phrasing may help us to understand the best way to word NHS App links. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
layout: layouts/plain.njk | ||
isIndex: true | ||
title: Components | ||
--- | ||
|
||
[Card links](./card-links) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters