Skip to content
Snippets Groups Projects
Unverified Commit 746d4fe8 authored by Júlia Jaeger Foresti's avatar Júlia Jaeger Foresti Committed by GitHub
Browse files

chore: improve unread badges a11y (#33899)

parent f7391a41
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ const SidebarItemTemplateWithData = ({ ...@@ -123,7 +123,7 @@ const SidebarItemTemplateWithData = ({
const badges = ( const badges = (
<> <>
{showUnread && ( {showUnread && (
<SidebarV2ItemBadge variant={unreadVariant} title={unreadTitle}> <SidebarV2ItemBadge variant={unreadVariant} title={unreadTitle} role='status'>
{unreadCount.total} {unreadCount.total}
</SidebarV2ItemBadge> </SidebarV2ItemBadge>
)} )}
......
...@@ -29,7 +29,7 @@ export const useItemData = ( ...@@ -29,7 +29,7 @@ export const useItemData = (
() => ( () => (
<> <>
{showUnread && ( {showUnread && (
<SidebarItemBadge variant={unreadVariant} title={unreadTitle}> <SidebarItemBadge variant={unreadVariant} title={unreadTitle} role='status'>
{unreadCount.total} {unreadCount.total}
</SidebarItemBadge> </SidebarItemBadge>
)} )}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment