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

Icon button

An action shown as an icon. Its name is required, and shows as its tooltip.

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; its tooltip opens.
EscapeCloses its tooltip.

02

Behaviour

Name
aria-label is required by its type; the tooltip shows it, without announcing it twice.
Tooltip
Opens on mouse hover and on keyboard focus; Escape closes it.
Busy
aria-busy while loading; clicks are ignored and focus stays.
Disabled
aria-disabled, not disabled: it stays focusable, so its tooltip can say why.
Target size
24px square at its smallest, compact sm: WCAG 2.5.8's minimum.
Focus
A 2px Ember ring on :focus-visible, inside a 1px surface gap.

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 — Icon buttonChangelog