Skip to content

Commit

Permalink
fix(Text): Added default width of '100%' so ellipsis is shown if text…
Browse files Browse the repository at this point in the history
… is overflowing
  • Loading branch information
Lukas742 committed Nov 14, 2019
1 parent 8b11841 commit ac24085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/components/Text/demo.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const renderStory = () => {
<Text
wrapping={boolean('wrapping', true)}
renderWhitespace={boolean('renderWhitespace', false)}
width={text('width', '')}
width={text('width', '100%')}
>
Lorem ipsum dolor st amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
magna aliquyam erat, sed diam voluptua.
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/components/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Text: FC<TextProps> = forwardRef((props: TextProps, ref: Ref<HTMLSpanEleme
Text.defaultProps = {
renderWhitespace: false,
wrapping: true,
width: null
width: '100%'
};

Text.displayName = 'Text';
Expand Down

0 comments on commit ac24085

Please sign in to comment.