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

[Feat]: Option to configure overlay-trigger parent element

Open Illusive7Man opened this issue 3 years ago • 0 comments

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

Screenshot 2022-08-11 111620

Implementation notes or ideas

No response

Illusive7Man avatar Aug 11 '22 09:08 Illusive7Man