Skip to content

PivotGrid A11y and KBN - The headerfilter has an incorrect description in aria-label: there is no column name#33718

Merged
bit-byte0 merged 3 commits into
DevExpress:26_1from
bit-byte0:fix/pivot-grid-header-filter-aria-label
May 27, 2026
Merged

PivotGrid A11y and KBN - The headerfilter has an incorrect description in aria-label: there is no column name#33718
bit-byte0 merged 3 commits into
DevExpress:26_1from
bit-byte0:fix/pivot-grid-header-filter-aria-label

Conversation

@bit-byte0
Copy link
Copy Markdown
Contributor

What

Fix aria-label showing undefined on PivotGrid header filter buttons

Screenshot 2026-05-25 at 6 29 59 PM

How

|| → ?? in renderField. || treats '' as falsy → falls to undefined dataField. ?? preserves ''

Verify

Add { area: 'column' } field (no dataField, no caption) to PivotGrid field panel. Inspect filter button → no undefined in label

@bit-byte0 bit-byte0 requested a review from a team May 26, 2026 10:21
@bit-byte0 bit-byte0 self-assigned this May 26, 2026
Copilot AI review requested due to automatic review settings May 26, 2026 10:21
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

Fixes an accessibility issue in PivotGrid Field Chooser where header filter button aria-label could contain undefined when a field has an empty string caption and no dataField by switching from || to nullish coalescing (??) and adding a safe empty-string fallback.

Changes:

  • Use field.caption ?? field.dataField ?? '' when rendering field text.
  • Use the same nullish fallback for the caption passed into sort/headerFilter indicator column configs (prevents undefined from flowing into the header filter indicator aria-label formatting).

@bit-byte0 bit-byte0 added the 26_1 label May 26, 2026
@bit-byte0 bit-byte0 merged commit 1242be6 into DevExpress:26_1 May 27, 2026
103 checks passed
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