diff --git a/apps/demos/testing/common.test.ts b/apps/demos/testing/common.test.ts index 1cca54907b6d..22650163014e 100644 --- a/apps/demos/testing/common.test.ts +++ b/apps/demos/testing/common.test.ts @@ -80,12 +80,6 @@ const getIgnoredRules = (testName) => { 'FileManager-Overview': ['aria-command-name', 'empty-table-header', 'label'], 'FileManager-UICustomization': ['aria-command-name', 'empty-table-header', 'label'], - 'PivotGrid-SummaryDisplayModes': ['aria-allowed-attr'], - 'PivotGrid-StatePersistence': ['aria-allowed-attr'], - 'PivotGrid-StandaloneFieldChooser': ['aria-allowed-attr'], - 'PivotGrid-FieldPanel': ['aria-allowed-attr'], - 'PivotGrid-ExcelJsHeaderAndFooter': ['aria-allowed-attr'], - 'Gantt-Appearance': ['aria-toggle-field-name'], 'Gantt-ExportToPDF': ['aria-toggle-field-name'], 'Gantt-StripLines': ['aria-required-parent', 'aria-valid-attr-value'], diff --git a/packages/devextreme/js/__internal/grids/pivot_grid/field_chooser/m_field_chooser_base.ts b/packages/devextreme/js/__internal/grids/pivot_grid/field_chooser/m_field_chooser_base.ts index f9a98f4830b4..c3b99f3286c6 100644 --- a/packages/devextreme/js/__internal/grids/pivot_grid/field_chooser/m_field_chooser_base.ts +++ b/packages/devextreme/js/__internal/grids/pivot_grid/field_chooser/m_field_chooser_base.ts @@ -121,6 +121,17 @@ export class FieldChooserBase extends mixinWidget { }; } + protected _setAriaSortAttribute(column, ariaSortState, $rootElement) { + $rootElement.removeAttr('aria-roledescription'); + + if (column.isGrouped && isDefined(column.sortOrder)) { + const description = column.sortOrder === 'asc' + ? this.localize('dxDataGrid-ariaSortedAscendingColumn') + : this.localize('dxDataGrid-ariaSortedDescendingColumn'); + this.setAria('roledescription', description, $rootElement); + } + } + _init() { super._init(); this._headerFilterView = new HeaderFilterView(this);