mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-10 21:26:08 -05:00
Add aria properties to unread chat messages indicator
This commit is contained in:
@@ -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}
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user