-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: moving hover from tooltip back to trigger closes tooltip #10240
Comments
Hi @jlukosky . Thanks for opening this issue about Tooltip and congratulations on this being your first in UI Fabric React! I have contacted the code owner in regards to this behavior and will be attending to it shortly. |
Having tooltips be sticky when hovered isn't a 100% normal HTML experience, so we rely on our designers to inform us on how it should work. The fix shouldn't be too hard to do, but I want to first confirm that this is the correct design choice before doing the work. @betrue-final-final do you have any context on if tooltip should stay open after hovereing over the tooltip and then back onto the button? @jspurlin do you know what the expectation is on the ribbon with tooltips? |
I know in the desktop apps, the user can hover over the tooltip and then back over the button (but windows and native tooltips in the browser don't do that). This sounds like a feature request that should be vetted with designers. |
@micahgodbolt actually, looking at WCAG 2.1 there is now a requreiment that the user can hover over tooltips without them disappearing: https://www.w3.org/TR/WCAG21/#content-on-hover-or-focus Specifically: Hoverable |
@jspurlin yeah, we now support tooltips staying when you hover over them. Question is what happens after focus is placed back on button. should tooltip stay? should it dissapear? Should it dissapear and then come back after regular delay? |
I think the issue here is on hover not on focus. Placing focus back on the button would not be at issue in this case. If the user starts using the keyboard after hovering to reveal the tooltip of course the tooltip would be hidden until the focus is moved on the trigger. Focus can't directly move from the tooltip to the trigger since tooltips don't support focus. |
This needs spec'ing before proceeding, I'm removing myself and Max off of the assignee in this case leaving the backlog review label. |
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
This should be reopened and resolved. If this isn't addressed it is a violation of 1.4.13: Content on Hover or Focus |
Environment Information
Describe the issue:
When moving hover from tooltip back to trigger the tooltip closes. The trigger shouldn't close the tooltip, it's behavior should be consistent. As it is the trigger is serving as a show/hide toggle.
Please provide a reproduction of the issue in a codepen:
Actual behavior:
Moving hover from tooltip to trigger closes tooltip.
Expected behavior:
Moving hover from tooltip to trigger should not close the tooltip
Documentation describing expected behavior
The expectation is that the behavior will be consistent: hovering the trigger should show the tooltip. As it is now sometimes hovering the trigger shows the tooltip, sometimes it hides it.
The text was updated successfully, but these errors were encountered: