From 9960a37e9a7bc864dcd7c4cb67901c96f5569bc4 Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Mon, 19 Aug 2019 23:53:25 +0300 Subject: [PATCH] add aria label and selected (#4999) --- .../datatable/components/datatable/datatable.component.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/datatable/components/datatable/datatable.component.html b/lib/core/datatable/components/datatable/datatable.component.html index 6ecf1735cb..5bcf6ee2fb 100644 --- a/lib/core/datatable/components/datatable/datatable.component.html +++ b/lib/core/datatable/components/datatable/datatable.component.html @@ -97,6 +97,8 @@ class=" adf-datatable-cell adf-datatable-cell--{{col.type || 'text'}} {{col.cssClass}}" [attr.title]="col.title | translate" [attr.data-automation-id]="getAutomationValue(row, col)" + [attr.aria-selected]="row.isSelected ? true : false" + [attr.aria-label]="col.title ? (col.title | translate) : null" tabindex="0" (click)="onRowClick(row, $event)" (keydown.enter)="onEnterKeyPressed(row, $event)"