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

[FEAT REQ] react-tooltip__show class counterpart for closing the tooltip #1105

Closed
gabrieljablonski opened this issue Oct 23, 2023 · 2 comments · Fixed by #1106
Closed

[FEAT REQ] react-tooltip__show class counterpart for closing the tooltip #1105

gabrieljablonski opened this issue Oct 23, 2023 · 2 comments · Fixed by #1106

Comments

@gabrieljablonski
Copy link
Member

gabrieljablonski commented Oct 23, 2023

It is not currently possible to use a "closing transition" for the tooltip, similar to the fade in when it opens.
Adding a react-tooltip__closing class (which requires some logic changes, since the tooltip currently closes immediately) should allow for using customizing the closing transition as well.

@gabrieljablonski gabrieljablonski changed the title [FEAT REQ] react-tooltip__show counterpart for closing the tooltip [FEAT REQ] react-tooltip__show class counterpart for closing the tooltip Oct 23, 2023
@gabrieljablonski
Copy link
Member Author

#1106 should be merged soon with support for the fade-out transition.

@victorpavlenko Feel free to test it out with the beta version react-tooltip@5.22.0-beta.1106.0.

It is enabled by default, and the delay (0.15s default) can be changed by overriding the CSS variable --rt-transition-closing-delay (--rt-transition-show-delay is also available).

@gabrieljablonski
Copy link
Member Author

gabrieljablonski commented Nov 1, 2023

Since react-tooltip@5.22.0, the tooltip has a fade-out transition by default. See docs for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant