craft
craft copied to clipboard
Dialog rewrite challenge
There is something called the HTMLDialogElement (https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement). This is a native implementation of a dialog. It should be well-supported by now by all browsers. The trickiest is safari 15.4 which is not very old. But old enough?
So the challenge: Convert all components that use a dialog to use the native HTMLDialogElement. But when it's not supported, load a fallback. Maybe there are polyfills for this? (your google is as good as mine).
Some resources: https://www.scottohara.me/blog/2019/03/05/open-dialog.html