Skip to content

Commit

Permalink
fix: use alert role in accessibility notification
Browse files Browse the repository at this point in the history
  • Loading branch information
jorilindell committed May 14, 2024
1 parent a5bea58 commit 6d89bdc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export const AccessibilityNotificationProvider: FC<PropsWithChildren> = ({
return (
<AccessibilityNotificationContext.Provider value={value}>
{notifications.map(({ text, id }) => (
<output key={id} className={styles.accessibilityNotification}>
<div role="alert" key={id} className={styles.accessibilityNotification}>
{text}
</output>
</div>
))}

{children}
Expand Down

0 comments on commit 6d89bdc

Please sign in to comment.