feat(base): row ARIA index and selected state

This commit is contained in:
Philipinho
2026-06-15 02:34:00 +01:00
parent dec87947cf
commit 514c68e049
@@ -160,12 +160,15 @@ export const GridRow = memo(function GridRow({
data-index={rowIndex}
className={`${classes.row} ${classes.virtualRow} ${isDragging ? classes.rowDragging : ""} ${dropIndicatorClass} ${isSelected ? classes.rowSelected : ""}`}
role="row"
aria-rowindex={rowIndex + 1}
aria-selected={isSelected}
>
{row.getVisibleCells().map((cell) => (
{row.getVisibleCells().map((cell, colIndex) => (
<GridCell
key={cell.id}
cell={cell}
rowIndex={rowIndex}
colIndex={colIndex}
onCellUpdate={onCellUpdate}
pageId={pageId}
/>