Login
You're viewing the front-end.social public feed.

Replies

  • Dec 9, 2025, 7:44 PM

    @darin what if we need add dialog open animation with transforms? Fixed position should be broken in this screnario.

    💬 2🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Dec 14, 2025, 12:57 AM

    @monochromer I dug into this more, and apparently it is not a bug but rather intended behavior.

    The dialog and close button have a parent-child relationship, which still allows anchor positioning to function. But if the parent gets a property that creates a new containing block inside it (like 'transform' or 'position: relative'), the containing block will sever the anchor connection between the parent and child. If the two elements were siblings it wouldn't be an issue.

    💬 1🔄 0⭐ 0
  • Dec 14, 2025, 1:05 AM

    @monochromer

    I was able to create a workaround by making the close button a popover ('popover=manual') – something recommended to me by @mayank in a previous post on here.

    Then when the dialog opens I use some JS to also open the close button popover (since there's no way to currently auto-open a popover). That allows the transition to now work, see the demo here: codepen.io/dsenneff/pen/wBGbav

    Now, is all of this worth the hassle? Probably not. I might just continue to use the "old way" now.

    💬 0🔄 0⭐ 1