adobe / adobe/spectrum-web-components
[Bug]: Tooltip in ActionMenu produces SWC warning
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 262
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 68
Description
### Code of conduct
- [x] I agree to follow this project's code of conduct.
### Impacted component(s)
ActionMenu, Tooltip
### Expected behavior
No warning is logged when using an tooltip inside an action-menu.
### Actual behavior
Currently when I use something like:
```
Your tooltip string is here
Available shapes
Square
Triangle
Parallelogram
```
this produces an SWC warning like:
```
Self managed elements walk up the composed tree to acquire a trigger element. No trigger element was found before the document.
Inspect this issue in the follow element: …slot
https://opensource.adobe.com/spectrum-web-components/components/tooltip#self-managed-overlays
```
### Screenshots
### What browsers are you seeing the problem in?
Chrome
### How can we reproduce this issue?
1. Go to https://opensource.adobe.com/spectrum-web-components/storybook/index.html?path=/story/action-menu--tooltip-description-and-placement&globals=system:spectrum-two
2. Open dev console
3. Check warning is logged
### Sample code or abstract reproduction which illustrates the problem
_No response_
### Severity
SEV 5
### Logs taken while reproducing problem
_No response_
Contributor guide
Research direction
Start with the ActionMenu tooltip story at the linked Storybook URL and inspect the ActionMenu and Tooltip components involved in that example. Reproduce it in Chrome with the dev console open, then trace the self-managed tooltip warning and verify that the example no longer logs it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100