Skip to content

Commit fc76fa7

Browse files
emyarodtay1orjones
andauthored
fix(Stack): spread inline styles (#18067)
Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
1 parent 1caf0e3 commit fc76fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/components/Stack/Stack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const Stack = React.forwardRef<React.ReactNode, StackProps>(
8686
[`${prefix}--stack-${orientation}`]: true,
8787
[`${prefix}--stack-scale-${gap}`]: typeof gap === 'number',
8888
});
89-
const style = {};
89+
const style = { ...rest.style };
9090

9191
if (typeof gap === 'string') {
9292
style[`--${prefix}-stack-gap`] = gap;

0 commit comments

Comments
 (0)