Skip to content

Commit

Permalink
fix(Stack): spread inline styles
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Nov 14, 2024
1 parent ad23c63 commit e892d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Stack/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const Stack = React.forwardRef<React.ReactNode, StackProps>(
[`${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;
Expand Down

0 comments on commit e892d98

Please sign in to comment.