Skip to content

Commit

Permalink
table changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsladerman committed Jul 4, 2024
1 parent ae5f412 commit 19be910
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,20 @@ const Tr = styled.tr<{
}) => ({
display: 'contents',
backgroundColor: selected
? theme.colors['fill-one-selected']
? theme.colors['fill-zero-hover']
: raised || (selectable && !selected)
? theme.colors['fill-one-hover']
: theme.colors['fill-one'],
? theme.colors['fill-zero-selected']
: theme.colors['fill-zero'],

...(clickable && {
cursor: 'pointer',

'&:hover': {
backgroundColor: selectable
? selected
? theme.colors['fill-one-selected']
: theme.colors['fill-one-hover']
: theme.colors['fill-one-selected'],
? theme.colors['fill-zero-hover']
: theme.colors['fill-zero-selected']
: theme.colors['fill-zero-hover'],
},
}),
})
Expand All @@ -196,9 +196,9 @@ const Th = styled.th<{
alignItems: 'center',
display: hideHeader ? 'none' : 'flex',
position: 'relative',
backgroundColor: theme.colors['fill-two'],
backgroundColor: theme.colors['fill-one'],
zIndex: 4,
borderBottom: theme.borders['fill-three'],
borderBottom: theme.borders.default,
color: theme.colors.text,
height: 48,
minHeight: 48,
Expand All @@ -222,7 +222,7 @@ const Th = styled.th<{
bottom: 0,
width: 10000,
backgroundColor: theme.colors['fill-two'],
borderBottom: hideHeader ? 'none' : theme.borders['fill-three'],
borderBottom: hideHeader ? 'none' : theme.borders.default,
},
},
'&:first-child': {
Expand Down

0 comments on commit 19be910

Please sign in to comment.