Skip to content

Commit b0a648b

Browse files
feat(tracker): add aria labels and titles to icon buttons
Added `aria-label` and `title` attributes to the clear search button and the AI send message button in TrackerLayout to improve accessibility and user experience. Co-authored-by: jmbish04 <26469722+jmbish04@users.noreply.github.com>
1 parent e0e148b commit b0a648b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/frontend/src/components/project-dashboard/beta/TrackerLayout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ export function TrackerLayout({ tasks, isLoading, onTaskUpdate, onTaskCreate, on
232232
<button
233233
onClick={() => setSearchQuery('')}
234234
className="absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"
235+
aria-label="Clear search"
236+
title="Clear search"
235237
>
236238
<X className="w-3.5 h-3.5" />
237239
</button>
@@ -302,7 +304,7 @@ export function TrackerLayout({ tasks, isLoading, onTaskUpdate, onTaskCreate, on
302304
placeholder="Ask anything..."
303305
className="h-8 text-sm"
304306
/>
305-
<Button size="sm" className="h-8 px-3" onClick={handleAiSend}>
307+
<Button size="sm" className="h-8 px-3" onClick={handleAiSend} aria-label="Send message" title="Send message">
306308
<Send className="w-3.5 h-3.5" />
307309
</Button>
308310
</div>

0 commit comments

Comments
 (0)