Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriamarco committed Jan 15, 2024
1 parent a95157f commit b01f086
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 @@ -130,6 +130,7 @@ export class SbbNotificationElement extends LitElement {

public override connectedCallback(): void {
super.connectedCallback();
this.setAttribute('role', this.getAttribute('role') ?? 'status');
this._handlerRepository.connect();
this._setInlineLinks();
}
Expand Down Expand Up @@ -202,7 +203,6 @@ export class SbbNotificationElement extends LitElement {
protected override render(): TemplateResult {
const hasTitle = !!this.titleContent || this._namedSlots['title'];

setAttribute(this, 'role', 'status');
setAttribute(this, 'data-state', this._state);
setAttribute(this, 'data-has-title', hasTitle);

Expand Down

0 comments on commit b01f086

Please sign in to comment.