Skip to content

Commit 46be648

Browse files
CopilotLipata
andcommitted
Add demo section showing tabs without content functionality
Co-authored-by: Lipata <[email protected]>
1 parent 80fb0cd commit 46be648

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/app/tabs-showcase/tabs-showcase.sample.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,35 @@
4242
}
4343
</igc-tabs>
4444
</div>
45+
46+
<div class="sample-wrapper">
47+
<strong>Tabs without content (test for fix)</strong>
48+
<p>These tabs have headers but no content - clicking should still allow selection</p>
49+
<igx-tabs>
50+
<igx-tab-item>
51+
<igx-tab-header>
52+
<igx-icon igxTabHeaderIcon>info</igx-icon>
53+
<span igxTabHeaderLabel>View 1</span>
54+
</igx-tab-header>
55+
<!-- No igx-tab-content -->
56+
</igx-tab-item>
57+
<igx-tab-item [selected]="true">
58+
<igx-tab-header>
59+
<igx-icon igxTabHeaderIcon>settings</igx-icon>
60+
<span igxTabHeaderLabel>View 2</span>
61+
</igx-tab-header>
62+
<!-- No igx-tab-content -->
63+
</igx-tab-item>
64+
<igx-tab-item>
65+
<igx-tab-header>
66+
<igx-icon igxTabHeaderIcon>help</igx-icon>
67+
<span igxTabHeaderLabel>View 3</span>
68+
</igx-tab-header>
69+
<!-- No igx-tab-content -->
70+
</igx-tab-item>
71+
</igx-tabs>
72+
<p><small>✅ After the fix, clicking any tab header should select it even without content</small></p>
73+
</div>
4574
</div>
4675

4776
<ng-template #customControlsTemplate>

0 commit comments

Comments
 (0)