On this page

Button

How Button meets WCAG 2.2 AA, its keys, what it gives you and what your team does.

Conformance

Button meets WCAG 2.2 level AA when used as described on this page. It follows the Button pattern of the WAI-ARIA Authoring Practices.

Keyboard

Key Action
Tab Moves focus to the button. Disabled buttons are skipped; unavailable (aria-disabled) and loading buttons are not.
Enter or Space Activates the button.

What Button gives you

  • A native <button> element with type="button", so it has the role, keyboard behaviour and focus of a button.
  • A 2 px focus ring in color.border.focus, 2 px away from the button (border.width.focused, state.focus.offset).
  • Heights of 24, 32 and 40 px, all at least the 24 × 24 px target; on touch screens the tap area grows to 44 × 44 px (size.target.touch).
  • Text and background that meet 4.5:1 in every state except disabled, in light and dark.
  • A disabled state that is removed from the tab order and announced as unavailable.
  • An unavailable state (aria-disabled="true") that stays in the tab order, so the reason next to it can be reached and read.
  • A loading state that keeps the button’s colours and focus; the spinner is hidden from screen readers.

What your team does

  • Name it. Start the label with a verb: “Sync orders”, not “OK”. An icon-only button needs a name that says the action, such as “Delete store”: a tooltip set as its label, or aria-label (see Icon button).
  • Use a link to go somewhere. A button does something; a link goes to a page.
  • Say what happened. When a button shows that it is busy, announce the result when it finishes, for example with a toast or a live region: “Orders synced”.
  • Avoid disabling. A disabled button cannot explain why. Prefer keeping it active and showing what is missing when it is pressed. If it must look unavailable, use aria-disabled="true", link the reason with aria-describedby, and ignore clicks in your code.
  • Loading. Set aria-busy="true", change the label to say what is happening, ignore clicks until it ends, then announce the result.
  • New tab. A link that opens a new tab says so in hidden text: “(opens in a new tab)”.
  • Toggle buttons set aria-pressed="true" or "false", or change their label, such as “Pause” and “Play”.

WCAG criteria

Criterion Level How Button meets it
1.4.3 Contrast (Minimum) AA Label meets 4.5:1 in every enabled state
1.4.11 Non-text Contrast AA Edges and the focus ring meet 3:1
2.1.1 Keyboard A Native button: Tab, Enter and Space
2.4.7 Focus Visible AA 2 px focus ring on :focus-visible
2.5.3 Label in Name A The accessible name is the visible label
2.5.8 Target Size (Minimum) AA Every height is at least 24 px
4.1.2 Name, Role, Value A Native button role; name from the label or aria-label

Checks

Check Status Date
Automated (axe, WCAG 2.2 AA), light and dark Passed 4 November 2026
Keyboard Passed 4 November 2026
Touch target, phone screen size Passed 4 November 2026
Screen readers (NVDA, VoiceOver) Planned
Loading and unavailable states, keyboard and axe Planned