From f05e209589fd1de9ed3a41208c80fdf440d5004c Mon Sep 17 00:00:00 2001 From: Aditya Singh Date: Thu, 21 May 2026 16:43:23 -0700 Subject: [PATCH] a11y: add aria-label to response action buttons for screen readers The Insert/Copy/Apply/Diff buttons on chat responses are pure-icon elements, so NVDA and similar screen readers announce only the fallback role text. Add an aria-label matching the user-visible action to each button so assistive tech reads them out as 'Insert at cursor', 'Copy code block', etc. No behavior change. Part 1 of the broader sidebar a11y work tracked in #12325. Fixes #12326 --- .../StepContainerPreToolbar/ApplyActions.tsx | 3 +++ .../StepContainerPreToolbar/CopyButton.tsx | 2 ++ .../StepContainerPreToolbar/CreateFileButton.tsx | 1 + .../StepContainerPreToolbar/InsertButton.tsx | 2 ++ .../StepContainerPreToolbar/RunInTerminalButton.tsx | 2 ++ .../StepContainerPreToolbar/ToolbarButtonWithTooltip.tsx | 4 ++++ gui/src/components/gui/HeaderButtonWithToolTip.tsx | 2 ++ 7 files changed, 16 insertions(+) diff --git a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/ApplyActions.tsx b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/ApplyActions.tsx index 66e5f97e1e5..743ae67ad52 100644 --- a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/ApplyActions.tsx +++ b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/ApplyActions.tsx @@ -39,6 +39,7 @@ export function ApplyActions(props: ApplyActionsProps) {
@@ -47,6 +48,7 @@ export function ApplyActions(props: ApplyActionsProps) { @@ -69,6 +71,7 @@ export function ApplyActions(props: ApplyActionsProps) { >