Skip to content

Commit

Permalink
feat(layout): move child for margin
Browse files Browse the repository at this point in the history
  • Loading branch information
benprotheroe committed Apr 17, 2024
1 parent 7524a31 commit 5dd75b7
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ export type OakPupilJourneyLayoutProps = {
children: ReactNode;
};

/**
* `OakBox` does not support space-between tokens on `padding` only `margin`, so we need to
* set it here to apply appropriate padding to the top of the content.
*/
const StyledLayoutBox = styled(OakFlex)<{
sectionName: PupilJourneySectionName;
phase: Phase;
Expand Down Expand Up @@ -89,8 +85,8 @@ export const OakPupilJourneyLayout = ({
<OakFlex $flexDirection={"column"} $gap={["space-between-m2"]}>
{titleSlot}
<OakHandDrawnHR hrColor={"white"} $height={"all-spacing-1"} />
{children}
</OakFlex>
{children}
</OakFlex>
</StyledLayoutBox>
);
Expand Down

0 comments on commit 5dd75b7

Please sign in to comment.