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

[Tooltip] Add possibility to follow the cursor #903

Open
j-mnizhek opened this issue Nov 20, 2023 · 1 comment
Open

[Tooltip] Add possibility to follow the cursor #903

j-mnizhek opened this issue Nov 20, 2023 · 1 comment
Assignees

Comments

@j-mnizhek
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We have this request from our inner slack channel:

Hi team!
Does our tooltip have the ability to appear near the mouse cursor, or should it always be anchored to a specific point in the trigger element?
For example, if I have a long table cell with a tooltip, can it not always appear above the center of the cell, but above the mouse cursor?
Sorry, I read the docs, but it's unclear for me.
image

**Possible solution **
Add to our Tooltip something like prop followCursor.

Additional context
This is a good proposal, but needs a discussion within the design team firstly.
I guess it also can be inconvenient because when you want to move your cursor upper to change some filters above the table, the tooltip will still be below the cursor, covering the functionality you are aiming for. Therefore, adding such functionality is worth thinking about and discussing carefully.

@faisne
Copy link
Contributor

faisne commented Nov 21, 2023

Commenting here so it's not lost. The initial idea was to show the tooltip above the initial cursor position, but not move it after that. The screenshot shows two separate cases, not one case.

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

No branches or pull requests

2 participants