Skip to content

Commit

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

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

Expand All @@ -141,6 +141,9 @@ export class SbbNotificationElement extends LitElement {
await this.updateComplete;
this._setNotificationHeight();
this._open();
this.shadowRoot
.querySelector('.sbb-notification')
.setAttribute('role', this.getAttribute('role') ?? 'status');
}

public override disconnectedCallback(): void {
Expand Down

0 comments on commit 9a0d2b1

Please sign in to comment.