Skip to content

Commit

Permalink
use css object
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jun 14, 2024
1 parent b8e2df0 commit e340800
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/pigment-css-react/src/Stack.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ const stackAtomics = generateAtomics(({ theme }) => {
};
});

const baseStack = css({
display: 'flex',
});

/**
* Return an array with the separator React element interspersed between
* each React node of the input children.
Expand Down Expand Up @@ -78,7 +74,13 @@ const Stack = React.forwardRef(function Stack(
return (
<Component
ref={ref}
className={clsx(baseStack, stackClasses.className, className)}
className={clsx(
css({
display: 'flex',
}),
stackClasses.className,
className,
)}
style={{ ...style, ...stackClasses.style }}
{...rest}
>
Expand Down

0 comments on commit e340800

Please sign in to comment.