Skip to content

Commit 293d49c

Browse files
committed
feat(badge): Adding sample section when inside tab button.
1 parent 53e64e6 commit 293d49c

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

core/src/components/badge/test/hint/index.html

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,73 @@
9797
<ion-badge color="danger" size="large" vertical="bottom"></ion-badge>
9898
</ion-avatar>
9999
</div>
100+
</div>
101+
102+
103+
<ion-list id="tab-button">
104+
<ion-list-header>
105+
<ion-label> Inside Tab Button </ion-label>
106+
</ion-list-header>
107+
<div class="ion-display-flex ion-align-items-center ion-justify-content-around ion-margin">
108+
109+
<ion-tab-button href="" tab="tab-one">
110+
<ion-label>Tab One</ion-label>
111+
<ion-icon name="star"></ion-icon>
112+
<ion-badge vertical="top" color="danger">9</ion-badge>
113+
</ion-tab-button>
114+
115+
<ion-tab-button tab="schedule" class="e2eTabTwoButton">
116+
<ion-label>Tab Two</ion-label>
117+
<ion-icon name="globe"></ion-icon>
118+
<ion-badge vertical="top" color="primary">
119+
<ion-icon name="star"></ion-icon>
120+
</ion-badge>
121+
</ion-tab-button>
122+
123+
<ion-tab-button tab="tab-three">
124+
<ion-label>Tab Three</ion-label>
125+
<ion-icon name="logo-facebook"></ion-icon>
126+
<ion-badge vertical="top" color="warning">999</ion-badge>
127+
</ion-tab-button>
128+
129+
<ion-tab-button tab="tab-four" class="e2eTabFourButton">
130+
<ion-label>Tab Four</ion-label>
131+
<ion-icon name="chatbox"></ion-icon>
132+
<ion-badge vertical="top" color="success"></ion-badge>
133+
</ion-tab-button>
134+
135+
</div>
136+
<div class="ion-display-flex ion-align-items-center ion-justify-content-around ion-margin">
137+
138+
<ion-tab-button href="" tab="tab-one">
139+
<ion-label>Tab One</ion-label>
140+
<ion-icon name="star"></ion-icon>
141+
<ion-badge vertical="bottom" color="danger">9</ion-badge>
142+
</ion-tab-button>
143+
144+
<ion-tab-button tab="schedule" class="e2eTabTwoButton">
145+
<ion-label>Tab Two</ion-label>
146+
<ion-icon name="globe"></ion-icon>
147+
<ion-badge vertical="bottom" color="primary">
148+
<ion-icon name="star"></ion-icon>
149+
</ion-badge>
150+
</ion-tab-button>
151+
152+
<ion-tab-button tab="tab-three">
153+
<ion-label>Tab Three</ion-label>
154+
<ion-icon name="logo-facebook"></ion-icon>
155+
<ion-badge vertical="bottom" color="warning">999</ion-badge>
156+
</ion-tab-button>
157+
158+
<ion-tab-button tab="tab-four" class="e2eTabFourButton">
159+
<ion-label>Tab Four</ion-label>
160+
<ion-icon name="chatbox"></ion-icon>
161+
<ion-badge vertical="bottom" color="success"></ion-badge>
162+
</ion-tab-button>
163+
164+
</div>
165+
</div>
166+
100167
</ion-list>
101168
</ion-content>
102169
</ion-app>

0 commit comments

Comments
 (0)