Card (NHS Digital Service Manual)
The NHS digital service manual’s card component: when to use a card and when not to, primary and secondary variants, clickable and non-clickable cards, images, card actions, grouping, and widths.
License: Open Government Licence v3.0 — https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/ (stated in the page’s own footer).
Key points
- When to use: to visually group related content and actions so people can do what they need more quickly. Several cards can be grouped, and a grouped set used as a hub (landing) page follows the separate hub page pattern.
- When not to use: not to highlight content within long-form content. Consider the care card pattern, details, an expander, inset text, tabs, or a warning callout first.
- Contents: a heading, text, and one or more links, optionally an image or actions. A link should mirror the heading of the page it leads to. Keep cards short so they’re easy to scan.
- Primary and secondary cards: primary cards are more visually prominent. A primary card with a chevron is more prominent still and only comes in a clickable version. Secondary cards have less visual impact and group less important content or actions alongside other cards.
- Clickable cards: both types can be clickable or not. Avoid wrapping the entire card in an anchor tag, which is a difficult experience for screen reader users. Use a non-clickable card when it holds more than one link.
- Images: only use cards with images when there’s evidence they help users, for example by motivating them. Images display above the heading and text and are decorative by default, with null alternative text.
- Actions: one or more action links (e.g. edit appointment, cancel order), shown below the heading on small screens and right-aligned on larger ones. They can’t be used on clickable cards.
- A screen reader reads the card heading with each action, so a short, unique heading makes every action link unique, and the link text itself can be short (e.g. “edit,” “delete”).
- No more than 3 actions.
- For actions that can’t easily be undone, consider a warning or a confirmation step.
- Width: set from the grid system (halves, thirds, quarters). At thirds or quarters, check small screens and avoid paragraphs of text.
- Accessibility: set heading levels to reflect the page structure, changing the default
h2where needed. - Research: tested on the NHS website, the summary care record, and the NHS login help centre, where cards helped users scan for relevant information and decide where to go next.