Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They really aren't too much effort to get right, not anymore. Dialog element exists and by default handles most considerations when it comes to accessibility.

Also, you're going to have to create modals eventually, alerts are needed in most applications so you might as well create a thorough component.

Avoiding modals because of those who browse with JS disabled doesn't make much sense. Especially when they can temporarily enable on your site, as disabling JS for security reasons would mean they trust your site if they're still using it enough to reach a modal. You can still create fallbacks, but they'll be ugly considering most modals are for nested form changes or alerts.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: