Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: added margins to storys to prevent overflow from preview container #88

Merged
merged 1 commit into from Apr 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions .storybook/story-layout.js
Expand Up @@ -49,10 +49,8 @@ const StoryLayout = ({ children, title, description, source }) => {
<div
className="preview border-base-300 bg-base-200 rounded-b-box rounded-tr-box
flex min-h-[6rem] min-w-[18rem] flex-wrap items-center justify-center gap-2
overflow-x-hidden border bg-cover bg-top p-4"
style={{
backgroundSize: '5px 5px',
}}
overflow-x-hidden overflow-y-hidden border bg-cover bg-top p-4"
style={{ backgroundSize: '5px 5px' }}
>
{children}
</div>
Expand Down
17 changes: 9 additions & 8 deletions src/Dropdown/Dropdown.stories.tsx
Expand Up @@ -15,13 +15,14 @@ export default {

export const Default: Story<DropdownProps> = (args) => {
return (
<Dropdown {...args}>
<Dropdown.Toggle>Click</Dropdown.Toggle>
<Dropdown.Menu className="w-52">
<Dropdown.Item>Item 1</Dropdown.Item>
<Dropdown.Item>Item 2</Dropdown.Item>
<Dropdown.Item>Item 3</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>
<div className="mb-32">
<Dropdown {...args}>
<Dropdown.Toggle>Click</Dropdown.Toggle>
<Dropdown.Menu className="w-52">
<Dropdown.Item>Item 1</Dropdown.Item>
<Dropdown.Item>Item 2</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>
</div>
)
}
8 changes: 5 additions & 3 deletions src/Tooltip/Tooltip.stories.tsx
Expand Up @@ -11,9 +11,11 @@ export default {

export const Default: Story<TooltipProps> = (args) => {
return (
<Tooltip {...args}>
<Button>Hover me</Button>
</Tooltip>
<div className='my-6'>
<Tooltip {...args}>
<Button>Hover me</Button>
</Tooltip>
</div>
)
}
Default.args = {
Expand Down