3 ms·
None of htmx's modal examples are accessible, doesn't give me confidence it can be used for serious projects.
by robertoandred 4y ago
None of htmx's modal examples are accessible, doesn't give me confidence it can be used for serious projects.
- recursivedoubts 4y agoif you are willing to jump on the discord, we'd be happy to improve them https://htmx.org/discord https://htmx.org/discord
- benpate 4y agoMy dude... I made those in like a day, when I was first getting started with htmx. Accessibility has nothing to do with the language or framework you use. It's about the thing you build with it. If you can build it with Javascript, you can build it with htmx. Give this a try, and see if it's any more accessible -- https://benpate.github.io/hyperscript-widgets/modal/ https://benpate.github.io/hyperscript-widgets/modal/ -- I've learned a bit since those first demos, and have followed every W3C guideline I can find on accessibility to make them. One more thing, I'm nowhere near being an accessibility expert, so I'm positive someone who knows more will have suggestions on how to improve this, too. But it has nothing to do with htmx/hyperscript, and everything to do with me being new at accessibility. Bugs/Suggestions/Pull Requests are always welcome. That's what makes htmx fit for "serious projects." Edited to add: Htmx is a JS-based extension of the natural hypermedia patterns your browser already uses, not a widget library. All of the demos on the site are just that -- demos that show you the kinds of things you can build, and not plug-and-play, ready-for-npm widgets you can just drop into your application without a second thought.