From 85e62cf08095b5b8706041bca3a54dcbf4275049 Mon Sep 17 00:00:00 2001 From: Shivangi917 Date: Fri, 13 Jun 2025 14:04:11 -0400 Subject: [PATCH] [ACS-9224] Add role='gridcell' and localized aria-label to checkbox column --- .../datatable/datatable.component.html | 61 +++++++++++-------- 1 file changed, 37 insertions(+), 24 deletions(-) diff --git a/lib/core/src/lib/datatable/components/datatable/datatable.component.html b/lib/core/src/lib/datatable/components/datatable/datatable.component.html index 626d9e089c..30fc469114 100644 --- a/lib/core/src/lib/datatable/components/datatable/datatable.component.html +++ b/lib/core/src/lib/datatable/components/datatable/datatable.component.html @@ -18,12 +18,13 @@ -
+
{{ 'ADF-DATATABLE.ACCESSIBILITY.DRAG' | translate }}
-
+
{{ 'ADF-DATATABLE.ACCESSIBILITY.ACTIONS' | translate }}
@@ -33,7 +34,7 @@ [checked]="isSelectAllChecked" (change)="onSelectAllClick($event)" class="adf-checkbox-sr-only" - [aria-label]="'ADF-DATATABLE.ACCESSIBILITY.SELECT_ALL' | translate"> + [attr.aria-label]="'ADF-DATATABLE.ACCESSIBILITY.SELECT_ALL' | translate"> {{ 'ADF-DATATABLE.ACCESSIBILITY.SELECT_ALL' | translate }}
@@ -106,7 +107,13 @@ {{ getSortLiveAnnouncement(col) | translate: { string: col.title | translate } }} - + + {{ 'ADF-DATATABLE.ACCESSIBILITY.EMPTY_HEADER' | translate }} + +
@@ -124,6 +131,8 @@ *ngIf="col.draggable" cdkDragHandle [ngClass]="{ 'adf-datatable-cell-header-drag-icon': !isResizing }" + aria-hidden="true" + role="presentation" >
+ [resizableContainer]="resizableElement" + [attr.aria-label]="'ADF-DATATABLE.ACCESSIBILITY.RESIZE_COLUMN' | translate"> +
@@ -184,7 +195,7 @@
@@ -236,28 +247,30 @@
- - +
+
-
+ \ No newline at end of file