I previously noted Keith J Grant’s article on the HTML
dialog element which promised a native means of handling popups and modal dialogues.
I’ve not yet used
dialog in production, partly because of spotty browser support (although there is a polyfill) and partly because – for reasons I couldn’t quite put my finger on after reading the spec – it just didn’t feel like the finished article.
The good news is: having dug deeper into Scott’s work I see that among the many accessible components he has shared with the world is a custom, accessible modal dialogue. So next time the need arises, I think I’ll start there. Thanks, Scott!