Skip to content

Commit

Permalink
fix: table highlighting and modal fill level (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsladerman authored Aug 23, 2024
1 parent a27ad7a commit c416290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,13 @@ const sizeToWidth = {
const ModalSC = styled(Card)<{
$width: number
$maxWidth: number
}>(({ theme, $width, $maxWidth }) => ({
}>(({ $width, $maxWidth }) => ({
position: 'relative',
display: 'flex',
flexDirection: 'column',
height: '100%',
width: $width,
maxWidth: $maxWidth,
backgroundColor: theme.colors['fill-one'],
}))

const ModalContentSC = styled.div<{
Expand Down Expand Up @@ -186,6 +185,7 @@ function ModalRef(
{...props}
>
<ModalSC
fillLevel={1}
forwardedAs={asForm ? 'form' : undefined}
$width={sizeToWidth[size]}
$maxWidth={maxWidth}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ const Tr = styled.tr<{
...(clickable && {
cursor: 'pointer',

'&:hover': {
// highlight when hovered, but don't highlight if a child button is hovered
'&:not(:has(button:hover)):hover': {
backgroundColor: selectable
? selected
? theme.colors['fill-zero-hover']
Expand Down

0 comments on commit c416290

Please sign in to comment.