Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
test: add storybook global styles
Browse files Browse the repository at this point in the history
  • Loading branch information
peterleiva committed Mar 20, 2022
1 parent 7d01e73 commit 5522ab2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .storybook/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.example {
border: 1px solid #cbd5e1;
border-radius: 1rem;
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
padding: 2rem;
}
1 change: 1 addition & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "../src/styles/index.css";
import "./global.css";

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
Expand Down
11 changes: 0 additions & 11 deletions src/components/forms/Input.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ import PasswordInput from "./PasswordInput.tsx";

<Meta title="docs/forms/Input" />

<style>{`
.example {
padding: 2rem;
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
border: 1px solid #cbd5e1;
border-radius: 1rem;
}
`}</style>

# Input

Text inputs allow users to type and edit text fields, which usually appears in dialogs or forms.
Expand Down

0 comments on commit 5522ab2

Please sign in to comment.