← Back to context

Comment by dbbk

2 days ago

Why aren't you just using the built-in dialog element that already handles this?

<dialog> is kind of a PITA to style (backdrop, transitions, etc), and doesn't really solve any of the tough problems with dialogs (e.g. locking scrolling).

I tried really hard to use <dialog> and popover but didn't succeed. Maybe somebody more skilled can make it happen.