Skip to content
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

Add application stylesheet link to _Layout.cshtml #184

Closed
ChrisDoernen opened this issue Aug 9, 2022 · 2 comments
Closed

Add application stylesheet link to _Layout.cshtml #184

ChrisDoernen opened this issue Aug 9, 2022 · 2 comments

Comments

@ChrisDoernen
Copy link

I experienced the problem that CSS isolation was not working after I created an app using MudBlazor templates, by running dotnet new mudblazor --host server--name MyApplication as described in the getting started guide.

As I have not much experience with Blazor, it took a too much time finding out that the line <link href="MyApplication.styles.css" rel="stylesheet" /> is "missing", compared to what the dotnet new blazorserver command does.

I guess to add the stylesheet link statement in the head section in the _Layout.cshtml for Blazor Server apps should be fairly easy. If I find some time, I'd be happy to see if I can provide a PR.

MudBlazor is just awesome!

@ChrisDoernen
Copy link
Author

I see that the application name in the stylesheet filename would have to be replaced with the user input from the command somehow... I can not find another place where that is done so far.

@ChrisDoernen
Copy link
Author

Sorry guys, this duplicates #42

Should have scanned through the issues first.

@ChrisDoernen ChrisDoernen closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant