Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace legacy Tooltips with Compound tooltips #28231

Merged
merged 6 commits into from
Oct 18, 2024
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Oct 18, 2024

@t3chguy t3chguy self-assigned this Oct 18, 2024
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
@@ -0,0 +1,136 @@
/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look tooltip related? Was this accidentally included?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was necessary to remove the GenericTextContextMenu which still used the mx_Tooltip styles. The old TextualBody consumer of that was rendering it out-of-React-tree, which Compound tooltips do not support as they dynamically figure out their position rather than being provided x,y - this puts it back in the React tree to allow Compound tooltips to work

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I see, gotcha

@t3chguy t3chguy requested a review from dbkr October 18, 2024 14:12
@t3chguy t3chguy added this pull request to the merge queue Oct 18, 2024
Merged via the queue into develop with commit 26430a3 Oct 18, 2024
42 checks passed
@t3chguy t3chguy deleted the t3chguy/kill-tooltip branch October 18, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants