WCAG 1.4.13 — Content on Hover or Focus — tooltip/popup not dismissible
Tooltips or popup content that appears when hovering over elements cannot be dismissed without moving the mouse away, blocking access for keyboard users and people with motor disabilities. Under the ADA Title II rule, users must be able to dismiss these popups using the Escape key.
Who Is Affected
Keyboard users, people with motor disabilities who have difficulty with precise mouse movements, users with tremors or limited dexterity, screen reader users, and anyone using assistive technology that doesn't rely on mouse hover.
What This Means
When content appears on hover or focus (like tooltips, dropdown menus, or popup help text), users must be able to dismiss it without removing their mouse or keyboard focus from the trigger element. This is critical because some users cannot easily move their mouse away from the hover area, and keyboard users need a way to close popups without losing their place on the page.
The content must be dismissible using the Escape key, hoverable (users can move their mouse over the popup content itself), and persistent (it doesn't disappear unless the user dismisses it or removes focus).
Fix: CMS / Theme
Most hover/focus content issues stem from JavaScript components in your theme or plugins that don't follow proper dismissal patterns.
For Joomla:
- Go to Extensions → Templates → Your Template → Edit Files
- Look for JavaScript files handling tooltips, dropdowns, or popup menus
- Ensure all hover/focus triggered content includes:
// Add Escape key handler document.addEventListener('keydown', function(e) { if (e.key === 'Escape') { // Hide all visible tooltips/popups closeAllPopups(); } }); - Verify popup content is hoverable by adding CSS pointer-events: auto to the popup container
- Test that content persists until explicitly dismissed
For WordPress:
- Go to Appearance → Theme Editor or use a child theme
- Check your theme's JavaScript files and any tooltip/dropdown plugins
- For common plugins like Toolset or custom tooltips, add escape key functionality:
jQuery(document).keyup(function(e) { if (e.keyCode === 27) { // Escape key jQuery('.tooltip, .popup, .dropdown-menu').hide(); } }); - Ensure CSS allows mouse interaction with popup content (no pointer-events: none)
Fix: Content Editor
If you're using tooltip or popup functionality added through the content editor:
- Test the dismissal method: Use keyboard navigation to trigger the tooltip, then press Escape
- Verify hoverability: Move your mouse over the popup content itself — it should remain visible
- Check persistence: The popup should not disappear when you move between the trigger and the popup content
- If any of these fail, contact your web developer to implement proper dismissal handlers
- As a temporary fix, consider replacing hover tooltips with click-to-reveal content or always-visible help text
Alternative approach: Replace problematic hover content with:
- Expandable sections (click to show/hide)
- Modal dialogs with proper close buttons
- Inline help text that doesn't require hover
- Links to dedicated help pages
Standard Reference
WCAG 2.1 Success Criterion 1.4.13 — Content on Hover or Focus, Level AA
Where receiving and then removing pointer hover or keyboard focus triggers additional content to become visible and then hidden, the following are true:
-
Dismissible: A mechanism is available to dismiss the additional content without moving pointer hover or keyboard focus, unless the additional content communicates an input error or does not obscure or replace other content
-
Hoverable: If pointer hover can trigger the additional content, then the pointer can be moved over the additional content without the additional content disappearing
-
Persistent: The additional content remains visible until the hover or focus trigger is removed, the user dismisses it, or its information is no longer valid
-
WCAG Technique G219 — Hover/Focus content meets requirements
Helpful Tools
Check if your government website has this issue
OctoComply scans your website and documents for WCAG 2.1 AA violations. The free tier covers up to 10 pages.
Run a Free Scan