Add aria properties to unread chat messages indicator

This commit is contained in:
Kalle
2026-09-09 20:41:48 +03:00
parent 621ad5e200
commit f5cc5aa3cb

View File

@@ -109,7 +109,13 @@ function ChatButton({
testId="chat-toggle-button"
/>
{unreadCount ? (
<span className={styles.chatUnreadBadge}>{unreadCount}</span>
<span
className={styles.chatUnreadBadge}
role="status"
aria-label={`${unreadCount} unread chat ${unreadCount === 1 ? "message" : "messages"}`}
>
{unreadCount}
</span>
) : null}
</>
);