Skip to content

Commit

Permalink
fix: Tooltip component - Content is not getting wrapped inside tooltip (
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh9975 authored Dec 27, 2023
1 parent e233750 commit 2386087
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/blade/src/components/Tooltip/TooltipContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const TooltipContent = React.forwardRef<HTMLDivElement, TooltipContentProps>(
weight="regular"
contrast="high"
color="feedback.text.neutral.highContrast"
wordBreak="break-word"
>
{children}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ exports[`<Tooltip /> should render 1`] = `
line-height: 1rem;
margin: 0;
padding: 0;
word-break: break-word;
}
.c0.c0.c0.c0.c0 {
Expand Down Expand Up @@ -337,6 +338,7 @@ exports[`<Tooltip /> should render tooltip with custom zIndex 1`] = `
line-height: 1rem;
margin: 0;
padding: 0;
word-break: break-word;
}
.c0.c0.c0.c0.c0 {
Expand Down Expand Up @@ -603,6 +605,7 @@ exports[`<Tooltip /> should render with title 1`] = `
line-height: 1rem;
margin: 0;
padding: 0;
word-break: break-word;
}
.c0.c0.c0.c0.c0 {
Expand Down

0 comments on commit 2386087

Please sign in to comment.