Actions
Button
A pill that runs one action when pressed, used for the commands of a screen such as "Mark as done" or "Continue".
In kanso-ui as Button
Accessibility
- A
<button>named by its visible label; an<a href>wearsk-btnonly when it navigates. - Tab reaches it; Enter and Space press it.
disabledleaves the tab order;aria-disabled="true"stays focusable: pointaria-describedbyat the reason and ignore the press. - Targets: 48px on phones; 40px and 32px on the web only.
- Contrast, light / dark:
on-accentonaccent7.6 / 7.7:1;on-inkonink16.7 / 15.9:1;inkoncontainer14.3 / 12.0:1;accenttext onpaper7.3 / 9.0:1;on-criticaloncritical6.5 / 7.7:1; theoutlineedge onpaper3.3 / 5.6:1; the focus ring onpaper7.3 / 9.0:1. Tonal and text buttons are found by their label. - Motion: a 150ms spring on press, off under
prefers-reduced-motion.