Skip to content

Commit

Permalink
fix: snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
mimokmt committed Jan 18, 2024
1 parent 863ec1d commit 82f765c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ exports[`Storyshots Button Focus 1`] = `
<button
className="c0 c1"
disabled={false}
onClick={[Function]}
onMouseOver={[Function]}
>
Mouse over to focus
Expand Down Expand Up @@ -894,128 +895,140 @@ exports[`Storyshots Button Layout Example 1`] = `
>
<div
css="
display: grid;
gap: 24px;
"
display: grid;
gap: 24px;
"
>
<div
css="
display: grid;
grid: auto / auto-flow min-content;
gap: 8px;
"
display: grid;
grid: auto / auto-flow min-content;
gap: 8px;
"
>
<button
className="c0 c1"
disabled={false}
onClick={[Function]}
>
Grid
</button>
<button
className="c0 c2"
disabled={false}
onClick={[Function]}
>
Layout
</button>
<button
className="c0 c3"
disabled={false}
onClick={[Function]}
>
Sample
</button>
</div>
<div
css="
display: grid;
grid: auto-flow auto / 392px;
gap: 8px;
"
display: grid;
grid: auto-flow auto / 392px;
gap: 8px;
"
>
<button
className="c0 c4"
disabled={false}
onClick={[Function]}
>
Submit
</button>
<button
className="c0 c5"
disabled={false}
onClick={[Function]}
>
Cancel
</button>
</div>
<div
css="
display: flex;
display: flex;

& > * + * {
margin-left: 8px;
}
"
& > * + * {
margin-left: 8px;
}
"
>
<button
className="c0 c1"
disabled={false}
onClick={[Function]}
>
Flex
</button>
<button
className="c0 c2"
disabled={false}
onClick={[Function]}
>
Layout
</button>
<button
className="c0 c3"
disabled={false}
onClick={[Function]}
>
Sample
</button>
</div>
<div
css="
display: flex;
flex-direction: column;
width: 392px;

& > * + * {
margin-top: 8px;
}
"
display: flex;
flex-direction: column;
width: 392px;

& > * + * {
margin-top: 8px;
}
"
>
<button
className="c0 c4"
disabled={false}
onClick={[Function]}
>
Submit
</button>
<button
className="c0 c5"
disabled={false}
onClick={[Function]}
>
Cancel
</button>
</div>
<div
css="
display: flex;
flex-direction: column;
width: 392px;

& > * + * {
margin-top: 8px;
}
"
display: flex;
flex-direction: column;
width: 392px;

& > * + * {
margin-top: 8px;
}
"
>
<button
className="c0 c4"
disabled={false}
onClick={[Function]}
>
すべて見る
</button>
<button
className="c0 c1"
disabled={false}
onClick={[Function]}
>
作品を投稿
</button>
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/components/Button/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export default {
},
},
},
args: {
onClick: action('click'),
},
render: (args) => <Button {...args}>Button</Button>,
} as Meta<typeof Button>

Expand Down

0 comments on commit 82f765c

Please sign in to comment.