From 5be8905f65cc907506fc0791223a7499a6235603 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 2 Oct 2024 17:27:47 +0200 Subject: [PATCH] fix(cdk/drag-drop): positioning thrown off with align-self (#29813) Fixes that the combination of setting `align-self: center` and the user agent styling of `inset: 0` on popovers was breaking the positioning of the preview. Fixes #29809. --- src/cdk/drag-drop/resets.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cdk/drag-drop/resets.scss b/src/cdk/drag-drop/resets.scss index 530f97dbe5cc..123953f8de6a 100644 --- a/src/cdk/drag-drop/resets.scss +++ b/src/cdk/drag-drop/resets.scss @@ -4,6 +4,10 @@ border: none; padding: 0; color: inherit; + + // Chrome sets a user agent style of `inset: 0` which combined + // with `align-self` can break the positioning (see #29809). + inset: auto; } }