freshworks / crayons

🖍️ Crayons - A UI Kit comprising of web components for building Freshworks Apps!
https://crayons.freshworks.com
219 stars 61 forks source link

[Bug] - Tooltip is not displayed in right slider modal #870

Closed vatala-aiswarya closed 1 year ago

vatala-aiswarya commented 1 year ago

Component fw-tooltip

Describe the bug Tooltip content is not getting displayed on hover over the fw-button when the button is inside fw-modal which is right slider

To Reproduce Steps to reproduce the current behavior:

  1. Go to fw-modal
  2. Hover on fw-button which is wrapped inside fw-tooltip
  3. No tooltip will be shown
  4. This behaviour is same even with click feature of tooltip

Expected behavior Tooltip must be shown in the right position when hover on the respective element which has tooltip configured

Screenshots

Screenshot 2023-06-15 at 12 45 13 PM

Additional context This also happens with regular center placed modal but during that time tooltip is shown but in the wrong position.

Screenshot 2023-06-15 at 12 42 56 PM
vatala-aiswarya commented 1 year ago

This issue is fixed using hoist in fw-tooltip. Thanks to @srivalli-sivaramasankaran for helping me on this.