Buttons and actions

Make the next action recognisable, and communicate its state without moving the surrounding layout.

Try the buttons

Field notes

Sketches from a morning walk.

Field notes

Three leaves on the same branch, sketched on a morning walk.

Reading status To read

View markup
<div class="spec-stack"><h3 data-title>Field notes</h3>
      <p class="spec-muted">Sketches from a morning walk.</p>
      <div class="spec-actions"><button type="button" class="ex-button ex-button--spectral" data-save>
      <span class="ex-icon ex-icon--add" aria-hidden="true"></span><span data-save-label>Save to list</span></button>
      <button type="button" class="ex-button ex-button--secondary" data-open>Quick look</button></div></div>
Usage and implementation

Choose the emphasis

Use a native button for an action and a link for navigation. Spectral outline identifies a primary action; the filled version provides stronger deliberate emphasis. Secondary and quiet actions support the task. Danger styling accompanies a specific destructive label and proportionate recovery.

Use action compositions deliberately

The candidate adds icon actions with accessible names, labelled action groups, native single-choice segments, filter and removable chips, and split actions. The primary half of a split button performs its named action; its adjacent menu trigger has a distinct name. Floating actions need a clear scope and must not obscure content or the software keyboard.

Retain native button/radio/checkbox semantics. Keep selection and pressed state distinct from navigation. A busy or completed action must guard repeat activation, including when focus remains on an aria-disabled control.

Review labels and constrained inputs · Review core actions

Required states

StateContract
Default / hover / pressedRetain geometry, label and hierarchy; hover contains no exclusive information.
FocusSolid independent ring, visible around the complete control.
DisabledNative disabled when unavailable; explain why nearby when unclear.
BusyKeep the initiator focusable, set aria-busy and aria-disabled, guard the handler and announce the outcome.
Failure / completionUseful status near the task, preserved work and a deliberate retry when appropriate.

Reserve known changing labels

A delayed label must not resize its action. Use natural grid sizing with hidden, accessibility-excluded copies of known labels and one current accessible label. Reserve decorative icon space while it is hidden. Do not freeze the control to a pixel height that clips enlarged text.

Check the real action

  • Keyboard activates once; pending activation cannot duplicate the operation.
  • Accessible name follows the visible label; sizing copies are not announced.
  • Long text, both themes, text enlargement and spacing remain readable.
  • Completion and retry preserve useful focus and honest status.