Skip to content

Commit

Permalink
fix(aria): use new ariaProps property
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisaraiva19 committed May 31, 2021
1 parent 25a0703 commit 274dd7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/pages/docs/use-toaster.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Notifications = () => {
{toasts
.filter((toast) => toast.visible)
.map((toast) => (
<div key={toast.id} role={toast.role} aria-live={toast.ariaLive}>
<div key={toast.id} {...toast.ariaProps}>
{toast.message}
</div>
))}
Expand Down Expand Up @@ -94,6 +94,7 @@ const Notifications = () => {
opacity: toast.visible ? 1 : 0,
transform: `translateY(${offset}px)`,
}}
{...toast.ariaProps}
>
{toast.message}
</div>
Expand Down

0 comments on commit 274dd7b

Please sign in to comment.