DEV Community

Discussion on: Basic Rules of RSCSS and BEM Systems

Collapse
 
windo profile image
Herwindo Artono

Hi Nesha, thanks for your explanation in those two methods. Do you have suggestion when we should use one? especially when the project is using bootstrap.

I want to add some more in RSCSS methodology, that we suggested to using ">" or child selector whenever possible to prevent bleeding (rscss.io/elements.html). So in the example above we better to write:

.signup-form {
   > .inputfield {...}
   > .submitbtn {...}
}

Again, Thanks !👍🏼