Feedback
Empty state
An empty state takes the place of a list or page that has nothing in it yet: it says what is missing in plain words and offers the next step, such as "No files yet" with "Attach file".
In kanso-ui as EmptyState
Accessibility
- The title is a heading at its section's level (
h2on a page,h3in a card); the body is a paragraph. - The marks carry no information here, so their row is
aria-hidden="true"; the title says what is empty. - The button's label names the outcome ("Attach file"); its icon is
aria-hidden="true". - Targets: the button is 48px tall (
size-control-lg). - Contrast, on
surface: the title,ink, 17.4:1 in light and 14.4:1 in dark; the body,ink-muted, 6.7:1 and 8.1:1; the marks'inkoutline, the same 17.4:1 and 14.4:1; the button's label,on-accentonaccent, 7.6:1 and 7.7:1; the focus ring, 7.6:1 and 8.2:1. - Motion: only the button's press, which
prefers-reduced-motion: reduceremoves.