You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following requirements for an implementation of Tooltip, and was wondering if it is possible to achieve with Radix's Tooltip:
Do not open the Tooltip when focused (this seems to be achievable via adding an onFocus handler to just preventDefault
When the user has focused the trigger, require a keypress of the Enter key in order to open the tooltip (also achievable via an onKeyUp handler
Once the user opens the Tooltip via keypress, send focus to the first item of content inside the tooltip. This is where I'm running into issues, because by default, once the trigger loses focus it automatically closes. I've not been able to see how I can prevent that closing of the tooltip once the tooltip is blurred.
Is it possible in a "Radix way" to keep the tooltip open in the scenario I described above?
The text was updated successfully, but these errors were encountered:
lukehathaway
changed the title
Setting focus to an element inside Tooltip via keypress on trigger does not render the tooltip when using open and onOpenChange
Keep Tooltip Open when Trigger is activated via keypress and focus sent into Tooltip Content?
Nov 22, 2024
I think Tooltips are usually triggered automatically by mouse hovers, I think the implementation you are looking for can be covered by HoverCards (maybe you can style it like a tooltip) so you have total control over it?
Hello,
I have the following requirements for an implementation of Tooltip, and was wondering if it is possible to achieve with Radix's Tooltip:
onFocus
handler to just preventDefaultonKeyUp
handlerIs it possible in a "Radix way" to keep the tooltip open in the scenario I described above?
The text was updated successfully, but these errors were encountered: