Skip to content

Commit

Permalink
Merge pull request #33 from icflorescu/fix-borders
Browse files Browse the repository at this point in the history
Fix #32
  • Loading branch information
icflorescu committed Sep 14, 2022
2 parents 6fd73a7 + 6b60bcd commit 5dbebc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package/DataTable.tsx
Expand Up @@ -58,6 +58,10 @@ const useStyles = createStyles(
textSelectionDisabled: {
userSelect: 'none',
},
table: {
borderCollapse: 'separate',
borderSpacing: 0,
},
tableWithBorder: {
border: `1px solid ${borderColorValue}`,
},
Expand Down Expand Up @@ -247,7 +251,7 @@ export default function DataTable<T>({
<Table
ref={tableRef}
horizontalSpacing={horizontalSpacing}
className={cx({
className={cx(classes.table, {
[classes.tableWithColumnBorders]: withColumnBorders,
[classes.lastRowBorderBottomVisible]: tableHeight < scrollViewportHeight,
[classes.textSelectionDisabled]: textSelectionDisabled,
Expand Down

0 comments on commit 5dbebc4

Please sign in to comment.