spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Bug]: Slotted tooltip of ActionMenu, Picker etc. should hide when focus moves away (blur)

Open spdev3000 opened this issue 1 year ago • 1 comments
trafficstars

Code of conduct

  • [X] I agree to follow this project's code of conduct.

Impacted component(s)

ActionMenu, Picker

Expected behavior

When a user selects an ActionMenu menu item and ActionMenu closes a tooltip is shown. While this behavior itself may be questioned it should at least hide the tooltip when focus is moved away from the ActionMenu.

Actual behavior

After selection an menu-item and closing the ActionMenu tooltip stays open when focus is moved away (element is blurred) with TAB key to another item.

Screenshots

No response

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

  1. Go to https://studio.webcomponents.dev/edit/84gusdV7idta5CPqNRiG/src/index.ts?p=stories
  2. Click on first ActionMenu, select item
  3. ActionMenu closes, tooltip shows up
  4. Press TAB to focus next ActionMenu
  5. Tooltip still stays open

Sample code that illustrates the problem

No response

Logs taken while reproducing problem

No response

spdev3000 avatar Feb 23 '24 08:02 spdev3000

I am still unsure, if the tooltip should show after closing ActionMenu and not hovering the ActionMenu. Imho tooltip should only be shown when a user hovers over ActionMenu and not outside. Can we discuss this please if this is desired behavior?

spdev3000 avatar Feb 23 '24 08:02 spdev3000