Skip to content

Commit 7eabaf4

Browse files
committed
refactor: use text-bg-color class
1 parent b02aca8 commit 7eabaf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/Badge/Badge.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace BootstrapBlazor.Components;
1111
public partial class Badge
1212
{
1313
private string? ClassString => CssBuilder.Default("badge")
14-
.AddClass($"bg-{Color.ToDescriptionString()}", Color != Color.None)
14+
.AddClass($"text-bg-{Color.ToDescriptionString()}", Color != Color.None)
1515
.AddClass("rounded-pill", IsPill)
1616
.AddClassFromAttributes(AdditionalAttributes)
1717
.Build();

0 commit comments

Comments
 (0)