Skip to content

Commit

Permalink
Refactor Container component styles for improved responsiveness and c…
Browse files Browse the repository at this point in the history
…onsistency
  • Loading branch information
jasonrundell committed Jan 16, 2025
1 parent 834c8f3 commit d554643
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/stories/atoms/Container/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ interface ContainerProps {
children: React.ReactNode
}

const StyledContainer = styled('div')<ContainerProps>({
margin: '0 auto',
padding: `0 ${Tokens.sizes.breakpoints.large * 0.75}`,
'@media (min-width: 48rem)': {
width: `${Tokens.sizes.breakpoints.medium * 0.875}rem`,
padding: 0
const StyledContainer = styled('div')<ContainerProps>`
margin: 0 auto;
padding: 0 2rem;
@media (min-width: ${Tokens.sizes.breakpoints.medium}rem) {
max-width: ${Tokens.sizes.breakpoints.medium}rem;
}
})
`

const Container = ({ children, ...props }: ContainerProps) => {
return <StyledContainer {...props}>{children}</StyledContainer>
Expand Down

0 comments on commit d554643

Please sign in to comment.