infor-design / enterprise-wc

Enterprise-grade web component library for the Infor Design System
Apache License 2.0
27 stars 26 forks source link

IdsTooltip: Tooltip is showing onFocus even it is set to be triggered on hover #2370

Open jomcab opened 3 months ago

jomcab commented 3 months ago

Describe the bug focus event triggers showing of tooltip even the trigger attribute is set to "hover"

To Reproduce

Steps to reproduce the behavior:

  1. Have a local copy of https://github.com/infor-design/enterprise-wc
  2. Update the sandbox demo for tooltip to add "Trigger on hover example" (src\components\ids-tooltip\demos\sandbox.html)
  3. `Tooltip on Hover Additional Information 1`
  4. Build and go to http://localhost:4300/ids-tooltip/sandbox.html
  5. Press Tab key multiple times until the added button is reached.
  6. Observe that focus event triggers the tooltip unlike the button with trigger="click" image

Expected behavior focus event will not trigger showing of tooltip when trigger="hover"

Version

Platform

tmcconechy commented 3 months ago

Wierd: It does seem to work on https://main.wc.design.infor.com/ids-tooltip/sandbox.html (trigger options). This button is not showing it on hover it only shows on focus.

Source: https://github.com/infor-design/enterprise-wc/blob/main/src/components/ids-tooltip/demos/sandbox.html#L44