The hover box that runs away
Many counseling websites show a small box when the pointer rests on something. A services menu drops down, an insurance logo shows a note, or a provider photo reveals a short line. For a visitor who zooms the page to read it, the box can be the entire screen, and moving the mouse toward it can make it disappear.
What the W3C asks for
The Content on Hover or Focus criterion, which we read in full before writing this guide, applies where hover or keyboard focus makes extra content appear and then disappear. It sets three conditions, in its own labels: dismissible, hoverable and persistent.
| Condition | In plain words |
|---|---|
| Dismissible | The visitor can close the box without moving the pointer or the keyboard focus, for example by pressing Escape |
| Hoverable | The pointer can travel onto the new box without the box vanishing |
| Persistent | The box stays until hover or focus is removed, the visitor closes it, or its information is no longer true |
The W3C gives its reasons. People who use screen magnification see only a small part of the page, and the view follows the pointer or focus, so a box that cannot be dismissed can hide what they came to read. Large pointers set in system settings can also cover a good deal of a small box.
Cases the criterion leaves out
- Tooltips drawn by the browser itself from a plain title attribute, because the author does not control how they look.
- Boxes that deliver an input error message, which can stay in place.
- Extra content that covers nothing meaningful, such as blank space.
- Dialogs that take focus on purpose, which are covered by other rules.
Test every pop-up on three paths
- 1List each place where something appears on hover on your home page, services page and contact page.
- 2Pointer test: rest the mouse on the trigger, then slowly slide it onto the new box. It should not disappear on the way.
- 3Keyboard test: Tab to the same trigger. The same box should appear, and pressing Escape should close it while focus stays put.
- 4Patience test: leave the box alone for ten seconds. It should still be there.
- 5Zoom the browser to about two hundred percent and repeat the first three steps.
A simpler answer is often better
The W3C itself notes that there are usually more predictable ways to add content to a page. For a counseling practice, the plain option is to print the line in the page, such as the insurance note or the hours, rather than hiding it in a pop-up. A pop-up that holds only a repeated phone number or a short label adds risk with no benefit.
Where you do keep a dropdown menu, make sure it opens on keyboard focus as well as hover, and closes on Escape. The guide on collapsible sections that stay readable by search engines and screen readers covers click-to-open content, which avoids most of these problems. We do not give legal advice, and this check does not by itself make a site conform to any standard. Moving content has one more rule worth checking, the limit on flashing described in flashing effects in a practice welcome video or banner.
Frequently asked questions
Does a browser tooltip from a title attribute count?
The W3C leaves out tooltips that the browser draws itself and the author does not change. A custom tooltip, submenu or popover that your site builds is covered. If you are unsure which kind you have, ask your developer to look.
Why does it matter if the box can be dismissed?
For a visitor using magnification, the box can cover the thing they were reading, and moving the pointer away to close it also moves the magnified view. Pressing Escape lets them clear the screen without losing their place.
Does the same box need to appear for keyboard users?
Yes. The W3C says content that appears on hover should also appear on keyboard focus, which is part of its separate keyboard criterion. Test with Tab as well as with the mouse, since the two paths are often built differently.
Is a dropdown services menu a problem?
Not by itself. It is covered by the three conditions, so check that it opens from the keyboard, lets the pointer cross onto the menu, and can be closed with Escape. Many menus built from standard parts already behave this way.
What should we send our web person?
One line per pop-up, with the page address, which of the three conditions failed, and how you saw it. Ask for a retest of the same steps afterward. A written list with dates gives you something to compare against later.
Sources
- W3C Web Accessibility Initiative — Understanding Success Criterion 1.4.13: Content on Hover or Focus