Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't double highlight nested tables #1197

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export const MRT_TableBodyRow = <TData extends MRT_RowData>({
...tableRowProps?.style,
}}
sx={(theme: Theme) => ({
'&:hover td:after': cellHighlightColorHover
'&:hover > td:after': cellHighlightColorHover
? {
backgroundColor: alpha(cellHighlightColorHover, 0.3),
...commonCellBeforeAfterStyles,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,18 @@ const columns: MRT_ColumnDef<(typeof data)[0]>[] = [
{
accessorKey: 'address',
header: 'Address',
Cell: ({ cell }) => (
<table>
<tbody>
<tr>
<td>{cell.getValue<string>()}</td>
</tr>
</tbody>
</table>
)
},
];

const data = [...Array(21)].map(() => ({
address: faker.location.streetAddress(),
age: faker.number.int(80),
Expand Down
Loading