diff --git a/lib/core/datatable/components/datatable/datatable.component.html b/lib/core/datatable/components/datatable/datatable.component.html index d5f667fe4b..6ecf1735cb 100644 --- a/lib/core/datatable/components/datatable/datatable.component.html +++ b/lib/core/datatable/components/datatable/datatable.component.html @@ -25,6 +25,11 @@ (keyup.enter)="onColumnHeaderClick(col)" role="columnheader" tabindex="0" + [attr.aria-sort]="col.sortable ? + ((isColumnSorted(col, 'asc') ? + 'ADF-DATATABLE.ACCESSIBILITY.SORT_ASCENDING': + 'ADF-DATATABLE.ACCESSIBILITY.SORT_DESCENDING') | translate) : + null" title="{{ col.title | translate }}" adf-drop-zone dropTarget="header" [dropColumn]="col"> {{ col.srTitle | translate }} diff --git a/lib/core/i18n/en.json b/lib/core/i18n/en.json index 74153f1629..af0fe90868 100644 --- a/lib/core/i18n/en.json +++ b/lib/core/i18n/en.json @@ -258,7 +258,9 @@ }, "ACCESSIBILITY": { "SELECT_ALL": "Select all", - "SELECT_FILE": "Select file" + "SELECT_FILE": "Select file", + "SORT_ASCENDING": "ascending", + "SORT_DESCENDING": "descending" } }, "USER_PROFILE": {