Skip to content

Blazor-Diagram elements in my page dom tree but not visible. #360

Closed Answered by flibbertigibbet-uk
flibbertigibbet-uk asked this question in Q&A
Discussion options

You must be logged in to vote

Now Fixed.

The CSS isolation bundling required a manual edit due to the unusual project structure of the MudBlazor Server template. In order to deliver the MyDiagram.razor.css to the browser I had to include the following link in _Layout.cshtml where the index.html page contents are declared.

<link href="MudBlazorDiagramTest.styles.css" rel="stylesheet" />

In another vanilla Blazor project I noticed that the VS2022 tooling had automatically included a css link for the isolated css.

There are many other online discussions about MudBlazor and CSS isolation, my solution might not be best practice but I am up and running.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by flibbertigibbet-uk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant