question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Tooltip] Improve title node support

See original GitHub issue

Expected 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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Jan 11, 2019

So do we actually need to add a prop or can we simply change how we “delete” the title property of the Tooltip children?

@eps1lon I think that we can just add a new demo. I would wait for a strong case for changing the current implementation.

0reactions
eps1loncommented, Jan 11, 2019

@eps1lon The title property is primarily here for the SEO. We remove the attribute from the DOM node as soon as the user interacts with the wrapped element. The accessibility is handle with the aria described by.

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 and aria-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 the Tooltip children?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found