Skip to content

PivotGrid - A11y - fix KBN in area items#33778

Open
Tucchhaa wants to merge 2 commits into
DevExpress:26_1from
Tucchhaa:pg_sorting_kbn_26_1
Open

PivotGrid - A11y - fix KBN in area items#33778
Tucchhaa wants to merge 2 commits into
DevExpress:26_1from
Tucchhaa:pg_sorting_kbn_26_1

Conversation

@Tucchhaa
Copy link
Copy Markdown
Contributor

@Tucchhaa Tucchhaa commented Jun 1, 2026

No description provided.

@Tucchhaa Tucchhaa force-pushed the pg_sorting_kbn_26_1 branch from ffd8c13 to f9a1fd0 Compare June 4, 2026 12:27
@Tucchhaa Tucchhaa marked this pull request as ready for review June 4, 2026 12:28
@Tucchhaa Tucchhaa requested a review from a team as a code owner June 4, 2026 12:29
Copilot AI review requested due to automatic review settings June 4, 2026 12:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves PivotGrid keyboard accessibility (KBN) for field/area items by making area fields keyboard-focusable, handling Enter/Space activation, and restoring focus after rerenders/updates. It also adds end-to-end TestCafe coverage for tab traversal and focus persistence in both PivotGrid field panels and the FieldChooser.

Changes:

  • Make PivotGrid/FieldChooser area field items focusable and keyboard-activatable (Enter/Space) and restore focus after updates.
  • Restore field focus after header rendering and after scrollable updates/dimension recalculation.
  • Add comprehensive TestCafe KBN tests for tab navigation, sorting activation, and header-filter focus restoration.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/testcafe-models/pivotGrid/fieldChooser.ts Adds a selector helper for data-area items in the FieldChooser model.
packages/devextreme/js/__internal/grids/pivot_grid/m_widget.ts Calls restoreFieldFocus() after header rendering and after scrollable updates to keep focus stable.
packages/devextreme/js/__internal/grids/pivot_grid/field_chooser/m_field_chooser.ts Restores field focus on data source changed events in the FieldChooser.
packages/devextreme/js/__internal/grids/pivot_grid/field_chooser/m_field_chooser_base.ts Adds tabindex to field items, keyboard handling, and focus-tracking/restoration logic.
e2e/testcafe-devextreme/tests/common/pivotGrid/kbn/fields.ts New E2E coverage for field focusability, tab traversal, Enter/Space behavior, and header filter focus restoration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants