You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[focusgroupV2] Define when grid topology can be inferred automatically #1496
We should determine how much topology user agents can infer safely and where authors must provide explicit signals.
Questions to resolve:
Is the presence of focusgrouprow sufficient to select generic topology?
Which structural wrappers, if any, can be transparent to row discovery?
What happens when multiple plausible row levels exist?
How should mixed native and generic structures behave?
Can mutations change the inferred topology mode?
Is manual still useful as an explicit override or disambiguation signal?
When topology is ambiguous, invalidating the grid may be safer than selecting a plausible structure that can change unexpectedly. Authored ARIA roles should not select or alter focus topology.
Here's a calendar case where inferring topology from table structure gets in the way: non-interactive header cells.
I'm working on the headless Calendar in Fluent UI. The day grid is a native table with weekday column headers and, optionally, week-number row headers. Both matter to screen reader users, and neither should be a navigation stop.
The explainer treats every <td> and <th> as a cell. So the header row, the corner cell and the week-number column all need targets, and since they have none, the grid is invalid.
What I tried:
grid manual handles weekday headers: a header row without focusgrouprow is simply ignored. But it means giving up the native table and its header associations. It also doesn't help with week numbers, because every direct child of an enrolled row becomes a cell.
Week numbers have no valid markup today. Inside the row they become a cell. Outside the row they're no longer part of the ARIA row. Making them focusable would add a navigation stop that users don't expect.
inert or hiding. Non-participating rows and columns are dropped from topology, but that also removes the headers from the accessibility tree, so it doesn't help.
A few ideas, without being attached to any of them:
In automatic table topology, leave out <thead> rows and <th> cells that have no focusable content. That would be a narrow, structural rule that fits native header semantics.
Or add an explicit signal, such as an attribute on a row or cell meaning "structural, not a coordinate". That fits the issue's question about where authors should provide explicit signals.
In manual mode, allow non-participating children inside an enrolled row, so a row header can sit next to the cells without becoming a coordinate.
Inferring from <th> alone seems risky, because some grids have focusable, sortable headers that should be stops. That's an argument for (2), or for (1) only when the header has no focusable content.
The unavailable-date side of the calendar is in #1495. Happy to share runnable repros if that helps.
Activity
dmytrokirpa commentedon Oct 22, 2026
Here's a calendar case where inferring topology from table structure gets in the way: non-interactive header cells.
I'm working on the headless Calendar in Fluent UI. The day grid is a native table with weekday column headers and, optionally, week-number row headers. Both matter to screen reader users, and neither should be a navigation stop.
The explainer treats every
<td>and<th>as a cell. So the header row, the corner cell and the week-number column all need targets, and since they have none, the grid is invalid.What I tried:
grid manualhandles weekday headers: a header row withoutfocusgrouprowis simply ignored. But it means giving up the native table and its header associations. It also doesn't help with week numbers, because every direct child of an enrolled row becomes a cell.inertor hiding. Non-participating rows and columns are dropped from topology, but that also removes the headers from the accessibility tree, so it doesn't help.A few ideas, without being attached to any of them:
<thead>rows and<th>cells that have no focusable content. That would be a narrow, structural rule that fits native header semantics.Inferring from
<th>alone seems risky, because some grids have focusable, sortable headers that should be stops. That's an argument for (2), or for (1) only when the header has no focusable content.The unavailable-date side of the calendar is in #1495. Happy to share runnable repros if that helps.