fix: LevelMeterFab icon tint via inline style, bypass Blazor CSS isolation scoping of :root
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user