angular-bem icon indicating copy to clipboard operation
angular-bem copied to clipboard

Wrong class for block which is also element of parent block

Open git-heavy opened this issue 3 years ago • 0 comments

Template markup:

<div block="header">
  <div block="switch-control" elem="control">
  </div>
</div>

Result markup:

<div _ngcontent-lkp-c176="" block="header" class="header">
  <div _ngcontent-lkp-c176="" block="switch-control" elem="control" class="switch-control switch-control__control">
  </div>
</div>

Expected markup:

<div _ngcontent-lkp-c176="" block="header" class="header">
  <div _ngcontent-lkp-c176="" block="switch-control" elem="control" class="switch-control header__control">
  </div>
</div>

git-heavy avatar Sep 21 '22 11:09 git-heavy