mirror of https://github.com/zulip/zulip.git
fc18ec4c04
Instead of inserting tooltip inside `body`, we directly insert it inside the `reference` element. This helps us to automatically hide the tooltip when we hide the `reference` element. This avoids the bug of tooltip persisting when the message reaction is removed while the tooltip is active. To reproduce: * React 👍 to a message. * Hover over the reaction. * Press `+` from keyboard. You will see reaction tooltip persisting while the reaction is hidden, also "Add emoji" icon is displayed with tooltip. Doing the same for elements which are inside a simplebar container and for which tooltips can span outside the simplebar container, makes the tooltips not visible or cut at the edges of simplebar container since simplebar containers have overflow set to `hidden`. This is something that cannot fixed as per https://github.com/Grsmto/simplebar/issues/347 So, for simplebar contained elements we insert the tooltip to `body`. `reference` element: Element for which tooltip is displayed. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.gitignore |