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 104b0a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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"}

Check warning on line 20 in packages/ui/src/components/sheet/sheet-header.web.tsx

View workflow job for this annotation

GitHub Actions / lint-eslint

Replace `·variant·===·'large'·?·"space.05":·"space.04"` with `variant·===·'large'·?·'space.05'·:·'space.04'`
bg="transparent"
width="100%"
minHeight="headerHeight"
Expand All @@ -31,7 +31,7 @@ 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" />}

Check warning on line 34 in packages/ui/src/components/sheet/sheet-header.web.tsx

View workflow job for this annotation

GitHub Actions / lint-eslint

Replace `<IconButton·icon={<CloseIcon·/>}·onClick={onClose}·position="absolute"··top="space.05"·/>` with `(⏎········<IconButton·icon={<CloseIcon·/>}·onClick={onClose}·position="absolute"·top="space.05"·/>⏎······)`
</Flex>
);
}

0 comments on commit 104b0a3

Please sign in to comment.