Skip to content

Commit

Permalink
fix: adjust BigTitle padding and close, ref leather-io/extension#5802
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Aug 30, 2024
1 parent c6aa874 commit fe407d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ui/src/components/sheet/sheet-header.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function SheetHeader({ onClose, title, variant = 'default' }: SheetHeader
justifyContent="flex-end"
alignItems="center"
m={{ base: 0, md: 'auto' }}
p="space.04"
p={variant === 'large' ? 'space.05' : 'space.04'}
bg="transparent"
width="100%"
minHeight="headerHeight"
Expand All @@ -31,7 +31,9 @@ export function SheetHeader({ onClose, title, variant = 'default' }: SheetHeader
{title}
</styled.h2>
)}
{onClose && <IconButton icon={<CloseIcon />} onClick={onClose} position="absolute" />}
{onClose && (
<IconButton icon={<CloseIcon />} onClick={onClose} position="absolute" top="space.05" />
)}
</Flex>
);
}

0 comments on commit fe407d7

Please sign in to comment.