User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This was discussed in JAB and there was an agreement that JS is not needed for tooltips. Reasons:
Drawbacks:
Apply the patch and check the global configuration page (field: Use URL Rewriting)
Tooltips still rendering as before, but without jQuery and bootstrap dependency or any other js code
This PR also removes the archaic Mootools way of creating tooltips (class hasTip
) since moo tools is not with us anymore
@ciar4n you can take it from here...
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Templates (admin) Layout Libraries Front End Templates (site) |
Labels |
Added:
?
|
I would prefer to have the possibility to insert html in the tooltips. We often develop complex sites with Joomla where we create complex combinations of additional fields, some of which are also used to compose tooltips that must contain HTML.
@simbus82 For your use case that is where an extended JavaScript component like Bootstrap's Popover component comes into play (and should be what you are using). Though they may have similar uses, tooltips should be decoupled from any JavaScript tooling by default (and the native browser implementation does not use HTML, that is only possible through JavaScript enhancement).
Which is why I posted my original comment, we do need to support the use case you're looking for, BUT, that should be a separate tool and NOT the Joomla default behavior for tooltips.
@mbabker I guess the special case for popup is when a title is present: https://github.com/joomla/joomla-cms/pull/20519/files#diff-51258b89e12460b1a7f367c2ca89de6eR31
If so we need to fire a different behaviour (but how do we make this pluggable?)
@dgrammatiko When you have to work with Joomla to develop interfaces for intranet applications, used by non-qualified personnel, you will see that what Elon Musk says, no matter how beautiful and true it is, is no longer valid. :-P
But as @mbabker said, we can use the Bootstrap 4 Popover in future.
Thanks to all
@dgrammatiko No need to criticize the work from another person where you neither know the product nor the person. Please stop that.
Also as a general rule, generalised statements are always wrong
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-05-21 20:00:02 |
Closed_By | ⇒ | dgrammatiko |
As long as we still support something like Bootstrap's Popover component (which really should be the one you're using HTML with, we really hacked away at tooltips to make it behave like the popover component in 3.x) this isn't an issue.