logoalt Hacker News

jakelazaroffyesterday at 6:49 PM2 repliesview on HN

Same caveat applies to the "checkbox hack" or any other pure CSS solution. You cannot create accessible versions of most complex controls like tabs without JavaScript.

(That first example could be created semantically and accessibly with <details> / <summary> though!)


Replies

nextaccounticyesterday at 9:06 PM

what about, make it work in pure html and css, and enrich it with js to make it accessible?

rather than not working at all with js disabled

show 1 reply
tapirlyesterday at 8:47 PM

for "accessible", do you mean getting focused when pressing TAB key?

show 1 reply