From f96b505cb0a13aaf73227441e7ba3885bd003276 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Mon, 4 May 2026 05:18:12 +0000
Subject: [PATCH] feat: add aria-label to icon-only buttons for accessibility
- Added `aria-label` to the 'Reset settings', 'Close panel', and 'Delete group' buttons in `src/components/graph-tab.tsx`.
- Added `aria-label` to the 'Toggle Line Wrap' and 'Copy Code' buttons in `src/components/editor/extensions/code-block-codemirror.tsx`.
- Ensured full keyboard/screen-reader accessibility for these buttons.
Co-authored-by: threehymns <70611435+threehymns@users.noreply.github.com>
---
src/components/editor/extensions/code-block-codemirror.tsx | 2 ++
src/components/graph-tab.tsx | 4 ++++
2 files changed, 6 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"
>
@@ -1431,6 +1433,8 @@ interface ForceGraphInstance {