DEV Community

Discussion on: Creating a Sidebar with HTML, CSS and JS

Collapse
 
bourhaouta profile image
Omar Bourhaouta

Nice 👍.
I also like to handle the toggle action from CSS itself by using labels and checkboxes with the + selector.

Collapse
 
felipperegazio profile image
Felippe Regazio

Thats also a good idea, but you would need to handle the accessibility separately, yap?

Collapse
 
bourhaouta profile image
Omar Bourhaouta

Good point, I didn't think about the accessibility!