DEV Community

Discussion on: Pure CSS Accrodion

Collapse
inhuofficial profile image
InHuOfficial • Edited on

Why make things complicated?

Works with keyboard, is accessible, is easier to style and is semantically correct, use the <details> and <summary> elements to save yourself a load of headaches!

Collapse
aka_tamer profile image
Tamer Author • Edited on

MY COMPLIMENTS, thank u for this trick!
small note - this is not supported by explorer developer.mozilla.org/en-US/docs/W...