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
Table: expose row index / startFrom as a table-level ARIA concern (aria-rowindex) #3939
Follow-up from review of #3756 (useTableRowIndex).
startFrom on useTableRowIndex is currently a presentational offset for the visible index column. But the row ordinal is fundamentally an accessibility concern — the ARIA row index (aria-rowindex) should be correct even when no visible index column is rendered.
Proposal
Consider exposing row-index numbering (including a startFrom / offset) as a Table-level prop rather than only via the useTableRowIndex plugin, so:
aria-rowindex on <tr> is correct regardless of whether a visible # column is shown.
The visible-index plugin can then read/derive from the same source of truth instead of maintaining its own numbering.
Considerations
Pagination: the ARIA row index should reflect the row's position in the full dataset, not just the current page — needs to account for page offset.
Interaction with sorting/filtering (does the ARIA index follow the rendered order or the source order?).
Overlap/relationship with the existing useTableRowIndex plugin — likely the plugin should consume the table-level index rather than duplicate it.
Activity
feat(core): Table row index as a table-level ARIA concern (#3939)
feat(core): Table row index as a table-level ARIA concern (meta#3939) (…