LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-maryam
createdAtOct 31, 2026, 4:10 PM
updatedAtOct 31, 2026, 11:28 PM
githubUrlhttps://github.com/neomjs/neo/issues/20188
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 31, 2026, 11:28 PM

The grid's search toolbar and header menu triggers sit inside its ARIA rows

Closed v13.4.0/archive-v13-4-0-chunk-3 bugaigridaccessibility
neo-opus-grace
neo-opus-grace commented on Oct 31, 2026, 4:10 PM

Context

This is split from #20187. It is not about locked columns: it applies to every grid that uses the 13.3 search toolbar or header menus. The issues showcase on neomjs.com production, read on 2026-10-31, shows:

  • The search toolbar (the "Search records" textbox, the "Grid columns" and "Match case" buttons) sits inside the element that carries role="grid".
  • A header's menu trigger (for example the "Filter Type" button) sits beside its role="columnheader" button inside the header role="row", not inside the column header.

The Problem

In WAI-ARIA 1.2, a grid owns row (directly or through rowgroup), and a row owns cell, columnheader, gridcell and rowheader. A textbox or a button that is a direct child of either lands between the grid's rows and cells, outside any column. A screen reader moving through the table meets controls that belong to no cell, and the trigger is not announced as part of its column's header.

The Architectural Reality

  • src/grid/Container.mjs:200: role: 'grid' sits on the container root. That root holds the items [searchToolbar, headerWrapper, view, horizontalScrollbar] (Container.mjs:355-357, searchToolbar_ at :164), so the toolbar renders inside the grid.
  • src/grid/header/Button.mjs:115: role: 'columnheader' applies to the button's VDOM root, the <button> itself. aria-sort, aria-colindex and aria-description sit on it too (Button.mjs:164-185, #19913).
  • src/grid/header/plugin/Menu.mjs:95: the trigger is created with parentId: owner.vdom.id, so it lands in the button's outer wrapper (.neo-grid-menu-wrapper), beside the <button> and not inside it. A <button> cannot contain another button.

Design authority: WAI-ARIA 1.2's owned-element rules, quoted above. No engine record makes the toolbar part of the grid or the trigger part of the row.

The Fix

  1. Column header around the trigger. When a header has a wrapper, give the wrapper the columnheader role along with aria-sort, aria-colindex and aria-description. The sort <button> inside it keeps its own button semantics. A header without a menu keeps today's shape.
  2. A grid that holds only rows. Put role="grid", aria-colcount and aria-rowcount on an element that holds only the header rows and the bodies, so the search toolbar (and any footer) sits outside it. Choose the element so that existing .neo-grid-container CSS selectors keep working, and name the choice in the PR.

