Content on Hover or Focus
Content that appears on hover or keyboard focus, such as a tooltip or a dropdown preview, can be dismissed without moving the pointer, can be hovered over itself without disappearing, and stays visible until the user moves away or dismisses it.
Why it matters
A screen magnifier user sees a small part of the page. A tooltip that vanishes the moment the pointer leaves the trigger cannot be read, because moving the viewport to it means moving the pointer. A tooltip that cannot be dismissed hides the content underneath it.
Needs manual testing
This is interaction behaviour, which no automated rule tests. For each hover or focus popup: press Escape and check it closes, move the pointer onto it and check it stays, and wait to confirm it does not time out.
Fails
<button type="button" class="help" onmouseenter="showTip()" onmouseleave="hideTip()">?</button>
<div id="tip" hidden>Your order number is on the receipt email.</div>The tip closes as soon as the pointer leaves the button, so it cannot be hovered or read under magnification, and Escape does nothing.
Passes
<button type="button" class="help" aria-describedby="tip"
onmouseenter="showTip()" onfocus="showTip()"
onmouseleave="scheduleHide()" onblur="hideTip()"
onkeydown="if (event.key === 'Escape') hideTip()">?</button>
<div id="tip" role="tooltip" hidden
onmouseenter="cancelHide()" onmouseleave="hideTip()">Your order number is on the receipt email.</div>The tip is tied to the trigger, Escape dismisses it, and hovering the tip itself keeps it open. The hide is delayed so the pointer can travel to it.
Openwell finds violations like this one across your whole site, clusters them by the component that caused them, and generates a fix that's re-validated before you see it.
Scan your site free