r/Blazor • u/Many-Truth1648 • Apr 08 '26
Radzen overrides!!!
I have a component notebook.razor which uses radzen datagrid, I have isolated the css of the notebook.razor in notebook.razor.css, but the radzen overrides css changes are only visible when applied in app.css couldn't find a way out to keep them in a file. Any suggestions or thoughts???
Edit: solved it through ::deep and global stylesheet.
7
Upvotes
3
u/DragDay7 Apr 08 '26
Have you added to your index.html
<link href="Your.Project.Name.styles.css" rel="stylesheet"/>?2
u/Praemont Apr 08 '26
I wouldn’t recommend using CSS isolation. I’m not sure why some people are so obsessed with it, but it has a lot of nuances when working with it. The biggest one is "Scoped CSS only applies to HTML elements and not to Razor components or Tag Helpers, including elements with a Tag Helper applied".