Skip to content

Commit 2abb78f

Browse files
authored
Tabs: Setting Tab Class or Style does nothing #1027 (#1035)
1 parent 9c968f1 commit 2abb78f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

blazorbootstrap/Components/Tabs/Tabs.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<div class="@TabContentCssClass">
3434
@foreach (var t in tabs)
3535
{
36-
<div class="tab-pane @(EnableFadeEffect ? "fade" : "")" id="nav-@t.Id" role="tabpanel" aria-labelledby="@t.Id">
36+
<div id="[email protected]" class="@BootstrapClass.TabPane @(EnableFadeEffect ? BootstrapClass.Fade : "") @t.Class" style="@t.Style" role="tabpanel" aria-labelledby="@t.Id">
3737
@t.Content
3838
</div>
3939
}

blazorbootstrap/Constants/BootstrapClass.cs

+2
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ public static class BootstrapClass
138138

139139
public const string Spinner = "spinner";
140140

141+
public const string TabPane = "tab-pane";
142+
141143
public const string TableResponsive = "table-responsive";
142144
public const string TableSticky = "bb-table-sticky";
143145

0 commit comments

Comments
 (0)