this post was submitted on 27 Feb 2025
4 points (100.0% liked)

Voyager

6019 readers
59 users here now

The official lemmy community for Voyager, an open source, mobile-first client for lemmy.

Download on App Store

Download on Play Store

Use as a Web App

Download on F-Droid

Rules

  1. Be nice.
  2. lemmy.world instance policy

Sponsor development! ๐Ÿ‘‡

Number of sponsors badge

๐Ÿ’™

founded 2 years ago
MODERATORS
 

I just learned about image hover text in another thread and noticed that voyager currently doesn't implement showing it.

![alt text](https://lemm.ee/pictrs/image/2984903c-19e2-4f9f-a233-a2b03b9048a2.png "hover text")

alt text

Tapping the image to enlarge it will show the alt text. This is correct if there is no hover text (which is not used all that often). If a hover text is given in the markdown, it should take precedence over the alt text when viewing the image.

Thank you.

top 1 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 5 points 3 days ago

The title text is supported, but only devices with mouse support. When you hover it will show.

(It's not supported on touch devices, but it's also much less clear what should be done there.)

Even W3C says

Warning! Relying on the title attribute is currently discouraged as many user agents do not expose the attribute in an accessible manner as required by this specification (e.g. requiring a pointing device such as a mouse to cause a tooltip to appear, which excludes keyboard-only users and touch-only users, such as anyone with a modern phone or tablet).

I could support it in the image preview caption, but it would still often not be visible for other users (such as mobile lemmy-ui users using any browser). So in general, follow w3c, use alt text instead :)