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.

  • aeharding@vger.socialM
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 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 :)