Skip to content

Commit

Permalink
Change to use string format to tell the width for Textarea
Browse files Browse the repository at this point in the history
Used in test and example of the use case. Changed to be consistent with the style with existing places; TextInput and SearchInput
  • Loading branch information
ketsappi committed Dec 7, 2020
1 parent aaa545d commit c381c40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Form/Textarea/Textarea.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import { Textarea } from 'suomifi-ui-components';

<Textarea
labelText="Textarea with fixed width of 250px"
containerProps={{ style: { width: 250 } }}
containerProps={{ style: { width: '250px' } }}
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis
vestibulum iaculis augue, sit amet tincidunt ipsum.
Expand Down
2 changes: 1 addition & 1 deletion src/core/Form/Textarea/Textarea.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ describe('props', () => {
const { container } = render(
<Textarea
labelText="label"
containerProps={{ style: { width: 100 } }}
containerProps={{ style: { width: '100px' } }}
/>,
);
expect(container.firstChild).toHaveAttribute('style', 'width: 100px;');
Expand Down

0 comments on commit c381c40

Please sign in to comment.