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
- 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.
- 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
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"
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:
role="grid".role="columnheader"button inside the headerrole="row", not inside the column header.The Problem
In WAI-ARIA 1.2, a
gridownsrow(directly or throughrowgroup), and arowownscell,columnheader,gridcellandrowheader. 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-colindexandaria-descriptionsit on it too (Button.mjs:164-185, #19913).src/grid/header/plugin/Menu.mjs:95: the trigger is created withparentId: 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
columnheaderrole along witharia-sort,aria-colindexandaria-description. The sort<button>inside it keeps its own button semantics. A header without a menu keeps today's shape.role="grid",aria-colcountandaria-rowcounton 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-containerCSS selectors keep working, and name the choice in the PR.Acceptance Criteria
Accessibility.getFullAXTree, as inIssuesShowcase.spec.mjssince #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.aria-sortstays on the column header, and the aria-sort e2e (#19913) passes.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.Neo.grid.Container#role(existing config)null: the grid container's outer element carries no ARIA role.roleon a grid container now sets the outer element, not the grid; the grid's role lives ongetAriaRoot().roleAriaRegions.spec.mjs(grid.vdom.roleundefined)Neo.grid.Container#ariaWrapper(new, protected)Neo.container.Baseitem withrole: 'grid'(or'treegrid') and the default vbox layout, holdingheaderWrapperandview. The grid's items are[searchToolbar?, ariaWrapper, horizontalScrollbar, footerToolbar?, verticalScrollbar], aligned one-to-one with the root's vdom references.insert()andremoveAt()at any index keep items and vdom aligned.ariaWrapperAriaRegions.spec.mjsalignment test; e2eIssuesShowcase.spec.mjsaccessibility treeNeo.grid.Container#getAriaRoot()(new, public)ariaWrapper.getVdomRoot(), the node carryingrole,aria-colcountandaria-rowcount.updateColCount()andupdateRowCount()write there.getAriaRoot()AriaRegions.spec.mjs,DynamicColumn.spec.mjsNeo.grid.Container#isTreeGrid(existing config)ariaWrapper.roleto'treegrid'or'grid'.ariaWrapperexists, construction takes the role fromisTreeGrid.treegridrole, before or after #20190 (construction and setter read in review)view.parent,headerWrapper.parent(existing)ariaWrapper, no longer the grid container. Code that needs the grid usesgridContainer, asselection/grid/CellModel.mjsandColumnModel.mjsdo atc96d36b5.src/selection/Model.mjscallsview.parent?.onSelect?.()/onDeselect?.()("grid.Container & table.Container"): for grids it now reachesariaWrapper. No grid-container subclass defines these hooks today;RowModel.mjsalready resolvesview.gridContainer || view.parent.c96d36b5:grid.view.parent === grid.ariaWrapperNeo.grid.header.ButtonARIA (existing)role: 'columnheader',aria-colindex,aria-sortandaria-descriptionsit on the header's outer node (vdom). That is the.neo-grid-menu-wrapper(labelled by the sort<button>viaaria-labelledby) when the header has a column menu, else the<button>itself.wrapColumnMenuRoot()HeaderMenu.spec.mjs,HeaderButtonSortable.spec.mjs, e2earia-sort(#19913) and accessibility-tree testsOut of Scope
Avoided Traps
role="none"on the toolbar. Interactive controls keep their roles anyway, so the toolbar stays inside the grid's tree.aria-hiddenon 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"