From c4541b0bd815f51a66489cf451faad7086126a47 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 2 Oct 2024 11:11:27 +0200 Subject: [PATCH] fix(cdk/drag-drop): positioning thrown off with align-self 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; } }