fix labels `for` attribute with nested boolean style

cc @erichkist
closes #948