!2854 feat(#I5AO8I): add link-color css on LinkButton

* refactor: 使用 link-color 代替 text-color
This commit is contained in:
Argo 2022-06-04 03:40:13 +00:00
parent 45e3b2f200
commit 3abf0ed5f2

View File

@ -50,7 +50,7 @@ public partial class LinkButton
private string? ClassString => CssBuilder.Default("link-button")
.AddClass("is-vertical", IsVertical)
.AddClass($"btn-outline-{Color.ToDescriptionString()}", IsOutline)
.AddClass($"text-{Color.ToDescriptionString()}", Color != Color.None && !IsOutline && !IsDisabled)
.AddClass($"link-{Color.ToDescriptionString()}", Color != Color.None && !IsOutline && !IsDisabled)
.AddClass($"btn-{Size.ToDescriptionString()}", Size != Size.None)
.AddClass("btn-block", IsBlock)
.AddClass("is-round", ButtonStyle == ButtonStyle.Round)