Hacker News new | ask | show | jobs
by dbbk 400 days ago
Why aren't you just using the built-in dialog element that already handles this?
1 comments

<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.