Skip to content

Commit d40f778

Browse files
committed
Improve accessibility
1 parent 775537a commit d40f778

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

chat/src/components/MessageInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ export default function MessageInput({
208208
className="rounded-full"
209209
>
210210
<SendIcon />
211+
<span className="sr-only">Send</span>
211212
</Button>
212213
)}
213214

chat/src/components/MessageList.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,18 @@ export default function MessageList({
7373
const LoadingDots = () => (
7474
<div className="flex space-x-1">
7575
<div
76+
aria-hidden="true"
7677
className={`size-1 rounded-full bg-foreground animate-pulse [animation-delay:0ms]`}
7778
/>
7879
<div
80+
aria-hidden="true"
7981
className={`size-1 rounded-full bg-foreground animate-pulse [animation-delay:300ms]`}
8082
/>
8183
<div
84+
aria-hidden="true"
8285
className={`size-1 rounded-full bg-foreground animate-pulse [animation-delay:600ms]`}
8386
/>
87+
<span className="sr-only">Loading...</span>
8488
</div>
8589
);
8690

0 commit comments

Comments
 (0)