We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca082ad commit 34759b6Copy full SHA for 34759b6
2 files changed
src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor
@@ -6,4 +6,4 @@
6
{
7
<BootstrapLabel required="@Required" for="@Id" ShowLabelTooltip="ShowLabelTooltip" Value="@DisplayText" />
8
}
9
-<div @attributes="@AdditionalAttributes" id="@Id"></div>
+<div @attributes="@AdditionalAttributes" id="@Id" class="@ClassString"></div>
src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs
@@ -62,6 +62,11 @@ public partial class CherryMarkdown
62
[Parameter]
63
public string? Language { get; set; }
64
65
+ private string? ClassString => CssBuilder.Default("bb-cherry-markdown")
66
+ .AddClass(CssClass)
67
+ .AddClass(ValidCss)
68
+ .Build();
69
+
70
/// <summary>
71
/// <inheritdoc/>
72
/// </summary>
0 commit comments