diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..0b05896 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2026-04-27 - [ARIA labels for icon-only buttons] +**Learning:** In React components like ` @@ -485,6 +488,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 ? ( removeProperty(index)} + aria-label={`Remove property ${prop.key || 'new property'}`} + title={`Remove property ${prop.key || 'new property'}`} > diff --git a/src/components/graph-tab.tsx b/src/components/graph-tab.tsx index 4b13707..919fda2 100644 --- a/src/components/graph-tab.tsx +++ b/src/components/graph-tab.tsx @@ -1319,6 +1319,7 @@ interface ForceGraphInstance { variant="ghost" size="icon" title="Reset settings" + aria-label="Reset settings" onClick={() => 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" > diff --git a/src/routes/settings.tsx b/src/routes/settings.tsx index 726478d..786f8a1 100644 --- a/src/routes/settings.tsx +++ b/src/routes/settings.tsx @@ -191,7 +191,7 @@ function SettingsPage() {
-