-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some broken CSS after clean installation from the template #125
Comments
I noticed that the very last import in the |
Hi @arsinclair , yes, our tempalte is default to use CSS , and our online site is use Less, So it's possible that some CSS is broken. Would you like to take a look for us, please? |
I have tried @ElderJames do you know what could be the problem with default .css installation? Could you reproduce the problem? |
I think CSS isolation is a problem , they change children components in *.razor. CSS require ::deep, so CSS issues are a bit trickier when it comes to changing children component styles. However, the CSS generated by less files is global,so it's fine. |
Okay, so this is a bug in this repo, technically. Do you have any ideas why the login pages looks funny? |
Yikes! I went down the rabbit hole of digging what could be the issue. There's no problem with the template, but there's with the dotnet. According to https://docs.microsoft.com/en-us/aspnet/core/blazor/components/css-isolation?view=aspnetcore-6.0#css-isolation-bundling:
I checked if I have this file, and It is probably related to dotnet/templating#1168 and looks like the bug is still there, at least for some files like this, but I'm too tired to report it to Microsoft and carry the ticket through. If anyone wants to do it - the liberty is yours. With that being that, this is not a problem with this template, and for me personally the solution is to just rename the import to Thanks for your attention! |
But we still need to fix the styles so that the templates work out of the box. |
Yes, but it is not in our hands. The issue I'm experiencing is there for two reasons:
The best we can do on our side is to document this case and tell the users that a linking needs to be corrected manually. |
If there's another .css problem that I'm not aware of, maybe a separate issue should be created. When I fixed the linking between the .css and .html file in my project, I haven't experienced any other problems, neither with less, nor with default css-based projects. |
Ok, it's fine. 😀 |
When installing from this template
dotnet new antdesign -f -o projectname
, somehow the site looks a bit broken. It looks like some css may be missing.The same components on https://pro.antblazor.com look absolutely fine.
What could be the issue?
The text was updated successfully, but these errors were encountered: