Hacker News new | ask | show | jobs
by q-rews 1737 days ago
It already exists, but it’s mostly about hacks that aren’t very accessible, like using checkboxes to simulate interactivity.
2 comments

I really prefer using the <details> element for showing/hiding various content. It works amazingly well, and you can also hide the small triangle with some css. Much better than all those checkbox solutions that you see recommended all the time. But for some reason, nobody ever uses it.
I think details did in fact replace many of those checkbox hacks, but people also say it’s still the wrong tool for accordions and such, which confuses me.
not yet but maybe one day we can leave the 90s behind