I want a nice elegant way in SCSS to write BEM subcomponents without being verbose, and modify them using the parent class.
.container.container--red .container__title {
}
I tried this, but it didn't work:
.container {
&.container--red {
&__title {
}
}
}
But this doesn't work because it assumes the selector I need is .container--red__title