diff --git a/src/mantine-core/src/Table/Table.styles.ts b/src/mantine-core/src/Table/Table.styles.ts index e14d6f0093d..6097445b468 100644 --- a/src/mantine-core/src/Table/Table.styles.ts +++ b/src/mantine-core/src/Table/Table.styles.ts @@ -65,16 +65,21 @@ export default createStyles( size: verticalSpacing, sizes: theme.spacing, })}px ${theme.fn.size({ size: horizontalSpacing, sizes: theme.spacing })}px`, - borderBottom: border, + borderTop: border, fontSize: theme.fn.size({ size: fontSize, sizes: theme.fontSizes }), }, - '& tbody tr:last-of-type td': { - borderBottom: 'none', + '& tbody tr:first-of-type td': { + borderTop: 'none', }, - '& th + th, & td + td': { - borderLeft: withColumnBorders ? border : '', + '& thead th, & tbody td': { + borderRight: withColumnBorders ? border : 'none', + + '&:last-of-type': { + borderRight: 'none', + borderLeft: withColumnBorders ? border : 'none', + }, }, '&[data-striped] tbody tr:nth-of-type(odd)': {