Cards

Cards are used to hold a small, focused piece of information about a single subject.
They stand out from other components thanks to their clear outline and enclosed nature, making them ideal for drawing attention to important content.

Interactive behaviour

Do

A card can only have one interaction model – fully clickable, or a slotted element, never both.

Don't

Don't combine slotted interactive elements with the nav-arrow. When slotted elements are used, the nav-arrow must be removed.

Don't

Cards with a slotted button or link cannot be clickable or selectable as a whole.

 

Content

  • Keep card content focused and scannable. Avoid overloading a single card with too much text, multiple calls to action, or unrelated information.
  • Use the default slot only for elements that enhance the card's primary action – such as a button (-group), a link (-list), or a concise list. Do not use the slot for decorative or purely structural content.

Accessibility

  1. If you are using cards to layout content, provide the correct heading following the page structure and set thelabel-aria-level accordingly.
  2. Without the label-aria-level attribute the header is visible, but is ignored from assistive technology as heading.
  3. Provide media-sr-hint attribute text which describes the content or function of the image or icon. See imagery guidelines for requirements that apply to Cards with images.

For additional ways to structure and group content to optimise navigation and areas for assistive technologies, see WCAG Web Accessibility page structure.