fix(designer): Render copied tooltip properly #6463
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Fixes - #6076
Current Behavior
Tooltip wasn't rendering properly in vscode as well as in portal. The tooltip was getting rendered at the top left corner of the screen instead of the target element.
New Behavior
Tooltip is now rendering in a location related to the target element. In both cases when using the contextual menu and when using
Ctrl
+C
Impact of Change
Cosmetic change non functionality affected
Test Plan
Unit tests - Added to the CopyTooltip component
E2E - Updated e2e tests
Screenshots or Videos (if applicable)
New behavior VSCode
Screen.Recording.2025-01-23.at.4.29.47.PM.mov
New behavior standalone
Screen.Recording.2025-01-23.at.4.32.20.PM.mov