Skip to content

Commit

Permalink
fix: recursive spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Dec 13, 2024
1 parent 4c6194f commit 9e5c83f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packages/epo-react-lib/src/atomic/Stack/Stack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { FunctionComponent } from "react";

const meta: Meta<typeof Stack> = {
component: Stack,
argTypes: {
recursive: {
control: "boolean",
},
},
};
export default meta;

Expand Down
8 changes: 4 additions & 4 deletions packages/epo-react-lib/src/atomic/Stack/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ export const Stack = styled.div`
justify-content: flex-start;
&[data-recursive="true"] {
> * {
& * {
margin-block: 0;
}
> * + * {
& * + * {
margin-block-start: var(--size-spacing-stack, 1rem);
}
}
&[data-recursive="false"] {
> * {
& > * {
margin-block: 0;
}
> * + * {
& > * + * {
margin-block-start: var(--size-spacing-stack, 1rem);
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/epo-react-lib/src/types/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export interface ImageShape {
height?: number;
url: string;
src?: string;
srcSet?: Array<srcType>;
sizes?: Array<srcSize>;
srcSet?: string | Array<srcType>;
sizes?: string | Array<srcSize>;
priority?: boolean;
/** @deprecated */
url2x?: string;
Expand Down

0 comments on commit 9e5c83f

Please sign in to comment.