File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/BootstrapBlazor/Components/Badge Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ namespace BootstrapBlazor.Components;
1111public 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 ( ) ;
Original file line number Diff line number Diff line change 1- .badge {
2- & .bg-secondary , & .bg-light {
3- --bs-badge- color : #{ $bb-badge-color } ;
1+ .badge {
2+ & .text- bg-secondary , & .text- bg-light {
3+ color : $bb-badge-color !important ;
44 }
55}
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public void BadgeColor_OK()
7777 } ) ) ;
7878 } ) ;
7979
80- var ele = cut . Find ( ".bg-success" ) ;
80+ var ele = cut . Find ( ".text- bg-success" ) ;
8181 Assert . NotNull ( ele ) ;
8282 }
8383
You can’t perform that action at this time.
0 commit comments