Repository navigation
fix: give buttons accessible names - #30796
Merged
Merged
Conversation
Radix Select triggers render role=combobox, which cannot take its accessible name from its content, so the workspace sharing role selects had no name. Label the per-member selects "Role for <member>" and the add-member select "Role". Give the icon-only copy logs button in the agent logs toolbar sr-only text. Fixes DEQ-431, DEQ-456, DEQ-101, DEQ-138.
aqandrew
marked this pull request as ready for review
October 14, 2026 22:43
Jesswinters
approved these changes
Oct 14, 2026
Jesswinters
left a comment
Contributor
There was a problem hiding this comment.
Some nice lil improvements for buttons! And yay for a test too ✨
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the axe
button-name(WCAG 4.1.2) findings from the Deque audit:affected buttons:
role="combobox", and ARIA doesn't let a combobox take its name from its content. That's why the visible "Use"/"Admin" text didn't count. Each member row's select is now namedRole for <member>. The add-member form's select is namedRole.sr-onlytext, matching the download button next to it.Adds Vitest coverage in
WorkspaceSharingForm.test.tsx. The test finds each select by its accessible name and checks that changing the role calls the update callback. It fails without the fix.Implementation notes and review decisions
Mapping axe selectors to components
form > div > button:nth-child(2)isRoleSelectFieldinAddWorkspaceUserOrGroup.table > tbody > tr > td:nth-child(2) > buttonisRoleSelectinWorkspaceSharingForm.section:nth-child(3)(agent card logs section)> … > div:nth-child(2) > button:nth-child(1)is the copy button in theAgentRowlogs toolbar.data-state="closed"with noaria-expandedmeans it's a Tooltip trigger.Justified findings from the frontend review (
frontend-deep-reviewandfrontend-review)AgentRowwith streamed logs needs the proxy context and websocket log fixtures. The change only adds ansr-onlylabel. I removed a storyplayassertion that I'd first added, because FE1 bans assertions inplayfunctions.Checks run:
pnpm check,pnpm lint:types,pnpm lint, the unit tests, theAgentRow/WorkspaceSharingPage/WorkspaceActionsstory tests, andmake pre-commit.Generated by Coder Agents on behalf of @aqandrew.