Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/hooks/useExpandable/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import React from 'react';

const detailsRowForRule = (item, DetailsComponent, colSpan, runningIndex) => ({
parent: runningIndex() - 1,
props: {
...item.props,
'aria-setsize': 0,
},
props: (() => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { 'aria-level': _ariaLevel, ...detailsRowProps } = item.props || {};

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would still first like to try and find out where we set the aria-level in the first place and not set it for the details row cases.

return {
...detailsRowProps,
'aria-setsize': 0,
};
})(),
cells: [
{
title: <DetailsComponent item={item} key={'item-' + item.rowId} />,
Expand Down
Loading