Skip to content

Commit

Permalink
fix(Stack): spread inline styles (#18067)
Browse files Browse the repository at this point in the history
Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
emyarod and tay1orjones authored Dec 11, 2024
1 parent 1caf0e3 commit fc76fa7
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 fc76fa7

Please sign in to comment.