Open marlonmarcello opened 5 months ago
The dialog element is available in all browsers including Safari since 15 and the showModal method traps focus automatically.
dialog
15
showModal
Note: Might need some more investigation and testing.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal
Awesome, yeah I'm particularly curious about any limitations around animation here. Looking forward to digging into that.
The
dialog
element is available in all browsers including Safari since15
and theshowModal
method traps focus automatically.Note: Might need some more investigation and testing.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal