Skip to content

Commit e464f78

Browse files
committed
Name the thread status dot for screen readers
ThreadStatusLabel puts aria-label on a plain span. ARIA does not allow a name on a generic element, so the status (Working, Needs input, Failed) is dropped and only the dot color remains. Give the span role=img. Verify: in the command palette, VoiceOver reads the thread status.
1 parent 5cc99e1 commit e464f78

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/web/src/components/ThreadStatusIndicators.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ export function ThreadStatusLabel({
455455
<TooltipTrigger
456456
render={
457457
<span
458+
role="img"
458459
aria-label={status.label}
459460
className={`inline-flex size-3.5 shrink-0 items-center justify-center ${status.colorClass}`}
460461
/>
@@ -476,6 +477,7 @@ export function ThreadStatusLabel({
476477
<TooltipTrigger
477478
render={
478479
<span
480+
role="img"
479481
aria-label={status.label}
480482
className={`inline-flex items-center gap-1 text-3xs ${status.colorClass}`}
481483
/>

0 commit comments

Comments
 (0)