Tooltips (don’t be hover-only)

A short, practical UI accessibility note for games and web UIs. No tracking.

Try the micro-demo: tooltip-demo.html

It compares a tooltip that only appears on hover (BEFORE) vs one that appears on keyboard focus, hover, and tap (AFTER).

What goes wrong

Many UIs use a little “?” icon next to a label. The tooltip appears on mouse hover, so it feels fine in testing. But if the tooltip is hover-only, then:

What to do instead

Minimal sketch:

<button id="help" aria-describedby="tip">?</button>
<div id="tip" role="tooltip" hidden>Audio controls stereo mix.</div>

<script>
const btn = document.getElementById('help');
const tip = document.getElementById('tip');
const setOpen = (v) => tip.hidden = !v;

btn.addEventListener('focus', () => setOpen(true));
btn.addEventListener('blur',  () => setOpen(false));
btn.addEventListener('click', () => setOpen(tip.hidden));
btn.addEventListener('keydown', (e) => {
  if (e.key === 'Escape') setOpen(false);
});
</script>

Exact behavior varies by UI, but the big idea is: don’t rely on hover alone.