Blazor Isolated CSS not working
I have a Blazor app in InteractiveAuto mode and isolated css stopped working. I am not sure when it stopped working or what I changed. The attributes of the affected html elements are generated correctly. The generated css file contains the following:
I don't believe that the isolated css file is relevant since I tried removing all css I added myself, but I will provide it anyway:
3 Replies
The file is named
MainLayout.razor.css
and is contained within the same folder as MainLayout.razor
:
apparently the @import 'ChemStore.Web.Client.bundle.scp.css';
is not the problem. Ive never worked with css (or html or blazor) before, so I didnt know that
I still do not know what the issue was but i fixed it by copying the little code i wrote and pasting it into a new project... I'd still be happy to hear why it was not working anywaycheck the csproj file and see if the path for the css file is in a remove tag
I've had that cause issues with blank blazor templates where it auto removes .razor.css files
couldn't have been the problem since the html had the attributes
so it did in some capacity detect the isolated css