Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Fix 2967
  • Loading branch information
vnbaaij committed Nov 22, 2024
commit 41e65ae3ab9186f88af2546f4a1a41a1579b1cc2
4 changes: 2 additions & 2 deletions src/Core/Components/Button/FluentButton.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public partial class FluentButton : FluentComponentBase, IAsyncDisposable
private IJSRuntime JSRuntime { get; set; } = default!;

/// <summary />
private IJSObjectReference? _jsModule { get; set; }
private IJSObjectReference? _jsModule { get; set; }

private bool LoadingOverlay => Loading && IconStart == null && IconEnd == null;

Expand Down Expand Up @@ -200,7 +200,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
protected virtual MarkupString CustomStyle => new InlineStyleBuilder()
.AddStyle($"#{Id}::part(control)", "background", $"padding-box linear-gradient({BackgroundColor}, {BackgroundColor}), border-box {BackgroundColor}", when: !string.IsNullOrEmpty(BackgroundColor))
.AddStyle($"#{Id}::part(control)", "color", $"{Color}", when: !string.IsNullOrEmpty(Color))
.AddStyle($"#{Id}::part(control):hover", "opacity", "0.8", when: !string.IsNullOrEmpty(Color) || !string.IsNullOrEmpty(BackgroundColor))
.AddStyle($"#{Id}::part(control):not(:disabled):hover", "opacity", "0.8", when: !string.IsNullOrEmpty(Color) || !string.IsNullOrEmpty(BackgroundColor))
.BuildMarkupString();

/// <summary>
Expand Down
Loading