Skip to content

Commit

Permalink
add role attributes to pinned rows divs
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Jul 26, 2022
1 parent 4c22fbb commit 66ae329
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ const DataGridProVirtualScroller = React.forwardRef<
className={classes.topPinnedRows}
ownerState={{ position: 'top' }}
style={{ width: contentProps.style.width, height: pinnedRowsHeight.top }}
role="rowgroup"
>
{leftRenderContext && (
<VirtualScrollerPinnedColumns
Expand All @@ -377,6 +378,7 @@ const DataGridProVirtualScroller = React.forwardRef<
<VirtualScrollerPinnedRowsRenderZone
className={classes.pinnedRowsRenderZone}
ref={topPinnedRowsRenderZoneRef}
role="presentation"
>
{topPinnedRows}
</VirtualScrollerPinnedRowsRenderZone>
Expand Down Expand Up @@ -446,6 +448,7 @@ const DataGridProVirtualScroller = React.forwardRef<
className={classes.bottomPinnedRows}
ownerState={{ position: 'bottom' }}
style={{ width: contentProps.style.width, height: pinnedRowsHeight.bottom }}
role="rowgroup"
>
{leftRenderContext && (
<VirtualScrollerPinnedColumns
Expand All @@ -466,6 +469,7 @@ const DataGridProVirtualScroller = React.forwardRef<
<VirtualScrollerPinnedRowsRenderZone
className={classes.pinnedRowsRenderZone}
ref={bottomPinnedRowsRenderZoneRef}
role="presentation"
>
{bottomPinnedRows}
</VirtualScrollerPinnedRowsRenderZone>
Expand Down

0 comments on commit 66ae329

Please sign in to comment.