From 8425e3776d02c458c64698556b041f9ed05b734b Mon Sep 17 00:00:00 2001 From: MarvinKlein1508 Date: Fri, 28 Nov 2025 10:55:43 +0100 Subject: [PATCH] Use CultureInfo.InvariantCulture for background-color and z-index --- src/Core/Components/Overlay/FluentOverlay.razor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Components/Overlay/FluentOverlay.razor.cs b/src/Core/Components/Overlay/FluentOverlay.razor.cs index 187e94b131..48fffa1a45 100644 --- a/src/Core/Components/Overlay/FluentOverlay.razor.cs +++ b/src/Core/Components/Overlay/FluentOverlay.razor.cs @@ -47,7 +47,7 @@ public partial class FluentOverlay : IAsyncDisposable /// protected string? StyleValue => new StyleBuilder() .AddStyle("cursor", "auto", () => Transparent) - .AddStyle("background-color", $"rgba({_r}, {_g}, {_b}, {Opacity.ToString()!.Replace(',', '.')})", () => !Transparent) + .AddStyle("background-color", string.Create(CultureInfo.InvariantCulture, $"rgba({_r}, {_g}, {_b}, {Opacity})"), () => !Transparent) //.AddStyle("opacity", Opacity.ToString()!.Replace(',', '.'), CheckCSSVariableName().IsMatch(BackgroundColor)) .AddStyle("cursor", "default", () => !Transparent) .AddStyle("position", FullScreen ? "fixed" : "absolute") @@ -55,7 +55,7 @@ public partial class FluentOverlay : IAsyncDisposable .AddStyle("align-items", Alignment.ToAttributeValue()) .AddStyle("justify-content", Justification.ToAttributeValue()) .AddStyle("pointer-events", "none", () => Interactive) - .AddStyle("z-index", $"{ZIndex.Overlay}") + .AddStyle("z-index", ZIndex.Overlay.ToString(CultureInfo.InvariantCulture)) .Build(); ///