# Make hover notes usable without a pointer

Canonical: https://githtml.com/guides/hover-only-notes-html-report
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

Do not make important report notes available only on hover. Keep them inline or provide a deliberate disclosure that works with keyboard and touch. If content appears on hover or focus, review whether it can be dismissed, reached, and kept visible as needed rather than treating appearance alone as sufficient.

## Understand the access barrier

A floating note may cover the sentence it explains and disappear when the pointer moves toward it. That interaction is difficult for readers using magnification or imprecise pointer movement, and it may have no usable touch equivalent.

## Use a deliberate document pattern

For a reading document, inline text or native details often removes unnecessary complexity. If a custom tooltip is retained, test its complete interaction rather than just its styling. Do not place lengthy essential explanations into tiny transient panels.

1. Identify whether the note is essential and make it persistently available when appropriate.
2. Prefer an explicit disclosure over a hover-only custom interaction.
3. Test reachability, persistence, and dismissal for any transient content that remains.

````html
<details><summary>Measurement limitation</summary><p>Only completed requests are included.</p></details>
````

## Check the actual reading experience

Try reading the note while enlarged, then dismiss it without moving the reading position. Check keyboard and touch routes separately.

## Test the full lifetime of a transient note

Consider a chart point that reveals a note about excluded samples on hover. A reader using magnification may need to move the pointer toward the note to read its enlarged text, but the note disappears as soon as the pointer leaves the point. Another reader reaches the point with a keyboard and cannot dismiss the panel covering the next value. Showing the note is only the beginning of the interaction.

The WAI guidance distinguishes whether additional content is dismissible, hoverable, and persistent under the criterion’s applicable conditions and exceptions. Treat these as separate questions. Can the reader dismiss an obstructing panel without moving the pointer or focus away? Can they move onto the additional content when needed? Does it remain available long enough to read rather than disappearing on a short timer? Test the actual behavior rather than inferring it from a screenshot.

For a static report, a labeled details element or a short inline caveat often avoids the entire custom interaction. A note stating that failed requests were excluded may belong directly beside the chart’s main finding because it changes interpretation, while a lengthy methodological appendix can sit in a deliberate disclosure. Do not hide the trigger label until hover, which makes the note undiscoverable before the reader already knows where it is. Test touch activation, keyboard focus, zoomed reading, and dismissal separately. If the note contains interactive links, verify that focus can reach them without the panel closing unexpectedly. Keep the alternative useful with scripts disabled when the document is intended as a portable reading artifact.

## Sources and further reading

- [W3C WAI: content-on-hover-or-focus.html](https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html)

## Related guides

- [Label read-only worksheet fields without relying on placeholders](https://githtml.com/guides/label-readonly-html-worksheet-fields)
- [Give icon-only document links an understandable name](https://githtml.com/guides/name-icon-only-document-links)
- [Remove positive tabindex from document navigation](https://githtml.com/guides/positive-tabindex-reading-order)
- [Do not erase data-table semantics with a presentation role](https://githtml.com/guides/presentation-role-erases-data-table)

Editorial approach: https://githtml.com/guides/about
