`.hidden` will be overrided by the BB style. But we can improve this by extracting the logic of setting the class name out of the switch.