Skip to content

Commit

Permalink
💄 - style: adjust padding of various components
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Dec 16, 2024
1 parent d1bed39 commit e398300
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
& + & {
margin-block-start: var(--spacing-v);
}

&:has(> .mykn-body) {
padding: 0;
}
}
25 changes: 25 additions & 0 deletions src/components/card/card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,28 @@ export const CardComponent: Story = {
),
},
};

export const CardWithTitle: Story = {
args: {
title: "Card title",
children: (
<Body>
<P>The quick brown fox jumps over the lazy dog.</P>
</Body>
),
},
};

export const CardWithControls: Story = {
args: {
title: "Card title",
controls: [
{ children: "Click me", onClick: () => alert("Button clicked.") },
],
children: (
<Body>
<P>The quick brown fox jumps over the lazy dog.</P>
</Body>
),
},
};
1 change: 1 addition & 0 deletions src/components/form/form/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export const Form = <T extends SerializedFormData = SerializedFormData>({
},
]}
overrideItemProps={false}
pad={false}
{...toolbarProps}
/>
)}
Expand Down

0 comments on commit e398300

Please sign in to comment.