Skip to content

Commit

Permalink
Fix 2 stories
Browse files Browse the repository at this point in the history
  • Loading branch information
jsomsanith-tlnd committed Jun 17, 2019
1 parent 4fc6e49 commit 4986f21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ const InputWrapper = styled.div`
${props => props.error && css`
${Error} {
color: ${color.negative};
background: none;
transform: translate3d(0%, -50%, 0);
opacity: 1;
padding: .25em 1.25em .25em .5em;
Expand Down
10 changes: 8 additions & 2 deletions src/components/Input.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ storiesOf('Design System|forms/Input', module)
placeholder="Placeholder"
onChange={onChange}
/>
<Input id="With-value" value="With value" aria-label="Input with value" onChange={onChange} />
<Input
id="With-value"
value="With value"
label="Input with value"
hideLabel
onChange={onChange}
/>
<Input
id="Disabled"
value="Disabled"
Expand Down Expand Up @@ -238,7 +244,7 @@ storiesOf('Design System|forms/Input', module)
appearance="code"
onChange={onChange}
/>
<Input id="Code" value="Code" aria-label="Code" appearance="code" onChange={onChange} />
<Input id="Code" value="Code" label="Code" hideLabel appearance="code" onChange={onChange} />
<Input
id="Code-with-error"
placeholder="Code"
Expand Down

0 comments on commit 4986f21

Please sign in to comment.