Skip to content

Commit 4c65cfb

Browse files
committed
add aria-live
1 parent 394cd16 commit 4c65cfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-core/src/components/NotificationDrawer/NotificationDrawerHeader.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ export const NotificationDrawerHeader: React.FunctionComponent<NotificationDrawe
4242
{title}
4343
</Text>
4444
{(customText !== undefined || count !== undefined) && (
45-
<span className={css(styles.notificationDrawerHeaderStatus)}>{customText || `${count} ${unreadText}`}</span>
45+
<span className={css(styles.notificationDrawerHeaderStatus)} aria-live="polite">
46+
{customText || `${count} ${unreadText}`}
47+
</span>
4648
)}
4749
{(children || onClose) && (
4850
<div className={css(styles.notificationDrawerHeaderAction)}>

0 commit comments

Comments
 (0)