Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/Components/Badge/Badge.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace BootstrapBlazor.Components;
public partial class Badge
{
private string? ClassString => CssBuilder.Default("badge")
.AddClass($"bg-{Color.ToDescriptionString()}", Color != Color.None)
.AddClass($"text-bg-{Color.ToDescriptionString()}", Color != Color.None)
.AddClass("rounded-pill", IsPill)
.AddClassFromAttributes(AdditionalAttributes)
.Build();
Expand Down
6 changes: 3 additions & 3 deletions src/BootstrapBlazor/Components/Badge/Badge.razor.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.badge {
&.bg-secondary, &.bg-light {
--bs-badge-color: #{$bb-badge-color};
.badge {
&.text-bg-secondary, &.text-bg-light {
color: $bb-badge-color !important;
}
}
Loading