Skip to content

docs: image examples are missing alt, and the existing alt does not describe the images #4667

Closed

Description

@sulimanbenhalim

two related things about the <img> examples.

first is a straight mismatch. every rendered preview has an alt, but 84 images in the copy-paste code blocks don't, so the code you copy differs from the example right above it. it's in avatar (17), carousel (29), mask (15), list (9), hover-gallery (8), stack (3), hero (2), stat (1). there's no case of both missing, which is why it looks like drift rather than a decision.

second is a question. the existing values look keyword-oriented rather than descriptive. photo-1494253109108 is a blue sphere and half a lemon, and on the carousel page alone it's labelled Carousel slider, Burger, Tailwind CSS slider, Pizza, Drink, Tailwind CSS component and more, 11 different values for the same photo. same in hover-gallery, where all four hat photos (front, three-quarter, side and back of the same cap) share Tailwind CSS image hover gallery.

so which would you prefer:

  1. sync the code blocks to the previews, keeping the current values exactly as they are
  2. switch to descriptive alt (Black cap with a daisy logo, front view and so on), which means changing the previews too, around 203 images

i've got option 1 done and tested, PR coming right after this. i also went through all 33 unique images so i have descriptions ready if you want option 2 instead, or on top. my guess is the current values are deliberate for image search, so that part is your call rather than mine.

can you assign this to me?

Activity

  1. github-actions commented on Aug 8, 2026

    @github-actions

    Thank you @sulimanbenhalim for reporting issues. It helps daisyUI a lot 💚
    I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
    In the meantime providing more details and reproduction links would be helpful.

  2. added a commit that references this issue on Aug 9, 2026
    aa68dcd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions