Button
A control that performs an action in place, such as submitting a form or opening a dialog, without changing the URL.
Use cases
People using assistive technology should be able to:
- Find the button and hear what it does.
- Reach it with the keyboard and press it.
- Know when it is disabled and skip past it.
Reading order
The visible label is the accessible name, so write it as the action ("Publish", not "Click here"). An icon-only Button has no visible label: TypeScript requires an aria-label for it.
Keyboard and focus
It works like a native button: Tab reaches it, Enter or Space presses it. A disabled Button leaves the tab order, so explain nearby why an action is unavailable.
Add a cover image to publish. Publishing rules
Every component follows ADR-025, ADR-026 and ADR-028(states, prop vocabulary, focus indicator); they are not repeated per component.