In the right bar, we have core images SVG with tooltip text. The svg is within a button tag.
Now, I want the same for a sipmple image (no action so no button there!). Normally, I would use img tag there. Which I could do with <$image>
or directly with <img>
. But I cbn’t have any picture on display in either case, only the alt text.
code sample:
<$image alt={{!!close-bar-icon-alt-text}} source="$:/core/images/spiral" tooltip="Show left bar menu"/> Ok? <img alt=alternative-alt-text title=hint src={{$:/core/images/spiral}}/>
Nothing shows but (alt text for $image) OK? alternative-alt-text
(this with unmodified core images!)
What’s wrong?
Note that, for tooltype text only, I can embed the svg tag within a <span>
with a title
attribute. This is a workaround since I already have the alt text, but a workaround without any image!