Skip to content

Commit d8ff3ac

Browse files
committed
feat(badge): adding new tab button with badge use case.
1 parent d50c383 commit d8ff3ac

File tree

1 file changed

+66
-5
lines changed

1 file changed

+66
-5
lines changed

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

Lines changed: 66 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
<ion-list-header>
5252
<ion-label> Inside Avatar </ion-label>
5353
</ion-list-header>
54+
5455
<div class="ion-display-flex ion-align-items-center ion-justify-content-around ion-margin">
5556
<ion-avatar size="xxsmall">
5657
<img src="/src/components/avatar/test/avatar.svg" />
@@ -105,11 +106,11 @@
105106
</div>
106107
</ion-list>
107108

108-
109109
<ion-list id="tab-button">
110110
<ion-list-header>
111-
<ion-label> Inside Tab Button </ion-label>
111+
<ion-label> Inside Tab Button - Top Icon </ion-label>
112112
</ion-list-header>
113+
113114
<div class="ion-display-flex ion-align-items-center ion-justify-content-around ion-margin">
114115
<ion-tab-bar>
115116
<ion-tab-button href="" tab="tab-one">
@@ -139,7 +140,6 @@
139140
</ion-tab-button>
140141
</ion-tab-bar>
141142
</div>
142-
143143
<div class="ion-display-flex ion-align-items-center ion-justify-content-around ion-margin">
144144
<ion-tab-bar>
145145
<ion-tab-button href="" tab="tab-one">
@@ -169,11 +169,72 @@
169169
</ion-tab-button>
170170
</ion-tab-bar>
171171
</div>
172+
</ion-list>
172173

173-
174+
<ion-list id="tab-button-icon-bottom">
175+
<ion-list-header>
176+
<ion-label> Inside Tab Button - Bottom Icon </ion-label>
177+
</ion-list-header>
174178

175-
</ion-list>
179+
<div class="ion-display-flex ion-align-items-center ion-justify-content-around ion-margin">
180+
<ion-tab-bar>
181+
<ion-tab-button href="" tab="tab-one" layout="icon-bottom">
182+
<ion-label>Tab One</ion-label>
183+
<ion-icon name="star"></ion-icon>
184+
<ion-badge size="xxsmall" vertical="top" color="danger">9</ion-badge>
185+
</ion-tab-button>
186+
187+
<ion-tab-button tab="schedule" class="e2eTabTwoButton" layout="icon-bottom">
188+
<ion-label>Tab Two</ion-label>
189+
<ion-icon name="globe"></ion-icon>
190+
<ion-badge size="xxsmall" vertical="top" color="primary">
191+
<ion-icon name="star"></ion-icon>
192+
</ion-badge>
193+
</ion-tab-button>
194+
195+
<ion-tab-button tab="tab-three" layout="icon-bottom">
196+
<ion-label>Tab Three</ion-label>
197+
<ion-icon name="logo-facebook"></ion-icon>
198+
<ion-badge size="xxsmall" vertical="top" color="warning">999</ion-badge>
199+
</ion-tab-button>
200+
201+
<ion-tab-button tab="tab-four" class="e2eTabFourButton" layout="icon-bottom">
202+
<ion-label>Tab Four</ion-label>
203+
<ion-icon name="chatbox"></ion-icon>
204+
<ion-badge size="xxsmall" vertical="top" color="success"></ion-badge>
205+
</ion-tab-button>
206+
</ion-tab-bar>
207+
</div>
208+
<div class="ion-display-flex ion-align-items-center ion-justify-content-around ion-margin">
209+
<ion-tab-bar>
210+
<ion-tab-button href="" tab="tab-one" layout="icon-bottom">
211+
<ion-label>Tab One</ion-label>
212+
<ion-icon name="star"></ion-icon>
213+
<ion-badge size="xxsmall" vertical="bottom" color="danger">9</ion-badge>
214+
</ion-tab-button>
176215

216+
<ion-tab-button tab="schedule" class="e2eTabTwoButton" layout="icon-bottom">
217+
<ion-label>Tab Two</ion-label>
218+
<ion-icon name="globe"></ion-icon>
219+
<ion-badge size="xxsmall" vertical="bottom" color="primary">
220+
<ion-icon name="star"></ion-icon>
221+
</ion-badge>
222+
</ion-tab-button>
223+
224+
<ion-tab-button tab="tab-three" layout="icon-bottom">
225+
<ion-label>Tab Three</ion-label>
226+
<ion-icon name="logo-facebook"></ion-icon>
227+
<ion-badge size="xxsmall" vertical="bottom" color="warning">999</ion-badge>
228+
</ion-tab-button>
229+
230+
<ion-tab-button tab="tab-four" class="e2eTabFourButton" layout="icon-bottom">
231+
<ion-label>Tab Four</ion-label>
232+
<ion-icon name="chatbox"></ion-icon>
233+
<ion-badge size="xxsmall" vertical="bottom" color="success"></ion-badge>
234+
</ion-tab-button>
235+
</ion-tab-bar>
236+
</div>
237+
</ion-list>
177238
</ion-content>
178239
</ion-app>
179240
</body>

0 commit comments

Comments
 (0)