Skip to content

Commit 211c416

Browse files
committed
fix(notification): add aria label and description
1 parent ee4fdb0 commit 211c416

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/notification/actionable-notification.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ export class ActionableNotification extends BaseNotification {
8383
}
8484

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

0 commit comments

Comments
 (0)