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

Fix: nested button tooltip error #4858

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

edgarkhanzadian
Copy link
Contributor

@edgarkhanzadian edgarkhanzadian commented Jan 25, 2024

Try out this version of Leather — Extension build, Test report

closes #4835

This PR fixes nested button tags and nested tag inside of tag + a bit of refactor on some parts of the code. Using asChild prop on trigger uses the child component as a base for a tooltip trigger.

I encountered another issue with a tooltip though. Sometimes we need to keep tooltip opened when clicking on the button (E.g. we click on a copy button and we need to keep displaying the tooltip with a title "Copied!"), but it seems like radix-ui tooltip doesn't support that kind of a behavior, ref: radix-ui/primitives#2029

Copy link
Collaborator

@kyranjamie kyranjamie left a comment

Choose a reason for hiding this comment

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

Can you lower the delay in this PR too?

@edgarkhanzadian edgarkhanzadian force-pushed the fix/nested-button-tooltip-error branch from a575704 to 3cea343 Compare January 25, 2024 12:46
@edgarkhanzadian
Copy link
Contributor Author

@kyranjamie done!

@edgarkhanzadian edgarkhanzadian added this pull request to the merge queue Jan 25, 2024
Merged via the queue into dev with commit 5b87e3d Jan 25, 2024
28 checks passed
@edgarkhanzadian edgarkhanzadian deleted the fix/nested-button-tooltip-error branch January 25, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugs w/ new tooltip trigger button?
2 participants