Skip to content

fix(common): improve screen reader narration and keyboard a11y - #2966

Merged
ghiscoding merged 8 commits into
masterfrom
bugfix/a11y-narration
Dec 3, 2026
Merged

ghiscoding merged 8 commits into
masterfrom
bugfix/a11y-narration

Conversation

@ghiscoding

@ghiscoding ghiscoding commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Improves v11 screen-reader narration and keyboard accessibility, validated with Windows Narrator and Edge. The main root cause was keyboard focus remaining on hidden focus sinks outside role="grid", which prevented screen readers from announcing cell navigation unless selection state changed.

The work follows the external grid scorecard.

Why

  • Arrow navigation was silent in row-selection, checkbox-selector, and tree/group grids.
  • Checkbox selectors lacked accessible names, and tree/group rows did not expose hierarchy or expanded state.
  • Row and column positions did not consistently match the visible, virtualized grid.
  • Column resize handles and menus could not be fully operated from the keyboard.
  • The audit identified substantial potential bundle growth, requiring repeated consolidation and size re-audits.

Changes

  • Focus model: focus moves to the active gridcell with preventScroll and is restored after rerenders. Focus sinks remain for Tab boundaries and internal handoffs.
  • Selection semantics: exposes aria-multiselectable and consistent row/cell aria-selected state, including mixed selection mode.
  • Checkbox selector: localized rowSelectAriaLabel and selectAllAriaLabel string options, Enter/Space toggling, and partial Select All state through native indeterminate and aria-checked="mixed".
  • Tree and group data: treegrid, aria-level, aria-expanded, aria-busy, localized focused-cell labels, decorative toggle icons, and keyboard expand/collapse.
  • Positions: visible header/filter rows are included in ARIA row totals and indexes; column indexes count only visible columns in rendered docking/pinning order.
  • Keyboard controls: focusable vertical resize separators support Left/Right and Shift for fine adjustment, including RTL and force-fit behavior. Context Menu / Shift+F10 open the appropriate Cell or Context Menu.
  • Naming: grid-level ariaLabel / ariaLabelledBy; column headers use title-only naming so resize values are not repeated in cell descriptions.
  • Focus visibility: increased the default light/dark focus-outline contrast.
  • Examples: enabled enableCellNavigation and added aligned grouping ARIA Cypress coverage for Angular, React, Vue, Aurelia, and Svelte; Vanilla Example 02 was already equivalent.
  • Bundle size: consolidated shared paths and reduced the measured addition from approximately +10.1 KB minified / +2.9 KB gzip to +7.1 KB minified / +2.2 KB gzip. No runtime dependencies or SCSS layout growth were added.
  • Updated root and framework accessibility, migration, and AI-skill documentation.

New additive options include keyboardColumnResizeStep, columnResizeAriaLabelFormatter, ariaLabel, ariaLabelledBy, and localized checkbox strings.

Validation

  • Full Vitest suite: 6,541 tests passed
  • Focused production-file coverage: 100% statements
  • tsc --noEmit -p packages/common/tsconfig.json: passed
  • Changed-file OXLint and Prettier checks: passed
  • pnpm build:universal: passed during implementation
  • Cypress CI: all framework suites passed except React Example 13, where a consistent ARIA toggle failure exposed missing enableCellNavigation in the demo. The fix passed locally in Cypress UI; final CI rerun is pending.
  • Manual Windows + Edge + Narrator validation covered focused-cell narration, checkbox names/state, tree state, virtualized row positions, hidden-column indexing, and keyboard resize.

NVDA and a final Narrator re-check of the column-header naming refinement were not run.

Comments

The completed plan and deliberate deferrals are tracked in .agents/audits/external-grid-scorecard-audit.md.

No generic live region or forced-colors theme was added to avoid bundle growth and framework-wide styling conflicts. Exact-width pointer entry without dragging (WCAG 2.5.7) was tested as a possible header-menu command but deferred because it changed established menu positions. These can be revisited following a concrete user request.

