adobe / adobe/spectrum-web-components
[Bug]: sp-overlay forces focus on trigger after closing on type hover
- 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)
sp-overlay
### Library version
1.10.0
### Expected behavior
trigger should not get focus-visible after closing a hover type overlay
### Actual behavior
trigger gets focus-visible after closing a hover type overlay
### Screenshots
_No response_
### What browsers are you seeing the problem in?
Chrome
### How can we reproduce this issue?
1. Go [here](https://stackblitz.com/edit/vitejs-vite-nh1jvmxh?file=src%2Fmy-element.ts)
2. Hover on button to trigger the tooltip
3. Move the mouse somewhere else
4. Check how the button is now focus-visible
### Sample code or abstract reproduction which illustrates the problem
_No response_
### Severity
None
### Logs taken while reproducing problem
_No response_
### Would you like to track this issue in Jira?
- [ ] Yes, please tell me the ticket number!
Contributor guide
Research direction
Start with the sp-overlay component and reproduce the behavior using the linked StackBlitz example in Chrome: hover the button to open the tooltip, then move the mouse away. Trace the hover overlay's closing and trigger-focus behavior; done means closing the hover overlay no longer leaves the trigger focus-visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100