Tooltip component potential additional options/behaviour changes #1921
Replies: 3 comments 3 replies
A tough call. Automatically hiding it might be the opposite of what others want it to do, so we currently don't care about clicks. For either case, the user would need to add a listener. I'd be open to a PR with something like
Hmm. If you click a button quickly, you [hopefully] already know what it is. Would the tooltip be more distracting in that case? Would it appearing instantly feel jarring?
I agree that tooltips shouldn't show on mobile/touch. We can commit to solving that. |
|
Bumping this discussion as it seems to build on a question I have. What is the current stance on "light dismissal" for Can we build on the W3 recommendations? |
After researching this more, a light dismissal pattern is indeed the better approach. Adding this and your other suggestions to my list. |
Uh oh!
There was an error while loading. Please reload this page.
There are some things which currently feel weird for me when using tooltips:
Some initial thoughts on possible ways to adjust this (for reference: react aria's Tooltip component):
Alternatively similar to the react aria example, could simplify it and instead encourage use of a popover if click/touch is desired with a similar message to the following warning that react aria's Tooltip has:
Unrelated to the above but the react aria Tooltip has a behaviour that once one tooltip has passed the initial showDelay, subsequent tooltips display instantly until tooltips have been closed for a period of time before having a showDelay again which does feel quite nice too.
Anyway what do you reckon? What doesn't feel natural to me may feel correct to other people, maybe there's an easier way to just workaround it and get my desired behaviour (maybe could detect if wa-show was triggered by touch/mouse/keyboard etc and preventDefault there)?
All reactions