Skip to content

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

@Illusive7Man

Description

@Illusive7Man

Code of conduct

  • 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions