[Tooltip] Improve title node support
See original GitHub issueExpected Behavior 🤔
‘title’ property of Tooltip to be of a node type according to https://material-ui.com/api/tooltip/
Current Behavior 😯
‘title’ property of Tooltip is of a string type because title prop of the Tooltip is just simply moved to be a title attribute of html element which is a String.
Steps to Reproduce 🕹
just look at the Elements tab of a chrome dev tools. In my case it is just a H1 element with a title attribute. So I can’t use any formatting there. My <div>
is just shown as <div>
rather than used as a node element.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:13 (10 by maintainers)
Top Results From Across the Web
[Tooltip] Improve title node support #14149 - mui/material-ui
Expected Behavior 'title' property of Tooltip to be of a node type according to https://material-ui.com/api/tooltip/ Current Behavior ...
Read more >Change how fast "title" attribute's tooltip appears
Is there a way to change how fast the tooltip from an element's "title" attribute? I'd like ...
Read more >Tooltips | Charts - Google Developers
Tooltips are the little boxes that pop up when you hover over something. (Hovercards are more general, and can appear anywhere on the...
Read more >Tooltip in JavaScript Diagram control - Syncfusion
The diagram provides tooltip support while dragging, resizing, rotating a node, and when the mouse hovers any diagram element.
Read more >Create Tooltips in D3.js - Pluralsight
There are two possible methods of creating tooltips in D3.js. The first method is by creating the SVG <title> tags as a descendant...
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 Free
Top 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
@eps1lon I think that we can just add a new demo. I would wait for a strong case for changing the current implementation.
I understand that. Do you have some ressources on SEO and accessiblity? I would hope that good accesiblity would imply good SEO but wouldn’t be surprise if
title
andaria-described-by
are differently handled.So do we actually need to add a prop or can we simply change how we “delete” the
title
property of theTooltip
children?