Actions
Icon button
Use a recognisable icon for a compact action and give the button an accessible name.
Anatomy
- Button container
- Action icon
Live example
Use an icon-only button when space is limited and the icon is easy to recognise. Give the button an action-based name like aria-label="Add notification" and hide the decorative icon from assistive technology.
Design tokens used
| Category | Token | Value | Where itβs used |
|---|---|---|---|
| Colour | --cc-foreground | β | Secondary button label, icon, and hover outline |
--cc-surface | β | Secondary button background | |
--cc-surface-muted | β | Secondary button background on hover | |
--cc-border | β | Secondary button border | |
--cc-focus-ring | β | Keyboard focus ring |