DEV Community

Discussion on: Native HTML: Dialog boxes

Collapse
 
konrud profile image
Konstantin Rouda

Nice article. My 50cents. Instead of using data-modal-for you could use aria-controls attribute, this way make your HTML a bit more accessible.

Aria-controls attribute identifies the element (or elements) whose contents or presence are controlled by the current element.