From 871464ac16caf185bd5a899f69ef3c34794620dc Mon Sep 17 00:00:00 2001 From: Alice Dahan Date: Tue, 12 Nov 2024 10:35:41 +0100 Subject: [PATCH] refactor: corrige l'erreur div descendant de p (cherry picked from commit cbacb19b24b08052d4c16557f38b4e8dfae0cbc8) --- site/source/design-system/layout/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/source/design-system/layout/index.tsx b/site/source/design-system/layout/index.tsx index 36dd814ae..9168543c0 100644 --- a/site/source/design-system/layout/index.tsx +++ b/site/source/design-system/layout/index.tsx @@ -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]}; `