Good morning. I have a popup that isn't inheriting the CSS classes from the App.razor file. All the regular pages are rending fine, but the popup is just plain HTML. I tried adding a reference to the MainLayout page (@layout LogicaRatio.Web.Components.Layout.MainLayout), but all I get is plain HTML (no formatting). Is there something special I have to do? This is how I pop the popup window:
public void PopCaseDetails(CaseEntity newItem)
{
string theHeader = "Edit Experts";
dialogService.Open<Pages.Popups.CaseDetails>(theHeader,
new Dictionary<string, object>() { { "CurrentCase", newItem } },
new DialogOptions() { Width = "1250px", Height = "700px" });
}
Thank you
I see. So there's no way to pass the references from MainLayout (or App.Razor) to the popups, right?
enchev
June 17, 2025, 9:09am
4
You can try the ::deep pseudo selector:
Hello,
I realized that the used controls on components do not inherit the CSS scope within a component. Did I miss any settings? I solved this problem by using the ::deep pseudo-selector, but for me, it looks more like a workaround.
Could you tell me if this behavior is by design or an issue?
Thanks,
Christian
Is there an example of how to add the selector to a file reference? I tried adding it to the link like they said () but it isn't helping. Thank you
Did you include the Radzen theme CSS? Check the getting started instructions .
Yes, but I'm using InteractiveServer:
<RadzenTheme Theme="material" @rendermode="InteractiveServer" />
Then try using your browser's dev tools to inspect the CSS applied to the dialog. And check if the theme CSS file has been loaded successfully.