Skip to content

Commit 8f2079e

Browse files
fix(a11y): add aria-expanded to compact tool toggle button
Addresses CodeRabbit review nitpick: add aria-expanded={isExpanded} to the compact tool row button for screen reader support. Refs: PR #327 review feedback
1 parent e9068ea commit 8f2079e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,7 @@ export const ChatRowContent = ({
14231423
<button
14241424
type="button"
14251425
onClick={handleToggleExpand}
1426+
aria-expanded={isExpanded}
14261427
className="flex items-center gap-2 py-0.5 cursor-pointer text-vscode-descriptionForeground hover:text-vscode-foreground bg-transparent border-none text-inherit w-full text-left"
14271428
data-testid="compact-tool-row"
14281429
title={t("chat:compactTool.expandHint")}>

0 commit comments

Comments
 (0)