svelte-materialify icon indicating copy to clipboard operation
svelte-materialify copied to clipboard

Fully use BEM CSS for components

Open TheComputerM opened this issue 4 years ago • 2 comments

Instead of using component scoped styles we currently use BEM CSS to make components more customizable. However we do not use BEM method for properties, for example:

currently

<div class="s-btn active">
  <div class="s-btn__content">
    ...
  </div>
</div>

change

<div class="s-btn s-btn--active">
  <div class="s-btn__content">
    ...
  </div>
</div>

This will make it better for users as there is no chance that their own style classes with clash with svelte-materialify.

TheComputerM avatar Oct 18 '20 08:10 TheComputerM

@TheComputerM Before I start implementing this, have you considered cube-css?

Florian-Schoenherr avatar Feb 12 '21 15:02 Florian-Schoenherr

Don't implement this just yet, have many alternatives to BEM such as ABEM, CUBE and SUIT

TheComputerM avatar Feb 12 '21 15:02 TheComputerM