Skip to content

Commit

Permalink
Merge pull request #158 from aboutbits/default-variant-for-select
Browse files Browse the repository at this point in the history
Same default variants for all inputs
  • Loading branch information
alexlanz authored Nov 8, 2022
2 parents 4bca4c7 + 6ae70cf commit 56af9c1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/form/Input.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const Template = ({ ...args }) => <Input {...args} name="name" />
placeholder: 'Your Name',
type: 'text',
mode: Mode.light,
variant: InputVariant.ghost,
variant: InputVariant.solid,
disabled: false,
iconStart: 'None',
iconEnd: 'None',
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/Select.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const Template = ({ ...args }) => (
args={{
label: 'User rights',
mode: Mode.light,
variant: InputVariant.ghost,
variant: InputVariant.solid,
}}
argTypes={{
mode: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function SelectComponent(
name,
label,
mode = Mode.light,
variant = InputVariant.ghost,
variant = InputVariant.solid,
disabled,
children,
className,
Expand Down
4 changes: 3 additions & 1 deletion src/components/form/TextArea.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as Yup from 'yup'
import { Mode } from '../types'
import { Form } from './Form'
import { TextArea } from './TextArea'
import { InputVariant } from './types'

<Meta
title="Components/Form/TextArea"
Expand Down Expand Up @@ -48,8 +49,9 @@ export const Template = ({ ...args }) => <TextArea {...args} />
cols: 5,
maxLength: 240,
spellCheck: true,
mode: Mode.light,
disabled: false,
mode: Mode.light,
variant: InputVariant.solid,
}}
>
{Template.bind({})}
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function TextAreaComponent(
name,
label,
mode = Mode.light,
variant = InputVariant.ghost,
variant = InputVariant.solid,
disabled,
className,
...props
Expand Down

0 comments on commit 56af9c1

Please sign in to comment.