Your `` is invisible to keyboards and screen readers. Nothing made you write it,...

@kore@chaos.social

Your `<div onClick>` is invisible to keyboards and screen readers. Nothing made you write it, but nothing in your framework's workflow ever asked you not to.

The browser ships `<dialog>` with focus trap, Escape, and correct semantics, built by people who do nothing else. Your component library re-implemented it in userland, with its own bugs.

The cheapest accessibility work is the work the browser already did: kore-nordmann.de/blog/htmx-and