Skip to content

fix(SDK-1173): give contractor row action-menu buttons a row-specific accessible name - #2647

Open
dmortal wants to merge 2 commits into
mainfrom
fix/SDK-1173-contractor-actions-aria-label
Open

fix(SDK-1173): give contractor row action-menu buttons a row-specific accessible name#2647
dmortal wants to merge 2 commits into
mainfrom
fix/SDK-1173-contractor-actions-aria-label

Conversation

@dmortal

@dmortal dmortal commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes a Critical WCAG 4.1.2 (Name, Role, Value) accessibility finding: the per-row "Actions" hamburger menu button on the contractor onboarding-completion and management lists announced a generic, non-row-specific accessible name to screen readers, so users couldn't tell which contractor's menu they were opening.

Changes

  • ContractorListView.tsx (onboarding) and ManagementContractorListView.tsx (management) now pass a per-row triggerLabel to HamburgerMenu, interpolating the contractor's display name.
  • Added/updated the hamburgerTitle translation key in both Contractor list namespaces to "Actions for {{name}}", matching the existing pattern used by the state taxes list (Company.StateTaxes.json).
  • Updated both screens' test suites to assert against the new row-specific accessible name.

Related

Testing

  • npm run i18n:generate — regenerated translation types, no errors.
  • npm run test -- --run src/components/Contractor/ContractorList/onboarding/ContractorList.test.tsx src/components/Contractor/ContractorList/management/ManagementContractorList.test.tsx — 25 passed.
  • npm run test -- --run (full suite) — 351 test files, 3853 passed (1 pre-existing unrelated expected fail).
  • npx tsc --noEmit — no type errors.

… accessible name

The onboarding-completion and management contractor lists' per-row
hamburger menu trigger used a generic accessible name ("Open menu" /
"Contractor actions menu") that didn't identify which row it acted on,
failing WCAG 4.1.2 per an external accessibility audit. It now reads
"Actions for <contractor name>", matching the pattern already used by
the state taxes list.
@dmortal
dmortal marked this pull request as ready for review August 26, 2026 17:24
@dmortal
dmortal requested a review from a team as a code owner August 26, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants