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: add option to close tooltip when not hovering anchor to FluentTooltip #1564

Closed
JamesNK opened this issue Feb 24, 2024 · 1 comment
Closed
Assignees

Comments

@JamesNK
Copy link
Member

JamesNK commented Feb 24, 2024

🙋 Feature Request

A tooltip is displayed when hovering the anchor. But it also stays open if the mouse cursor moves over the tooltip. This behavior isn't always wanted.

🤔 Expected Behavior

Close the tooltip if the cursor leaves the anchor.

😯 Current Behavior

The tooltip stays open if the mouse is over the tooltip.

💁 Possible Solution

There should be an option to close the tooltip if the cursor leaves the anchor.

🔦 Context

There is a copy tooltip shown in Aspire. It isn't a good experience that it stays open after the mouse cursor moves off the button.

💻 Examples

@dvoituron
Copy link
Collaborator

That will be possible using a new attribute or global property called HideTooltipOnCursorLeave.
See this PR #1571

builder.Services.AddFluentUIComponents(configuration =>
{
    configuration.HideTooltipOnCursorLeave = true;
});

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

No branches or pull requests

2 participants