-
Notifications
You must be signed in to change notification settings - Fork 248
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
Cross behavior between focus and hover (1.4.13) #1196
Comments
IE 11 displays tooltips with the title attribute on mouseover and on focusing with the keyboard. So you could use the behavior of the browser as a guide (if you think IE 11's behavior makes sense).
|
so almost my third option: "...both mouse out and blur removes the content without regards to how it was opened or if any additional triggers are currently in effect." The only thing that sound weird in this behavior is that mouse over or focus on the target would close the tooltip. |
To be more precise: If the keyboard focus is on the target and the mouse is not, the tooltip will disappear when the mouse is moved. However, the moment the mouse reaches the target, the tooltip is faded in again due to mouseover. |
To summarize all the flows as I understand them: content not visible:
content visible
|
A draft proposed response to put to the group:
|
So the trigger maintain the visibility of the content - as long as the focus is on, the content is visible and the mouse cannot toggle it, and also mouse over should keep the content visible even on blur? does it matter which action triggered the content first, or do you think that the first trigger should display the content and the last trigger off should hide it?
It's not clear to me, at first it sounds like there is ambiguity about the interactions between triggers, but at the end you say that a trigger shouldn't cancel another trigger? |
I would like official confirmation that indeed the SC only covers the combinations mentioned by @alastc -- that is if you initiate the additional content on focus and not hover then hover would not be taken into account in testing and vice versa for meeting the SC. |
There was a previous discussion in #582 which led to a survey where the issue was deferred to WCAG 2.2 - so maybe there's an opportunity to clarify the language now? |
@detlevhfischer - thanks for the reminder on that older issue. It isn't quite the same thing, but got me in the headspace again. @mraccess77 - that's why we survey these things, I'm not the arbiter! I made the proposal based on my reading of the SC text, and what we've said previously. If you have a counter-proposal/interpretation please put it forward. @idoros - What I'm proposing (but is not agreed yet) is that the the 'mode' which triggered it (hover or focus) is the crux of the SC language, so the other mode is not applicable. Taking two scenarios:
But, it in each case the content must disappear when the triggering mode is removed. That's what I'm proposing, but we'll run it past the group as I could be missing something. |
To clarify my question -- if you cause the additional content to appear on focus - all of the provisions around dismiss on hover still apply -- that is the mode of triggering does not change the 3 requirements be satisfied. |
New response needed, based on either hover or focus being used to close the new content. |
A draft proposed response to put to the group:
|
The bit I'd like to understand is the situation where the user focuses something with the keyboard but then has to move the mouse pointer to pan a magnified screen - because they used the keyboard focus as a trigger for the additional content does not need to persist and can close when the pointer is moved. Is this acceptable for users with low vision? Was this concerned in creation of the text and was this meant to be covered or not? That is I'm seeking to understand the intention in order to interpret what was meant. |
@mraccess77 That is a really good question. This bullet of the success criteria covers persistence related to different types of focus (for example hover and keyboard focus) and what is expected when they overlap and interact with the same element that has additional text. The scenario you describe is covered in the dismissable bullet, as outlined by the understanding document
In this case, the focus should remain until the user dismisses it by a keyboard action, by pressing escape, or by panning and interacting with a section of the page where the additional content is no longer valid. |
@mraccess77 please comment if this is okay to close. Thank you! |
I'm trying to understand the response - is the group agreeing that if it was focused with the keyboard that the additional content must remain when the mouse is moved around elsewhere? I can't tell from your response. |
@mraccess77 that would be correct. If the element was focused with the keyboard, and the mouse never interacted with the element with additional content, the additional content should still persist when the mouse is moved around. |
Even when the mouse moves over the additional content and then moves out? |
@idoros if the content was triggered by keyboard, and later the mouse moved to it and then away - as long as the mouse doesn't trigger something new, the content should persist. |
What is the definition of "something new"? I assume you mean another tooltip like content, but a page can contain many interactions that can be implemented in many ways and are impossible to detect. Edit: Also how about keeping it open, if a pop-up content is shown by the mouse and the gets a focus within, do you think the focus should keep it open when the mouse leaves? |
Draft response
|
No change to SC or understanding document. Please reopen if anything remains unaddressed. Thank you! |
What should be the cross behavior between focus and hover:
case 1: focus a button -> tooltip appears -> move mouse over the tooltip or button -> tab to blur button (not into overlay content).
should the mouse keep the tooltip alive until it moves out?
case 2: focus a button -> tooltip appears -> move mouse over and then out.
should the tooltip disappear?
My intuition is that no matter how a tooltip opened, holding the mouse pointer on it is like another focus point that should keep the tooltip content persistent even when the actual focus is moved a away (esc should still close even when mouse is on content). Given this thinking, when the tooltip is invoked by the focus, a mouse might dismiss it by waving it away like esc would.
On the other hand the trigger that opened the tooltip (or other focus/hover UI) could be considered as THE way to close it, so mouse will never close a popup that was opened by focus and vice versa.
Another option is that both mouse out and blur removes the content without regards to how it was opened or if any additional triggers are currently in effect.
The text was updated successfully, but these errors were encountered: