fix: LevelMeterFab icon tint via inline style, bypass Blazor CSS isolation scoping of :root

This commit is contained in:
daniel-c-harvey
2026-06-08 08:25:56 -04:00
parent b88af29731
commit 1c942ffb2b
3 changed files with 12 additions and 15 deletions
@@ -28,6 +28,14 @@ public partial class LevelMeterFab : ComponentBase, IAsyncDisposable
private double _smoothedDb = SilenceFloorDb;
private string _bandClass = string.Empty;
private string _svgStyle => _bandClass switch
{
"lmf-green" => "color: #2ECC71; filter: drop-shadow(0 0 6px rgba(46, 204, 113, 0.45));",
"lmf-yellow" => "color: #F4C430; filter: drop-shadow(0 0 6px rgba(244, 196, 48, 0.45));",
"lmf-orange" => "color: #FF6B35; filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.45));",
_ => ""
};
protected override async Task OnParametersSetAsync()
{
// The cascade is IsFixed, so the provider's re-renders do NOT re-run