@@ -69,12 +69,12 @@ public partial class ShieldBadge
6969 . Build ( ) ;
7070
7171 private string ? StyleString => CssBuilder . Default ( )
72- . AddStyle ( "--bb-shield-badge-icon-color" , IconColor , ! string . IsNullOrEmpty ( IconColor ) )
73- . AddStyle ( "--bb-shield-badge-label-color" , LabelColor , ! string . IsNullOrEmpty ( LabelColor ) )
74- . AddStyle ( "--bb-shield-badge-label-bg" , LabelBackgroundColor , ! string . IsNullOrEmpty ( LabelBackgroundColor ) )
75- . AddStyle ( "--bb-shield-badge-text-color" , TextColor , ! string . IsNullOrEmpty ( TextColor ) )
76- . AddStyle ( "--bb-shield-badge-text-bg" , TextBackgroundColor , ! string . IsNullOrEmpty ( TextBackgroundColor ) )
77- . AddStyle ( "--bb-shield-badge-radius" , $ " { Math . Max ( 0 , Radius ) } px", Radius != 3 )
72+ . AddClass ( $ "--bb-shield-badge-icon-color: { IconColor } ;" , ! string . IsNullOrEmpty ( IconColor ) )
73+ . AddClass ( $ "--bb-shield-badge-label-color: { LabelColor } ;" , ! string . IsNullOrEmpty ( LabelColor ) )
74+ . AddClass ( $ "--bb-shield-badge-label-bg: { LabelBackgroundColor } ;" , ! string . IsNullOrEmpty ( LabelBackgroundColor ) )
75+ . AddClass ( $ "--bb-shield-badge-text-color: { TextColor } ;" , ! string . IsNullOrEmpty ( TextColor ) )
76+ . AddClass ( $ "--bb-shield-badge-text-bg: { TextBackgroundColor } ;" , ! string . IsNullOrEmpty ( TextBackgroundColor ) )
77+ . AddClass ( $ "--bb-shield-badge-radius: { Math . Max ( 0 , Radius ) } px; ", Radius != 3 )
7878 . Build ( ) ;
7979
8080 private string ? IconString => CssBuilder . Default ( "shield-badge-icon" )
0 commit comments