Skip to content

Commit

Permalink
feat(tooltip): use multiline ellipsis of Text component
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwooseong committed Jan 2, 2024
1 parent a564146 commit 9c86788
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@use "../../styles/mixins/typography";

@layer components {
.Tooltip {
z-index: var(--z-index-tooltip);
Expand All @@ -22,7 +20,6 @@
}

.content {
@include typography.ellipsis(20, var(--font-line-height-18));
white-space: pre-wrap;
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/bezier-react/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ export const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(function Tooltip
<Text
color="txt-black-darkest"
className={styles.content}
truncated={20}
typo="13"
>
{ content }
Expand Down
15 changes: 0 additions & 15 deletions packages/bezier-react/src/styles/mixins/_typography.scss

This file was deleted.

0 comments on commit 9c86788

Please sign in to comment.