Prevent dismissal when a user moves the cursor back over the floating element #3361
oleksandr-danylchenko
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The popover should close on
mouseUp, and if a user drags back over the popover's content before releasing the mouse button, that should cancel the action.Motivation
In order to meet Success Criterion 2.5.2 Pointer Cancellation, we need to adjust the way we handle mouse events for the following elements, because they close on
mouseDownwhen users click outside of them. The popover closes onmouseDowninstead ofmouseUp. Instead, it should close on full tap or click or on mouse up, and the action should not happen if they mouse down, but then move the cursor back over the popup.Mouse users with mobility impairments (or anyone who taps their screen in the wrong place) have no way to cancel the action.
Beta Was this translation helpful? Give feedback.
All reactions