maui icon indicating copy to clipboard operation
maui copied to clipboard

Blazor Isolated CSS in Razor Component Library Ignored

Open marqdouj opened this issue 5 years ago • 3 comments

Discussed in https://github.com/dotnet/maui/discussions/1968

Originally posted by marqdouj August 5, 2021 I've created a new Maui-Blazor app with the latest templates and added a razor class library. When I add an isolated *.css file to a razor component in the class library the css is ignored. If I copy the css to the app.css file it works fine. Is this by design?

marqdouj avatar Aug 07 '21 14:08 marqdouj

Hi @marqdouj thank you for reporting the issue. This was a bug and will be fixed in the upcoming preview 7 release.

Eilon avatar Aug 09 '21 16:08 Eilon

@marqdouj Could you try to add this to your index.html? <link href="_content/ProjectName/ProjectName.bundle.scp.css" rel="stylesheet" />

blazorin avatar Aug 11 '21 17:08 blazorin

Had the same issue on 6.0.100-rc.1.21458.32 but changed the Build Action from MauiCss to Content and it worked.

Unrelated but does anyone know how to access WinUICoreWebView2SettingsWrapper or similar? Need to enable the context menu while debugging

keeperman159 avatar Sep 16 '21 10:09 keeperman159