spectrum-web-components
spectrum-web-components copied to clipboard
[Feat]: Option to configure overlay-trigger parent element
Code of conduct
- [X] I agree to follow this project's code of conduct.
Impacted component(s)
overlay-trigger, sp-popover
Description of the requested feature
When overlay-trigger is placed inside an element that has scrolling, its click-content doesn't stay attached to the trigger element. See the screenshot. This is because active-overlay is appended to the body and the offset is calculated relative to the body, and instead it should be using the scrollable ancestor.
Mockups or screenshots

Implementation notes or ideas
No response