Skip to content

Commit 2a0e8fa

Browse files
committed
fix: change aria description value
1 parent 211c416 commit 2a0e8fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/notification/actionable-notification.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export class ActionableNotification extends BaseNotification {
8282
this._notificationObj = Object.assign({}, this.defaultNotificationObj, obj);
8383
}
8484

85-
@HostBinding("attr.id") notificationID = `notification-${ActionableNotification.notificationCount++}`;
85+
@HostBinding("attr.id") notificationID = `notification-${ActionableNotification.notificationCount}`;
8686
@HostBinding("attr.aria-label") notificationLabel = `Notification`;
87-
@HostBinding("attr.aria-describedby") notificationDescription = `${this.notificationObj.type} notification`;
87+
@HostBinding("attr.aria-describedby") notificationDescription = `Notification-${ActionableNotification.notificationCount++}`;
8888
@HostBinding("class.cds--actionable-notification") notificationClass = true;
8989
@HostBinding("class.cds--actionable-notification--toast") get toastVariant() { return this.notificationObj.variant === "toast"; }
9090
@HostBinding("class.cds--actionable-notification--error") get isError() { return this.notificationObj.type === "error"; }

0 commit comments

Comments
 (0)