passing bar_collapse class onto shadowdoms