Creating a modal using the dialog HTML element

Back in the day, making a modal was a real challenge that needed loads of work and know-how. You had to really think about how to make it easy to use and accessible, deal with where the focus goes, handle keyboard events, and all that jazz. But things got a whole lot easier once the dialog element came into play.

This post was originally published on Bleech by .

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.