From a59fa61358b75577daff9993e8634d6828bd7025 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Sun, 26 Apr 2026 05:23:01 +0000
Subject: [PATCH] feat(ui): add ARIA labels to icon-only buttons for
accessibility
Added `aria-label` attributes to the "Reset settings" and "Close panel" buttons in `graph-tab.tsx` and the "Toggle Line Wrap" and "Copy Code" buttons in `code-block-codemirror.tsx` to improve screen reader support.
Co-authored-by: threehymns <70611435+threehymns@users.noreply.github.com>
---
src/components/editor/extensions/code-block-codemirror.tsx | 2 ++
src/components/graph-tab.tsx | 2 ++
2 files changed, 4 insertions(+)
diff --git a/src/components/editor/extensions/code-block-codemirror.tsx b/src/components/editor/extensions/code-block-codemirror.tsx
index cbc217e..df11796 100644
--- a/src/components/editor/extensions/code-block-codemirror.tsx
+++ b/src/components/editor/extensions/code-block-codemirror.tsx
@@ -477,6 +477,7 @@ const CodeMirrorComponent = ({
isLineWrapped ? "text-primary" : "text-muted-foreground",
)}
title="Toggle Line Wrap"
+ aria-label="Toggle Line Wrap"
>
@@ -485,6 +486,7 @@ const CodeMirrorComponent = ({
onClick={handleCopy}
className="rounded p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
title="Copy Code"
+ aria-label="Copy Code"
>
{copied ? (
setPanel(DEFAULT_PANEL)}
className="size-7"
>
@@ -1328,6 +1329,7 @@ interface ForceGraphInstance {
variant="ghost"
size="icon"
title="Close panel"
+ aria-label="Close panel"
onClick={() => setPaneOpen(false)}
className="size-7"
>