Skip to content

Commit

Permalink
move css up
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jun 14, 2024
1 parent 1918b38 commit 0e964f8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/pigment-css-react/src/Stack.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ 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 @@ -74,13 +78,7 @@ const Stack = React.forwardRef(function Stack(
return (
<Component
ref={ref}
className={clsx(
css`
display: flex;
`,
stackClasses.className,
className,
)}
className={clsx(baseStack, stackClasses.className, className)}
style={{ ...style, ...stackClasses.style }}
{...rest}
>
Expand Down

0 comments on commit 0e964f8

Please sign in to comment.