Skip to content

Commit

Permalink
chore: improve unread badges a11y (RocketChat#33899)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti authored Nov 6, 2024
1 parent f7391a4 commit 746d4fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const SidebarItemTemplateWithData = ({
const badges = (
<>
{showUnread && (
<SidebarV2ItemBadge variant={unreadVariant} title={unreadTitle}>
<SidebarV2ItemBadge variant={unreadVariant} title={unreadTitle} role='status'>
{unreadCount.total}
</SidebarV2ItemBadge>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const useItemData = (
() => (
<>
{showUnread && (
<SidebarItemBadge variant={unreadVariant} title={unreadTitle}>
<SidebarItemBadge variant={unreadVariant} title={unreadTitle} role='status'>
{unreadCount.total}
</SidebarItemBadge>
)}
Expand Down

0 comments on commit 746d4fe

Please sign in to comment.