Skip to content

Commit

Permalink
Fix margins on BackButton
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonking committed Jan 10, 2024
1 parent 79387ed commit 6e30e06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clients/admin-ui/src/features/common/nav/v2/BackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const BackButton = ({
backPath,
...props
}: { backPath: string } & FlexProps) => (
<Flex alignItems="center" mb={3} {...props}>
// In general Layout provides a default top padding. But on pages with
// Back buttons, we want the Back button to be higher and for the page to be less top-padded
<Flex alignItems="center" mt={-4} mb={3} {...props}>
<NextLink href={backPath} passHref>
<IconButton
aria-label="Back"
Expand Down

0 comments on commit 6e30e06

Please sign in to comment.