Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Core/DesignTokens/DesignToken.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ public DesignToken()
/// <summary>
/// Constructs an instance of a DesignToken.
/// </summary>
public DesignToken(IJSRuntime jsRuntime)
public DesignToken(IJSRuntime jsRuntime, LibraryConfiguration libraryConfiguration)
{
JSRuntime = jsRuntime;
LibraryConfiguration = libraryConfiguration;
}

/// <inheritdoc/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public void GenerateSource(SourceProductionContext context, string? assemblyName
sb.AppendLine($"\t/// Constructs an instance of the {name} design token");
sb.AppendLine("\t/// </summary>");
sb.AppendLine("\t/// <param name=\"jsRuntime\">IJSRuntime reference</param>");
sb.AppendLine($"\tpublic {name}(IJSRuntime jsRuntime) : base(jsRuntime)");
sb.AppendLine("\t/// <param name=\"libraryConfiguration\">LibraryConfiguration reference</param>");
sb.AppendLine($"\tpublic {name}(IJSRuntime jsRuntime, LibraryConfiguration libraryConfiguration) : base(jsRuntime, libraryConfiguration)");
sb.AppendLine("\t{");
sb.AppendLine($"\t\tName = Constants.{name};");
sb.AppendLine("\t}");
Expand Down