You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
Tooltip component wraps the element in a div, which is not the correct approach. Typically in other UI libraries, tooltip element is implemented as an absolutely positioned div that can be re-rendered at the location of the element to which the tooltip is assigned, rather than generating a physical div around the element. Current approach breaks when attempting to create a tooltip for elements that are part of a larger whole, for example:
any element belonging to a table (th, tr, td)
list entries (li, dt, dd)
select entries (option)
other elements I probably forgot about
I recommend a singleton tooltip element that repositions itself via event.target coordinates.
The text was updated successfully, but these errors were encountered:
Tooltip component wraps the element in a
div
, which is not the correct approach. Typically in other UI libraries, tooltip element is implemented as an absolutely positioned div that can be re-rendered at the location of the element to which the tooltip is assigned, rather than generating a physicaldiv
around the element. Current approach breaks when attempting to create a tooltip for elements that are part of a larger whole, for example:table
(th
,tr
,td
)li
,dt
,dd
)option
)I recommend a singleton tooltip element that repositions itself via
event.target
coordinates.The text was updated successfully, but these errors were encountered: