Skip to content

Commit edf54e3

Browse files
committed
fix: text truncation
1 parent 6a18f25 commit edf54e3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/blade/src/components/Input/BaseInput/BaseInput.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,14 @@ const BaseInputControlledWithTagsTemplate: StoryFn<typeof BaseInputComponent> =
397397
<BaseInput
398398
id="base-input"
399399
label="First Name"
400+
as="textarea"
401+
maxTagRows="multiple"
400402
value={inputValue}
401403
autoCompleteSuggestionType="none"
402404
tags={getTags()}
403405
activeTagIndex={activeTagIndex}
406+
showAllTags={true}
407+
isDropdownTrigger={true}
404408
setActiveTagIndex={setActiveTagIndex}
405409
name="fullName"
406410
onChange={({ name, value }): void => {

packages/blade/src/components/Typography/BaseText/getBaseTextStyles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const getBaseTextStyles = ({
4141
'line-clamp': `${numberOfLines}`,
4242
'-webkit-line-clamp': `${numberOfLines}`,
4343
'-webkit-box-orient': 'vertical',
44+
overflowWrap: 'break-word',
4445
};
4546
}
4647
}

0 commit comments

Comments
 (0)