-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
[BUG] Tooltips no longer disappear, when opacity: 1 #1112
Comments
Setting the opacity through CSS is not supported, even before 5.22.0 it wasn't supposed to work. Use the <Tooltip opacity={1} /> |
I had the same issue, thanks! Solved by changing to
|
I got the same bug, with the latest version at the date today which is 5.22.0 the tooltips are not dissappearing when mouserleave event is triggered. |
@gabrieljablonski so it's intended to work as it from the version 5.22.0? because for me it's way better how it used to be before |
@anch09 yes, the previous behavior was not intended. If setting the opacity through CSS is better for you, you can also try overriding :root {
--rt-opacity: 1;
} |
Wasn't aware of that. Somehow it DID work for me. 👍 Works fine in a real browser - thanks! For now I just mocked the function. global.CSS.supports ||= () => true (can probably also do it in However, I think this line should be modified:
to include a check: if (opacity && 'supports' in CSS && !CSS.supports('opacity', `${opacity}`)) { (similar to what these guys did here: https://github.com/wojtekmaj/react-fit/pull/3/files ) LMK if you want me to open a PR and thanks again! 🙏 |
Version: 5.22.0
Description: In order to be able to style the tooltips with Tailwind CSS, I use a class "classNamesTooltip", in which I set "opacity: 1". Since version 5.22.0, this results in the tooltips no longer disappearing.
The text was updated successfully, but these errors were encountered: