Skip to content

Commit

Permalink
fix highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Nov 19, 2024
1 parent feeca3e commit 5a42b5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/table/Td.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ export const Td = styled.td<{
backgroundColor: highlight
? theme.colors[tableFillLevelToHighlightedCellBg[fillLevel]]
: 'inherit',
borderTop: firstRow ? '' : theme.borders[tableFillLevelToBorder[fillLevel]],
borderTop:
firstRow || highlight
? ''
: theme.borders[tableFillLevelToBorder[fillLevel]],
color: theme.colors['text-light'],

padding: padCells ? (loose ? '16px 12px' : '8px 12px') : 0,
Expand Down
4 changes: 3 additions & 1 deletion src/components/table/Th.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export const Th = styled.th<{
position: 'relative',
backgroundColor: theme.colors[tableHeaderColor(fillLevel, highlight)],
zIndex: 4,
borderBottom: theme.borders[tableFillLevelToBorder[fillLevel]],
borderBottom: highlight
? undefined
: theme.borders[tableFillLevelToBorder[fillLevel]],
color: theme.colors.text,
height: 48,
minHeight: 48,
Expand Down

0 comments on commit 5a42b5c

Please sign in to comment.