Updated to use contextual classes.
.collapsed -> .is-collapsed
.expanded -> .is-expanded
.hidden -> .is-hidden