Skip to content

Commit

Permalink
🐛 Fix textfield compact story (#2277)
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes authored Jun 7, 2022
1 parent 566e024 commit 0970c90
Showing 1 changed file with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export const Compact: Story<TextFieldProps> = () => {
return (
<EdsProvider density={density}>
<Wrapper>
<EdsProvider density="compact">
<div style={{ width: '200px' }}>
<TextField
id="compact-textfield"
defaultValue="150"
Expand All @@ -428,20 +428,19 @@ export const Compact: Story<TextFieldProps> = () => {
unit="km/h"
helperIcon={<Icon data={info_circle} title="Info" />}
helperText="Helper information text over several lines so that it breaks"
style={{ width: '200px' }}
/>
<TextField
id="compact-textfield-multiline"
placeholder="Placeholder text that spans multiple lines as much as is possible."
label="Multiline"
multiline
rowsMax={10}
variant="warning"
inputIcon={<Icon name="warning_filled" title="Warning" />}
helperText="Helper information text thats very very very loooonooooooong"
style={{ resize: 'none' }}
/>
</EdsProvider>
</div>
<TextField
id="compact-textfield-multiline"
placeholder="Placeholder text that spans multiple lines as much as is possible."
label="Multiline"
multiline
rowsMax={10}
variant="warning"
inputIcon={<Icon name="warning_filled" title="Warning" />}
helperText="Helper information text thats very very very loooonooooooong"
style={{ resize: 'none' }}
/>
</Wrapper>
</EdsProvider>
)
Expand Down

0 comments on commit 0970c90

Please sign in to comment.