Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriamarco committed Jan 17, 2024
1 parent 6a8b397 commit b3e7130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/notification/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export class SbbNotificationElement extends LitElement {

public override connectedCallback(): void {
super.connectedCallback();
this.setAttribute('role', this.getAttribute('role') ?? 'status');
this._setInlineLinks();
}

Expand Down Expand Up @@ -202,7 +203,6 @@ export class SbbNotificationElement extends LitElement {
}

protected override render(): TemplateResult {
setAttribute(this, 'role', 'status');
setAttribute(this, 'data-state', this._state);

return html`
Expand Down

0 comments on commit b3e7130

Please sign in to comment.