Skip to main content
  1. Docs
  2. Components
  3. Actions

Button

An action. One solid and one soft per region; everything else ghost.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<button>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Keyboard

KeysWhat happens
EnterActivates it.
SpaceActivates it.
TabTabMoves focus to it, even when it's disabled.

02

Behaviour

Role and name
A native <button>; its name is its label.
Busy
aria-busy while loading; clicks are ignored and focus stays.
Disabled
aria-disabled, not disabled: it stays focusable, so its reason can be read.
Focus
A 2px Ember ring on :focus-visible, inside a 1px surface gap.
Forced colours
The zone's rule becomes ButtonText; GrayText when disabled.

03

Tested

On every change, before it ships.

  • axe, WCAG 2.2 A and AA, in Chromium on every pull request
  • Firefox and WebKit every night
  • Forced colours, reduced motion and right to left
  • Server rendering
Next — ButtonChangelog