Skip to content

Commit

Permalink
add aria-live
Browse files Browse the repository at this point in the history
  • Loading branch information
tlabaj committed Oct 18, 2023
1 parent 394cd16 commit 4c65cfb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export const NotificationDrawerHeader: React.FunctionComponent<NotificationDrawe
{title}
</Text>
{(customText !== undefined || count !== undefined) && (
<span className={css(styles.notificationDrawerHeaderStatus)}>{customText || `${count} ${unreadText}`}</span>
<span className={css(styles.notificationDrawerHeaderStatus)} aria-live="polite">
{customText || `${count} ${unreadText}`}
</span>
)}
{(children || onClose) && (
<div className={css(styles.notificationDrawerHeaderAction)}>
Expand Down

0 comments on commit 4c65cfb

Please sign in to comment.