Skip to content

Commit

Permalink
🐛 fix: clear class names after building (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Apr 11, 2024
1 parent f800d82 commit a17c560
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions BemIt/BemBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public virtual IEnumerable<string> GenerateCssClasses()
{
yield return className!;
}

ClassNames.Clear();
}

// inherits
Expand Down
2 changes: 1 addition & 1 deletion BemIt/Block.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Block Extend(string section)
}

/// <summary>
/// Creates a element of the block
/// Creates an element of the block
/// </summary>
/// <param name="element"></param>
/// <returns></returns>
Expand Down
2 changes: 2 additions & 0 deletions BemIt/Modifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ public override IEnumerable<string> GenerateCssClasses()
{
yield return className!;
}

ClassNames.Clear();
}

/// <summary>
Expand Down

0 comments on commit a17c560

Please sign in to comment.