The HTML Dialog Element vs Headless Component Libraries Dialog
Hi guys, i wanna learn why Headless component libraries like Ark UI/Radix Ui/etc,etc for a Dialog component don´t use the HTML dialog element. What´s the reason? It´s not better for SEO having native and progresive enchanment dialgos/modal/drawers?
2 Replies
I can't say if it would be better, but they probably didn't use dialog, because not all browsers supported it
As of 15th January or something like that, all browsers do
But that's only 2 weeks ago
MDN Web Docs
: The Dialog element - HTML: HyperText Markup Language | MDN
The HTML element represents a modal or non-modal dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.