From 5b11e529030e9bd375f315ba9312e3fb6858cb88 Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Thu, 12 Sep 2019 17:04:43 +0300 Subject: [PATCH] [ADF-4888] DocumentList - cell header title is announced over cell value (#5068) * fix focus outline * focus on cell values * focus on size value if defined * row actions menu aria-label --- .../datatable/datatable.component.html | 18 +++++++++--------- .../datatable/datatable.component.scss | 3 +++ lib/core/i18n/en.json | 3 ++- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/lib/core/datatable/components/datatable/datatable.component.html b/lib/core/datatable/components/datatable/datatable.component.html index 400b555abc..154ae8f025 100644 --- a/lib/core/datatable/components/datatable/datatable.component.html +++ b/lib/core/datatable/components/datatable/datatable.component.html @@ -99,7 +99,6 @@ [attr.data-automation-id]="getAutomationValue(row)" [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)" [adf-context-menu]="getContextMenuActions(row, col)" @@ -107,7 +106,7 @@ adf-drop-zone dropTarget="cell" [dropColumn]="col" [dropRow]="row">
-
+
{{ asIconValue(row, col) }} @@ -131,7 +130,7 @@
-
+
{{ 'ADF-DATATABLE.ACCESSIBILITY.ICON_ALT_TEXT' | translate:{ type: 'ADF-DATATABLE.FILE_TYPE.' + (data.getValue(row, col) | fileType | uppercase) | translate @@ -140,7 +139,7 @@ {{ data.getValue(row, col) }}
-
-
-
-
-
+
-
+
@@ -205,6 +204,7 @@ role="gridcell" class="adf-datatable-cell adf-datatable__actions-cell adf-datatable-center-actions-column-ie">