4 ms·
The biggest problem with these hacks isn't a preference for CSS over JS (which IMO is fine in moderation); it's the fact that they aren't keyboard or screenread
by acbabis 10y ago
The biggest problem with these hacks isn't a preference for CSS over JS (which IMO is fine in moderation); it's the fact that they aren't keyboard or screenreader accessible. A person using a screenreader can't even navigate to the accordion (http://jsfiddle.net/yn4ls/ http://jsfiddle.net/yn4ls/), and if they could, it would tell them it's a form element.
- Kluny 10y agoYeah, that's an uncool abuse of the checkbox element. I'd rather be conventional than clever when it comes to layout.