Build-in tooltip in elements instead of having "<wa-tooltip>"? #183
HovKlan-DH
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I have wondered about this too, though it's hard to do in a way that would not introduce a dependency on Perhaps the solution is to ship some JS alongside Web Awesome that reads a certain global attribute (e.g. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am wondering if it would be possible to have tooltips available directly in elements, so it would not be needed to use
<wa-tooltip>
?I mean, I do have this code here:
This works fine, but how about having this instead?
That would make it a little easier, with no need for any
ID
and reduce the amount of DOM elements.Not sure if this can cover all scenarios that
<wa-tooltip>
can do (probably not), but maybe just to support the basics, and then<wa-tooltip>
can be used for the advanced stuff?Beta Was this translation helpful? Give feedback.
All reactions