-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use a black box to avoid differences between OS during CI
- Loading branch information
1 parent
5aadb22
commit d6f2046
Showing
4 changed files
with
63 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { Button } from './Button'; | ||
|
||
export default { | ||
title: 'BigBox', | ||
} as Meta; | ||
|
||
type Story = StoryObj<typeof Button> | ||
|
||
export const ABigBox: Story = { | ||
render: () => | ||
<div style={{ | ||
width: "400px", | ||
height: "400px", | ||
backgroundColor: "black", | ||
}} | ||
/>, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,15 @@ | ||
diff --git a/sample-storybook/src/stories/Button.stories.tsx b/sample-storybook/src/stories/Button.stories.tsx | ||
index f49be6a..3a50643 100644 | ||
--- a/sample-storybook/src/stories/Button.stories.tsx | ||
+++ b/sample-storybook/src/stories/Button.stories.tsx | ||
@@ -11,17 +11,17 @@ export default { | ||
type Story = StoryObj<typeof Button> | ||
|
||
export const Primary: Story = { | ||
- render: () => <Button label="Button" primary={true} />, | ||
+ render: () => <Button label="Not a Button" primary={true} />, | ||
} | ||
|
||
export const Secondary: Story = { | ||
- render: () => <Button label="Button" primary={false} />, | ||
+ render: () => <Button label="Not a Button" primary={false} />, | ||
} | ||
|
||
export const Large: Story = { | ||
- render: () => <Button label="Button" size="large" />, | ||
+ render: () => <Button label="Not a Button" size="large" />, | ||
} | ||
|
||
export const Small: Story = { | ||
- render: () => <Button label="Button" size="small" />, | ||
+ render: () => <Button label="Not a Button" size="small" />, | ||
} | ||
diff --git a/sample-storybook/src/stories/BigBox.stories.tsx b/sample-storybook/src/stories/BigBox.stories.tsx | ||
index 181cf8b..99fec9e 100644 | ||
--- a/sample-storybook/src/stories/BigBox.stories.tsx | ||
+++ b/sample-storybook/src/stories/BigBox.stories.tsx | ||
@@ -12,8 +12,8 @@ type Story = StoryObj<typeof Button> | ||
export const ABigBox: Story = { | ||
render: () => | ||
<div style={{ | ||
- width: "400px", | ||
- height: "400px", | ||
+ width: "900px", | ||
+ height: "900px", | ||
backgroundColor: "black", | ||
}} | ||
/>, |