Skip to content

Commit

Permalink
fix: set aria live on body part (#2116)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ico authored Sep 5, 2023
1 parent c189f29 commit 4c00769
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,16 @@ export class Notification {
this.isOpen && 'open'
)}
role={this.role}
aria-live={this.role === undefined ? undefined : this.innerAriaLive}
>
<div part="icon" aria-hidden="true">
<slot name="icon">
<IconTag size={ICON_SIZE} selected={this.type === 'toast'} />
</slot>
</div>
<div part="body">
<div
part="body"
aria-live={this.role === undefined ? undefined : this.innerAriaLive}
>
<div
part="heading"
role="heading"
Expand Down

0 comments on commit 4c00769

Please sign in to comment.