-
Notifications
You must be signed in to change notification settings - Fork 929
Open
Description
Is your feature request related to a problem? Please describe.
When using <RadzenTheme> with custom themes in Razor Class Library (RCL) scenarios, there's no way to specify where the CSS files are located. The component hardcodes the CSS path to /css/ for non-embedded themes, causing 404 errors when CSS files are served from a different location (e.g., _content/MyPackage/css/).
Describe the solution you'd like
Add a CssPath parameter to the RadzenTheme component to allow specifying a custom CSS directory for custom themes:
<RadzenTheme Theme="mytheme"
Wcag="true"
CssPath="_content/MyPackage/css" />This would allow RCL authors to bundle custom theme CSS files in their package and specify where they're located.
[Parameter] public string? CssPath { get; set; }
private string Path => Embedded
? "_content/Radzen.Blazor/css"
: (!string.IsNullOrEmpty(CssPath) ? CssPath : "css");Best regards
Metadata
Metadata
Assignees
Labels
No labels