From 3d2c92c0e654bedc6ffcef8524bcbf2d7a1d50da Mon Sep 17 00:00:00 2001 From: liliced <35871521+liliced@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:33:15 +0100 Subject: [PATCH] Revert "refactor: corrige l'erreur div descendant de p" This reverts commit cbacb19b24b08052d4c16557f38b4e8dfae0cbc8. --- site/source/design-system/layout/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/site/source/design-system/layout/index.tsx b/site/source/design-system/layout/index.tsx index 9168543c0..36dd814ae 100644 --- a/site/source/design-system/layout/index.tsx +++ b/site/source/design-system/layout/index.tsx @@ -6,7 +6,6 @@ export { default as Container } from './Container' export { default as Grid } from './Grid' type SpacingProps = ( - | { xxxl: true } | { xxl: true } | { xl: true } | { lg: true } @@ -31,7 +30,6 @@ export function Spacing(props: SpacingProps) { ) } -const SpacingStyled = styled.span<{ $size: keyof Theme['spacings'] }>` - display: block; +const SpacingStyled = styled.div<{ $size: keyof Theme['spacings'] }>` min-height: ${({ theme, $size }) => theme.spacings[$size]}; `