1.4.13 Content on Hover or Focus
Level AA Since WCAG 2.1 How it is checked: Robot
In plain language
Tooltips and menus that appear on hover or focus must close with the Esc key, stay visible when the pointer moves onto them, and not hide on their own while the user is still reading.
Who is affected
- People with low vision
- People with motor disabilities using only a keyboard
Examples
Fails
A tooltip appears on hover but disappears when you move the mouse onto it to read; it covers other content and cannot be closed.
Passes
The tooltip stays when the pointer moves onto it, closes with Esc, and only hides when you move away.
How to fix
- Listen for the Esc key to close tooltips and pop-up menus.
- Let the pointer move onto the pop-up content.
- Do not hide it automatically after a timeout.
How to test it yourself
- Hover over and Tab to elements with tooltips/menus: try Esc, and try moving the mouse onto the pop-up content.
What WCAG.win checks
WCAG.win checks part of this criterion automatically. The rest still needs a person.
- Robot: Hovers over items with submenus or pop-up content, presses Esc and reports content that does not close (with a screenshot).
W3C documentation: Understanding Success Criterion 1.4.13: Content on Hover or Focus