Skip to content

[a11y][ButtonGroup] Assess WCAG 2.2 conformance #49407

Done

Description

@linear-code

Context

Wave 1, item 3. Tracking issue: #49260.

ButtonGroup reuses most of the Button report. Check the role="group" and its label (1.3.1, 4.1.2), and the contrast of the dividers (1.4.11).

Scope

  1. Add axe tests and fixtures in test/regressions/a11y/fixtures/.
  2. Write ButtonGroup/accessibility.md.
  3. Enroll it in the CSS-dependent suite (1.4.10, 1.4.4, 1.4.12).
  4. Run pnpm a11y:scorecard.

Manual tests

Write each check in the report as numbered Manual testing steps, as in Button/accessibility.md. pnpm a11y:scorecard then adds them to manual-testing.md. For screen-reader steps, use NVDA with Chrome and VoiceOver with Safari.

  • 1.3.1, 4.1.2 — With a screen reader, press Tab into a ButtonGroup that has an aria-label. The screen reader announces "group" and the name.
  • 1.3.2, 2.4.3 — Press Tab through a horizontal and a vertical group. The focus order matches the visual order.
  • 2.4.7 — The focus indicator of each button is fully visible. The adjacent buttons do not clip it.
  • 1.4.11 — With a contrast checker, measure the dividers and the outlined border. Each is at least 3:1 against the page.
  • 4.1.2 — In the split button demo, the arrow button announces its name, "expanded" or "collapsed", and that it opens a menu.

Done when

  • ButtonGroup has a report and is in the scorecard.
  • Each manual test in this issue has steps and a result in the report.

Search keywords:

Activity

  1. github-actions commented on Nov 27, 2026

    @github-actions
    Contributor

    This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
    Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.


    @linear-code[bot] Thanks again for creating this issue! If you have a moment, we would love to hear your thoughts on how we handled it with this short feedback form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions