getbem.github.io
getbem.github.io copied to clipboard
Globals classes
Can I use globals classes within others elements? For exemple, <button class=“block__elem bordered”>. In this case the class bordered is a border-radius: 5px that I’ll use in many others elements! Thank you!
You should use a modifier: block__elem--bordered
If you wanna reuse the border-radius, use SCSS