Skip to content

The open-source app everyone uses to manage agents at work

refactor(a11y): issues view toggle aria attributes and goal tree expand buttons (#1939)

Evyatar Bluzerde837e268381
diff --git a/ui/src/components/GoalTree.tsx b/ui/src/components/GoalTree.tsx
index 116b1668f2..6c0de3cccd 100644
--- a/ui/src/components/GoalTree.tsx
+++ b/ui/src/components/GoalTree.tsx
@@ -35,6 +35,8 @@ function GoalNode({ goal, children, allGoals, depth, goalLink, onSelect }: GoalN
e.stopPropagation();
setExpanded(!expanded);
}}
+ aria-label={`${goal.title} subtree`}
+ aria-expanded={expanded}
>
<ChevronRight
className={cn("h-3 w-3 transition-transform", expanded && "rotate-90")}
diff --git a/ui/src/components/IssuesList.tsx b/ui/src/components/IssuesList.tsx
index aafe0354d2..c075d2d217 100644
--- a/ui/src/components/IssuesList.tsx
+++ b/ui/src/components/IssuesList.tsx
@@ -1388,11 +1388,13 @@ export function IssuesList({
<div className="flex items-center gap-0.5 sm:gap-1 shrink-0">
{/* View mode toggle */}
- <div className="flex items-center border border-border rounded-md overflow-hidden mr-1">
+ <div className="flex items-center border border-border rounded-md overflow-hidden mr-1" role="group" aria-label="View mode">
<button
className={`p-1.5 transition-colors ${viewState.viewMode === "list" ? "bg-accent text-foreground" : "text-muted-foreground hover:text-foreground"}`}
onClick={() => updateView({ viewMode: "list" })}
title="List view"
+ aria-label="List view"
+ aria-pressed={viewState.viewMode === "list"}
>
<List className="h-3.5 w-3.5" />
</button>
@@ -1400,6 +1402,8 @@ export function IssuesList({
className={`p-1.5 transition-colors ${viewState.viewMode === "board" ? "bg-accent text-foreground" : "text-muted-foreground hover:text-foreground"}`}
onClick={() => updateView({ viewMode: "board" })}
title="Board view"
+ aria-label="Board view"
+ aria-pressed={viewState.viewMode === "board"}
>
<Columns3 className="h-3.5 w-3.5" />
</button>