AI / LLM assistance

  • AI / LLM assistance used:
    • Yes
      • Which tool/model: GitHub Copilot — Opus 5.5 and MAI Code 2
      • How was it used: audit, implementation, unit/Cypress test updates, bundle-size re-audit, and documentation; manual Narrator validation was performed by the author
    • No

Checklist

  • The changes are limited to only one scope (if not please explain why in the comments above).
  • Tests were added or updated where appropriate.
  • Documentation was updated where appropriate.

@ghiscoding ghiscoding changed the title "task 1, parentId null, level 1, collapsed fix(common): improve screen reader narration and keyboard a11y Dec 2, 2026
@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.0%. Comparing base (a014c84) to head (a74b730).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #2966    +/-   ##
========================================
  Coverage   100.0%   100.0%            
========================================
  Files         219      219            
  Lines       31431    31597   +166     
  Branches    10646    10712    +66     
========================================
+ Hits        31431    31597   +166     
Flag Coverage Δ
angular 100.0% <ø> (ø)
universal 100.0% <100.0%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ghiscoding
ghiscoding force-pushed the bugfix/a11y-narration branch from a13dd8a to 53d12b2 Compare December 2, 2026 02:15
@pkg-pr-new

pkg-pr-new Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
angular-slickgrid

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/angular-slickgrid@2966

aurelia-slickgrid

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/aurelia-slickgrid@2966

slickgrid-react

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/slickgrid-react@2966

slickgrid-svelte

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/slickgrid-svelte@2966

slickgrid-vue

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/slickgrid-vue@2966

@slickgrid-universal/angular-row-detail-plugin

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/angular-row-detail-plugin@2966

@slickgrid-universal/aurelia-row-detail-plugin

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/aurelia-row-detail-plugin@2966

@slickgrid-universal/react-row-detail-plugin

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/react-row-detail-plugin@2966

@slickgrid-universal/svelte-row-detail-plugin

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/svelte-row-detail-plugin@2966

@slickgrid-universal/vue-row-detail-plugin

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/vue-row-detail-plugin@2966

@slickgrid-universal/binding

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/binding@2966

@slickgrid-universal/calculated-columns

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/calculated-columns@2966

@slickgrid-universal/common

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/common@2966

@slickgrid-universal/composite-editor-component

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/composite-editor-component@2966

@slickgrid-universal/custom-footer-component

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/custom-footer-component@2966

@slickgrid-universal/custom-tooltip-plugin

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/custom-tooltip-plugin@2966

@slickgrid-universal/empty-warning-component

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/empty-warning-component@2966

@slickgrid-universal/event-pub-sub

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/event-pub-sub@2966

@slickgrid-universal/excel-export

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/excel-export@2966

@slickgrid-universal/formula-editor

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/formula-editor@2966

@slickgrid-universal/formula-engine

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/formula-engine@2966

@slickgrid-universal/graphql

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/graphql@2966

@slickgrid-universal/odata

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/odata@2966

@slickgrid-universal/pagination-component

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/pagination-component@2966

@slickgrid-universal/pdf-export

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/pdf-export@2966

@slickgrid-universal/row-detail-plugin

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/row-detail-plugin@2966

@slickgrid-universal/rxjs-observable

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/rxjs-observable@2966

@slickgrid-universal/sql

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/sql@2966

@slickgrid-universal/text-export

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/text-export@2966

@slickgrid-universal/utils

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/utils@2966

@slickgrid-universal/vanilla-bundle

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/vanilla-bundle@2966

@slickgrid-universal/vanilla-force-bundle

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/vanilla-force-bundle@2966

@slickgrid-universal/web-mcp

npm i https://pkg.pr.new/ghiscoding/slickgrid-universal/@slickgrid-universal/web-mcp@2966

commit: a74b730

@ghiscoding
ghiscoding merged commit a90b49d into master Dec 3, 2026
23 checks passed
@ghiscoding
ghiscoding deleted the bugfix/a11y-narration branch December 3, 2026 16:01
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.

1 participant