Acceptance Criteria

  • In Chromium's accessibility tree (CDP Accessibility.getFullAXTree, as in IssuesShowcase.spec.mjs since #20187), the grid's subtree holds no textbox or button outside a cell or column header. The search toolbar is a sibling of the grid.
  • Each header menu trigger sits inside its column header in the accessibility tree. aria-sort stays on the column header, and the aria-sort e2e (#19913) passes.
  • Sorting, resizing, column drag and the header menu keep working, with the existing unit, component and e2e grid suites green.

Contract Ledger

Backfilled by the ticket's author (review RA-2 on #20190) to match what PR #20190 ships at c96d36b5. Each existing surface was checked against that head during review.

Target Surface Source of Authority Proposed Behavior Fallback / Edge Case Docs Evidence
Neo.grid.Container#role (existing config) This ticket, Fix 2; WAI-ARIA 1.2 owned elements Defaults to null: the grid container's outer element carries no ARIA role. Setting role on a grid container now sets the outer element, not the grid; the grid's role lives on getAriaRoot(). JSDoc on role AriaRegions.spec.mjs (grid.vdom.role undefined)
Neo.grid.Container#ariaWrapper (new, protected) This ticket, Fix 2; review RA-1 A Neo.container.Base item with role: 'grid' (or 'treegrid') and the default vbox layout, holding headerWrapper and view. The grid's items are [searchToolbar?, ariaWrapper, horizontalScrollbar, footerToolbar?, verticalScrollbar], aligned one-to-one with the root's vdom references. insert() and removeAt() at any index keep items and vdom aligned. JSDoc on ariaWrapper AriaRegions.spec.mjs alignment test; e2e IssuesShowcase.spec.mjs accessibility tree
Neo.grid.Container#getAriaRoot() (new, public) This ticket, Fix 2 Returns ariaWrapper.getVdomRoot(), the node carrying role, aria-colcount and aria-rowcount. updateColCount() and updateRowCount() write there. n/a JSDoc on getAriaRoot() AriaRegions.spec.mjs, DynamicColumn.spec.mjs
Neo.grid.Container#isTreeGrid (existing config) This ticket, Fix 2 Sets ariaWrapper.role to 'treegrid' or 'grid'. Before ariaWrapper exists, construction takes the role from isTreeGrid. JSDoc unchanged None yet: no test asserts the treegrid role, before or after #20190 (construction and setter read in review)
Parent chain: view.parent, headerWrapper.parent (existing) Review RA-1 (the wrapper is an item) Both are now ariaWrapper, no longer the grid container. Code that needs the grid uses gridContainer, as selection/grid/CellModel.mjs and ColumnModel.mjs do at c96d36b5. src/selection/Model.mjs calls view.parent?.onSelect?.() / onDeselect?.() ("grid.Container & table.Container"): for grids it now reaches ariaWrapper. No grid-container subclass defines these hooks today; RowModel.mjs already resolves view.gridContainer || view.parent. — Review check at c96d36b5: grid.view.parent === grid.ariaWrapper
Neo.grid.header.Button ARIA (existing) This ticket, Fix 1; #19913 role: 'columnheader', aria-colindex, aria-sort and aria-description sit on the header's outer node (vdom). That is the .neo-grid-menu-wrapper (labelled by the sort <button> via aria-labelledby) when the header has a column menu, else the <button> itself. A header without a menu keeps today's shape; wrapping is one-way. JSDoc on wrapColumnMenuRoot() HeaderMenu.spec.mjs, HeaderButtonSortable.spec.mjs, e2e aria-sort (#19913) and accessibility-tree tests

Out of Scope

  • Locked-column row and column indices (#20187).
  • Keyboard navigation (#9496).

Avoided Traps

  • role="none" on the toolbar. Interactive controls keep their roles anyway, so the toolbar stays inside the grid's tree.
  • aria-hidden on the trigger. That hides a working control from screen-reader users.

Related

#20187 (the locked-column part of the same finding), #19643 and #19791 (header menus and search, 13.3), #19913 (aria-sort).

Live latest-open + closed sweep: checked the latest 20 open issues and a closed search ("search toolbar aria grid", "header menu trigger columnheader", "role grid toolbar inside") at 2026-10-31T15:09Z. No equivalent or prior exclusion found. MC sweep: "grid search toolbar or header menu trigger button inside role grid row breaks screen reader table navigation", 5 results. No prior decision found. Own-assignment sweep: 5 open, none overlapping (#20187 is its sibling). A2A claim sweep: the last 15 messages (14:53Z to 15:09Z) hold no grid ARIA claim.

unowned-rationale: Ready for a contributor or a grid maintainer. It changes the header's element structure and needs a screen-reader read, so it is not labelled good first issue.

Origin Session ID: e8483c57-3c91-478e-9d75-75f40235f078 Retrieval Hint: "grid role on container wraps search toolbar; header menu trigger beside columnheader button"

tobiu referenced in commit 35f3b90 - "fix(grid): keep search toolbar and menu triggers out of ARIA rows (#20188) (#20190) on Oct 31, 2026, 11:28 PM
tobiu closed this issue on Oct 31, 2026, 11:28 PM