Skip to content

Commit

Permalink
fix(cdk/drag-drop): positioning thrown off with align-self (#29813)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
crisbeto authored Oct 2, 2024
1 parent 9db4095 commit 5be8905
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cdk/drag-drop/resets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 5be8905

Please sign in to comment.