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
When DataTable in configured with striped="even" it applies stripedColor to odd rows. In other words: it always applies stripedColor to odd rows.
In core Mantine Table, TableProps:
striped boolean | "odd" | "even" Determines whether every odd/even row background should be changed to strippedColor, if set to true, then odd value will be used, false by default
Since DataTable imports and reuse core Table Props (since striped is not omitted in DataTableProps when it adds TableProps), I think it would be expected to have the same configuration and behavior.
When DataTable in configured with striped="even" it applies stripedColor to odd rows. In other words: it always applies stripedColor to odd rows.
In core Mantine Table, TableProps:
striped boolean | "odd" | "even" Determines whether every odd/even row background should be changed to strippedColor, if set to true, then odd value will be used, false by default
Since DataTable imports and reuse core Table Props (since striped is not omitted in DataTableProps when it adds TableProps), I think it would be expected to have the same configuration and behavior.
"@mantine/core": "^7.13.2",
"mantine-datatable": "^7.14.5"
The problem seems to be in DataTable.css:
&[data-striped] tbody tr:nth-of-type(odd) {
background: var(--mantine-datatable-striped-color);
}
Thanks for this excellent component!
The text was updated successfully, but these errors were encountered: