-
Notifications
You must be signed in to change notification settings - Fork 794
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] Ability to follow cursor position #1178
Comments
We probably won't do this anytime soon, so closing for now. |
why are feature requests being closed? i don't understand the harm in them remaining otherwise wouldn't it just deter people from providing valuable suggestions? |
Thanks for raising this @jjenzz. We looked into it a bit further and it looks like it isn't something we would consider for Radix given that it would go against an accessibility criterion which are actively working towards: #620. So rather than "not doing this anytime soon", we can clarify to say this isn't something we would consider as it breaks accessibility. |
that makes sense in terms of tooltip, i wonder if this could be a different component though? like the multiplayer mode cursors seen here https://www.framer.com/ |
Given that criteria, I don't think this is possible as an accessible component, given that it shows on hover, that criteria would then be impossible to fulfill. |
The a11y in my mind might be to |
Is it really a common pattern? I don't think I have ever seen this in the wild. |
i've seen it quite a bit recently. vercel did it on their conference marketing website, figma do it for multiplayer, looks like framer do too. liveblocks provide apis for live cursor support too. |
Right, I guess that's a completely different pattern, more like these "live cursor" things rather than a tooltip, so not really linked to a trigger area either. It's not even really something that follows your own cursor really, it's more that you have the representation of a fake cursor with a bubble attached to it. I'm not sure this fits well within Radix personally, but if you think there's some value Radix could provide there, feel free to submit a new primitive request. |
yes that's what i meant by "multiplayer cursors" and is the reason why i said in the original ticket description that i am not convinced tooltip is the right pattern for this 🙂 happy to rename this ticket if it's clearer. i think it is worth exploring for the same reasons we provide a i raised the ticket to explore someone else's request in discussions is all. a component that follows cursor could be used for "multiplayer cursors" or additional context that isn't important for SRs. |
Personally I feel like this is VERY niche when compared to a pattern like |
I don't think liveblocks provide the components, just the websockets stuff. but yeah, it's not as common as I agree it might not be possible at all with the radix uncontrolled compound component pattern, but seemed worth exploring someday to see (there is |
No, not at all! The original request was for this feature to be added to But like I said here 👇, this is something we can add as a new primitive request although it would be good if we can formulate a bit better what the component actually is.
|
When I raised the ticket with "I'm not entirely sure if tooltip would be the correct a11y pattern for this" I meant that I liked the idea but perhaps tooltip isn't the right component for this. I'll rename the ticket to make this all clearer and leave it to the team to formulate the spec. |
If we're going to add a new primitive request for this, I'd rather a different ticket I think as it keeps things clearer and separated. Given the original discussion was clearly about adding this to Tooltip. |
Yeah sure, if that helps avoid confusion i can do that. |
I'm not entirely sure if tooltip would be the correct a11y pattern for this but we can investigate that if team thinks this is worth supporting.
Discussed in #1090
Originally posted by Rednegniw January 16, 2022
Hi, first, amazing library! So thank you very much for developing it.
Just had an idea - it would be cool if there was a component such as a tooltip that would follow the mouse/cursor position while hovering over an element. It might interesting, for example, when you want to tell the user why they can't click on a disabled element and so on.
Something like this - https://codepen.io/paulvddool/pen/mROEGa (not mine, found randomly on google)
The text was updated successfully, but these errors were encountered: