New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feeqt-rq : Support for HTML in tooltip #5440
Comments
I think this would be contrary to material design specs which states that: Tooltips don’t display rich information including images and formatted text. I didn't see anything in the specs like bootstrap's popover, so I'm not sure there will be such a component someday in the official set. But, as soon as CDK is out, probably will be done in community projects. Anyway, take a look at this discussion: #2691 |
@julianobrasil |
add support for custom html inside tooltip. in some projects it is necessary to have custom tooltips and when using angular-material, it’ll be hard to follow. so for flexibility, we should add it. closes angular#5440
I cloned your |
@julianobrasil I have changed the Please let me know if that's not the case. |
My mistake. I was building the master instead of the feat-tooltip-cust-html branch. Now I see it. Well, I think the change is nice (although, in the demo page it raises expectations that the html tooltip will change color if you click on the "Toogle tooltipClass" button as it happens with the master branch demo). The pros:
The cons:
Sugestion:
|
@andrewseguin is this something we want to support in tooltip? |
When designing the tooltip we deliberately decided not to support this. The Material Design spec is rather prescriptive about only text appearing in tooltips. Rich content also presents a challenge for a11y. |
Sorry, I know it is a closed issue, but what about how to implement i18n to mat Tooltip ?
Today it returns [object Object] in the Tooltip. Or there is another way ? Thanks. |
@AhsanAyaz how you add arrow on tooltip? |
using unicode, on the other hand works. so there's a lot you can do there including controlling where your text line-breaks with |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
feature request:
What is the expected behavior?
Tooltip should be able to render HTML for advance/custom tooltips. See attached image as an example.
What is the current behavior?
HTML is not supported inside tooltip
What is the use-case or motivation for changing an existing behavior?
To have dynamic templates under tooltip which is required in some complex applications.
EXAMPLE
The text was updated successfully, but these errors were encountered: