Skip to content

Commit

Permalink
Fix issue in build
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrus-Sushiant committed Jul 14, 2024
1 parent 6bdeb5b commit 57ad04f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void BitTypographyShouldRespectVariant(BitTypographyVariant variant)
parameters.Add(p => p.Variant, variant);
});

var el = variantMapping[variant];
var el = VariantMapping[variant];
var cssClass = $"bit-tpg-{variant.ToString().ToLower(CultureInfo.InvariantCulture)}";

component.MarkupMatches(@$"<{el} class=""bit-tpg {cssClass}"" id:ignore></{el}>");
Expand All @@ -76,7 +76,7 @@ public void BitTypographyShouldRespectElement(string element)
});

var defaultVariant = BitTypographyVariant.Subtitle1;
var el = element is null ? variantMapping[defaultVariant] : element;
var el = element is null ? VariantMapping[defaultVariant] : element;

component.MarkupMatches(@$"<{el} class=""bit-tpg bit-tpg-subtitle1"" id:ignore></{el}>");

Expand Down

0 comments on commit 57ad04f

Please sign in to comment.