From e892d98e5ae563040c90bf5f3a40a41a16b829a5 Mon Sep 17 00:00:00 2001 From: emyarod Date: Thu, 14 Nov 2024 11:02:56 -0600 Subject: [PATCH] fix(Stack): spread inline styles --- packages/react/src/components/Stack/Stack.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/Stack/Stack.tsx b/packages/react/src/components/Stack/Stack.tsx index 76c96aede800..20e678f621ae 100644 --- a/packages/react/src/components/Stack/Stack.tsx +++ b/packages/react/src/components/Stack/Stack.tsx @@ -86,7 +86,7 @@ const Stack = React.forwardRef( [`${prefix}--stack-${orientation}`]: true, [`${prefix}--stack-scale-${gap}`]: typeof gap === 'number', }); - const style = {}; + const style = { ...rest.style }; if (typeof gap === 'string') { style[`--${prefix}-stack-gap`] = gap;