Skip to content

Radix Popover components' positioning inside fixed containers #1469

@GomezIvann

Description

@GomezIvann

Describe the bug
When a component of halstack that uses the Radix Popover is inside a container with a fixed position, the popover stays in the same position even if that container is scrolled to preserve its relative position (fixed position = absolute position + scroll offset). The perfect example of this situation is the dropdown exported inside our Header component.

This may be caused by the fact that we are using the Portal version of the Popover.

Expected behaviour
The popover should stay in the same position as in its initial one. For example, in the previous example, the dropdown menu should stay below the dropdown trigger when the main view is scrolled.

Screenshots

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingjiraThis task is referenced in a story of Jira

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions