DEV Community

loading...

Discussion on: 🤯 Create a modal with zero line of CSS 🤯

Collapse
mornir profile image
Jérôme Pott Author

Thanks for your comment 😃

I think that the issue of styling has been taken into consideration in the design of the dialog element. It is very easy to override the default styles and it even provides a pseudo-element (::backdrop) for customizing the background.

So in the end, it is as easy as styling a div tag, but with the added accessibility benefit.