From cfa06fb6a8ea7fd35db47a9525a1208710e89cab Mon Sep 17 00:00:00 2001 From: Marco D'Auria Date: Thu, 11 Jan 2024 11:56:26 +0100 Subject: [PATCH] fix: review --- src/components/notification/notification.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/notification/notification.ts b/src/components/notification/notification.ts index b98c6618473..15a5190d0a5 100644 --- a/src/components/notification/notification.ts +++ b/src/components/notification/notification.ts @@ -130,6 +130,7 @@ export class SbbNotificationElement extends LitElement { public override connectedCallback(): void { super.connectedCallback(); + this.role = this.role ?? 'status'; this._handlerRepository.connect(); this._setInlineLinks(); } @@ -202,7 +203,7 @@ export class SbbNotificationElement extends LitElement { protected override render(): TemplateResult { const hasTitle = !!this.titleContent || this._namedSlots['title']; - setAttribute(this, 'role', 'status'); + setAttribute(this, 'role', this.role); setAttribute(this, 'data-state', this._state); setAttribute(this, 'data-has-title', hasTitle);