Skip to content

Commit

Permalink
Tabs: Setting Tab Class or Style does nothing #1027 (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvreddy04 authored Feb 11, 2025
1 parent 9c968f1 commit 2abb78f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blazorbootstrap/Components/Tabs/Tabs.razor
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="@TabContentCssClass">
@foreach (var t in tabs)
{
<div class="tab-pane @(EnableFadeEffect ? "fade" : "")" id="nav-@t.Id" role="tabpanel" aria-labelledby="@t.Id">
<div id="[email protected]" class="@BootstrapClass.TabPane @(EnableFadeEffect ? BootstrapClass.Fade : "") @t.Class" style="@t.Style" role="tabpanel" aria-labelledby="@t.Id">
@t.Content
</div>
}
Expand Down
2 changes: 2 additions & 0 deletions blazorbootstrap/Constants/BootstrapClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ public static class BootstrapClass

public const string Spinner = "spinner";

public const string TabPane = "tab-pane";

public const string TableResponsive = "table-responsive";
public const string TableSticky = "bb-table-sticky";

Expand Down

0 comments on commit 2abb78f

Please sign in to comment.