Skip to content

PivotGrid: Add aria-colindex / aria-rowindex to cells#34178

Merged
sjbur merged 1 commit into
DevExpress:26_1from
sjbur:issue-4653-26_1
Jul 3, 2026
Merged

PivotGrid: Add aria-colindex / aria-rowindex to cells#34178
sjbur merged 1 commit into
DevExpress:26_1from
sjbur:issue-4653-26_1

Conversation

@sjbur

@sjbur sjbur commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@sjbur sjbur self-assigned this Jun 30, 2026
@sjbur sjbur added the 26_1 label Jun 30, 2026

if (isDefined(cell.wordWrapEnabled)) {
span.style.whiteSpace = cell.wordWrapEnabled ? 'normal' : 'nowrap';
if (isDefined(cell.wordWrapEnabled)) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved isDefined(cell.wordWrapEnabled) inside if (cell) check because if cell is undefined, we get type error in runtime

@sjbur sjbur marked this pull request as ready for review June 30, 2026 10:58
@sjbur sjbur requested a review from a team as a code owner June 30, 2026 10:58
@sjbur sjbur requested a review from Copilot July 1, 2026 08:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds ARIA positional indexing to PivotGrid cells to improve accessibility tooling support, including correct indexing behavior under virtual scrolling.

Changes:

  • Add aria-colindex / aria-rowindex assignment during PivotGrid area cell rendering.
  • Expose virtual scrolling index offsets via new DataController helpers.
  • Add QUnit coverage for basic indexing, multi-level headers with colspan, and virtual scrolling offsets.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets.pivotGrid/pivotGrid.markup.tests.js Adds QUnit tests validating aria-colindex/aria-rowindex on header/data areas, including virtual scrolling offsets and colspan behavior.
packages/devextreme/js/__internal/grids/pivot_grid/data_controller/m_data_controller.ts Adds index-offset helpers derived from virtual scroll controllers (beginPageIndex * pageSize).
packages/devextreme/js/__internal/grids/pivot_grid/area_item/m_area_item.ts Sets aria-colindex/aria-rowindex on rendered cells (with a map for multi-level column headers).

Comment on lines 191 to +198
tableElement.data('area', this._getAreaName());
tableElement.data('data', data);
tableElement.css('width', '');

const tbody = this._getMainElementMarkup();
const areaName = this._getAreaName();
const columnIndexOffset = this._getColumnIndexOffset();
const rowIndexOffset = this._getRowIndexOffset();
@sjbur sjbur added this pull request to the merge queue Jul 3, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 3, 2026
@sjbur sjbur added this pull request to the merge queue Jul 3, 2026
Merged via the queue into DevExpress:26_1 with commit 378beff Jul 3, 2026
126 of 127 checks passed
@sjbur sjbur deleted the issue-4653-26_1 branch July 3, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants