gitfut icon indicating copy to clipboard operation
gitfut copied to clipboard

Mobile users cannot access hover-only tooltips

Open sheikhwasimuddin opened this issue 4 months ago • 0 comments

What's the idea

Make hover-only tooltips accessible on touch devices (mobile/tablet).

Problem it solves

Currently, several UI elements—like the Distribution tooltip, Playstyle badges, and Language tier badge—rely exclusively on CSS :hover states to reveal important information. Because touch screens do not support hover, mobile users have no way to access this content, resulting in a frustrating and incomplete experience.

How it might work

We can update the Tip component to track an internal isOpen state. On desktop, it will continue to rely on the existing hover behavior for a seamless experience. On touch devices, tapping the element will toggle the tooltip open, and tapping outside (or pressing Escape) will cleanly dismiss it. It will also be fully keyboard accessible.

Alternatives

  • Using a third-party tooltip library like Radix UI or Floating UI (might be overkill for a lightweight app, adds unnecessary dependencies).
  • Removing the tooltips entirely and displaying the text inline (clutters the UI).

sheikhwasimuddin avatar Jul 15 '26 14:07 sheikhwasimuddin