Add alternative text to a node
See original GitHub issueHey to all the team 👋
Would be really nice to have a tooltip opening when hovering a node with the mouse, just like you can do with the title
attribute in html:
<p title="tooltip description">A text with a native tooltip description</p>
A text with a native tooltip description
In a svg you can have the equivalent by using a title
element:
<svg xmlns="http://www.w3.org/2000/svg">
<g>
<title>Tooltip description</title>
<rect x="0" y="0" width="400" height="100" fill="red"></rect>
<text x="0" y="50" font-family="Verdana" font-size="15">A svg node with a native tooltip description</text>
</g>
</svg>
So my proposition would be to add a syntax maybe like:
flowchart LR
A["A simple node"]
title A "An alternative text tooltip"
What do you think about this proposition? I’m willing to help so I can also try to open a PR if you aggree with this one 👍
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Setting the alt attribute on the node image - Telerik Forums
I want to set the text for the "alt" attribute of the image. If I set the ToolTip property of the Node, it...
Read more >Techniques to add an alternative text to an image - AnySurfer
Images can be made accessible by either marking them as decorative or by providing an alternative text. Which technique to choose depends on ......
Read more >Image Alt Text and Title can't be saved on node/edit ... - Drupal
When saving the image "Alt text" and "Alt title" value on node/edit page the value is not saved/reflected. However, saving the value on ......
Read more >Add title and alternate text to image automatically?
Will automatically add the [node:title] and [site:name] tokens to the alt text field when content is saved or updated:
Read more >Converting <img> alt text to image caption node - Stack Overflow
Converting <img> alt text to image caption node · 1. imgs[i].parentNode.insertBefore(cap, imgs[i]); maybe? – Alon Eitan. Apr 12, 2021 at 14:48 · @ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this is a good idea, will ponder the syntax a bit but the proposed syntax makes sense. The pondering piece is to investgate if this could/should be applicable for other diagrams as well.
True, I have not sorted the CSS yet still not sure what is best but a working system does not seem to need too much … work in progress 😃