Skip to content

Commit

Permalink
updated comment and added vr test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkakroo committed Jun 20, 2023
1 parent 03e2e2f commit c6dddb8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions apps/vr-tests-react-components/src/stories/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,20 @@ storiesOf('Tooltip Converged', module)
<button>Target</button>
</Tooltip>
</div>
))
.addStory('overflow-wrap', () => (
<div className={useStyles().wrapper}>
<Tooltip visible content="Thistooltiptextislongenoughtobebrokenintoanewline" relationship="description">
<button>Target</button>
</Tooltip>
</div>
))
.addStory('overflow-wrap withArrow', () => (
<div className={useStyles().wrapper}>
<Tooltip visible withArrow content="Thistooltiptextislongenoughtobebrokenintoanewline" relationship="description">
<button>Target</button>
</Tooltip>
</div>
));

const TooltipPositioning: React.FC = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "patch",
"comment": "patch: updated styles for tooltip",
"comment": "fix: added overflowWrap to make sure content does not exceed the tooltip container and added vr test for the same",
"packageName": "@fluentui/react-tooltip",
"email": "kakrookaran@gmail.com",
"dependentChangeType": "patch"
Expand Down

0 comments on commit c6dddb8

Please sign in to comment.