Skip to content

Modal fixed position does not work properly when an ancestor has set transform property #453

Description

@hubacekj

Modal's backdrop position: fixed doesn't work properly if its ancestor has set transform property because it then acts as a containing block.

One of the issues with that is when you want to have a Modal inside another Modal, it is positioned relative to the parent Modal instead of the browser viewport. We need to use something else than transform: translate(-50%, -50%) to compensate for width and height of the Modal itself.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions