Skip to content

fix(site/src/pages/AgentsPage/components/ChatsSidebar): expose search shortcut via aria-keyshortcuts - #32408

Merged
aqandrew merged 2 commits into
mainfrom
a11y/reading-order-content-skipped
Nov 18, 2026
Merged

aqandrew merged 2 commits into
mainfrom
a11y/reading-order-content-skipped

Conversation

@aqandrew

Copy link
Copy Markdown
Collaborator

The Agents sidebar Search nav item has aria-label="Search chats", so the Ctrl K / ⌘ K hint that appears on hover and focus never reaches screen readers. This PR adds aria-keyshortcuts to SettingsNavItem and sets it on the Search item: Meta+K on macOS and Control+K everywhere else, matching useAgentsPageKeybindings. The visible label and the Kbd hint are unchanged.

Closes DEQ-256

Ticket UI surface
DEQ-256 /agents sidebar, Search nav item (Ctrl/⌘ K hint)

No screenshots: only ARIA changes, and the UI looks the same.

Dropped review finding: FE1 flags assertions on attribute presence. I kept toHaveAttribute("aria-keyshortcuts", "Control+K") because the attribute is the screen-reader outcome and Pixel can't capture it. AgentChatInput.test.tsx already asserts aria-keyshortcuts the same way.

Decision log
  • Root cause: the aria-label replaces the button's text content, kbd hint included, so the shortcut never reaches the accessibility tree.
  • Chose aria-keyshortcuts over adding the shortcut to aria-label. It is the semantic way to expose a shortcut, NVDA reports it as the shortcut key, and the existing send button (AgentChatSendButton) already does it.
  • Not changed: the Settings button already exposes its Ctrl , hint through its tooltip description.

🤖 Generated by Coder Agents on behalf of @aqandrew.

@linear-code

linear-code Bot commented Nov 18, 2026

Copy link
Copy Markdown

DEQ-256

@aqandrew
aqandrew marked this pull request as ready for review November 18, 2026 18:27
@aqandrew
aqandrew requested a review from a team as a code owner November 18, 2026 18:27
@aqandrew
aqandrew merged commit 422090c into main Nov 18, 2026
26 checks passed
@aqandrew
aqandrew deleted the a11y/reading-order-content-skipped branch November 18, 2026 21:43
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
main — 530f4d9a Deployed Nov 18, 2026 by aqandrew via cla #259896
docs-preview — 530f4d9a Deployed Nov 18, 2026 by aqandrew via cleanup #230
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants