On this page

Input group

Keys, what Input group gives you and what your team does.

Conformance

Input group meets WCAG 2.2 level AA when used as described on these pages. The field inside is a native <input> or <textarea>; buttons are Beehexa Buttons.

Keyboard

Key Action
Tab Moves to the field, then to each button in the group.
Enter, Space Presses the focused button.

What Input group gives you

  • role="group" on the box.
  • The 3 px focus edge on the whole box while the field has focus; the normal ring on a focused button.
  • An edge of at least 3:1 on every surface.

What your team does

  • Name the field: a visible label linked with for, or aria-label when the context is clear (a search box at the top of a table).
  • Hide decorative icons with aria-hidden="true".
  • Name every icon-only button, with a tooltip set as the label (relationship="label").
  • Link fixed text that people need to hear, such as a unit or a count, with aria-describedby.

WCAG criteria

Criterion Level How
1.1.1 Non-text Content A Decorative icons hidden; icon buttons named
1.3.1 Info and Relationships A Label and aria-describedby
2.4.7 Focus Visible AA 3 px focus edge on the box; ring on buttons
4.1.2 Name, Role, Value A Native field, role="group", named buttons