Update for a workaround on 2021-08-18T04:00:00Z:
I found a solution that works pretty well. Take my example below:
- On the tooltip overlay, add another interaction that is Mouse Leave → Close overlay
- After all overlays have been closed (including the dialog that opens from the tooltip), as long as your mouse is outside the target area from where the tooltip came from, it will all close!
Try that out, see if it works for you 🙂
Original post:
Hi, this is a use case I’ve had to find many ways to try and address, but never a good solution.
If I have an overlay, open another overlay, I would like a way to have the previous overlays close. In my example, the typical use case is a tooltip that gets shown on Hover, which opens another overlay like a menu. From that menu, I might open a dialog.
Unfortunately, the previous overlays stay stuck on the screen until I close all of them manually. Is there a solution in terms of prototype triggers/interactions that can solve the issue of the tooltip and menu (previous overlays) from doing this?
Would Interactive Components solve this issue? I get that you can bake-in interactions, the issue is with getting the prototype to understand the Close Overlay. I’ve even added Close Overlay on Mouse Leave, and that doesn’t make them go away after I open the next overlay.
See my video attached, thanks.