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

[Bug]: Tooltips hosted in Dialogs interfere with focus

Open hunterloftis opened this issue 2 years ago • 1 comments

Code of conduct

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

Impacted component(s)

tooltip, dialog, overlay, overlay-trigger

Expected behavior

Tooltips open and close without changing focus, in all contexts.

Actual behavior

Tooltips initiated in dialogs change the focused element.

Screenshots

No response

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

https://studio.webcomponents.dev/edit/HHcNNv46jQ0fluF3x2B9/src/index.ts?p=stories

Sample code that illustrates the problem

No response

Logs taken while reproducing problem

No response

hunterloftis avatar Aug 05 '22 17:08 hunterloftis

@joekukish does this feel more like what you'd want to see here? https://returns-focus--spectrum-web-components.netlify.app/storybook/?path=/story/dialog-wrapped--tooltips

Westbrook avatar Aug 11 '22 12:08 Westbrook