|
|
@ -10,7 +10,7 @@ public partial class Icon : UIComponent
|
|
|
|
protected string Classname =>
|
|
|
|
protected string Classname =>
|
|
|
|
new CssBuilder("icon-root")
|
|
|
|
new CssBuilder("icon-root")
|
|
|
|
.AddClass($"icon-default", Color == ThemeColor.Default)
|
|
|
|
.AddClass($"icon-default", Color == ThemeColor.Default)
|
|
|
|
.AddClass($"svg-icon", !string.IsNullOrEmpty(Glyph) && Glyph.Trim().StartsWith(("<")))
|
|
|
|
.AddClass($"svg-icon", !string.IsNullOrEmpty(Glyph) && Glyph.Trim().StartsWith("<"))
|
|
|
|
.AddClass($"{Color.ToDescription()}-text", Color != ThemeColor.Default && Color != ThemeColor.Inherit)
|
|
|
|
.AddClass($"{Color.ToDescription()}-text", Color != ThemeColor.Default && Color != ThemeColor.Inherit)
|
|
|
|
.AddClass($"icon-size-{Size.ToDescription()}")
|
|
|
|
.AddClass($"icon-size-{Size.ToDescription()}")
|
|
|
|
.AddClass(AdditionalClassList)
|
|
|
|
.AddClass(AdditionalClassList)
|
|
|
|