refactor: corrige l'erreur div descendant de p

(cherry picked from commit cbacb19b24)
pull/3254/head
Alice Dahan 2024-11-12 10:35:41 +01:00 committed by liliced
parent 7cd8389b83
commit 871464ac16
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ export { default as Container } from './Container'
export { default as Grid } from './Grid'
type SpacingProps = (
| { xxxl: true }
| { xxl: true }
| { xl: true }
| { lg: true }
@ -30,6 +31,7 @@ export function Spacing(props: SpacingProps) {
)
}
const SpacingStyled = styled.div<{ $size: keyof Theme['spacings'] }>`
const SpacingStyled = styled.span<{ $size: keyof Theme['spacings'] }>`
display: block;
min-height: ${({ theme, $size }) => theme.spacings[$size]};
`