mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-04 03:48:13 +08:00
- define padding space for ionic tab-button;
- guarantee hover and focus occupies the height; - when has a status-badge the top position should be always the same; - add example with tab-buttons without label;
This commit is contained in:
@ -366,6 +366,38 @@
|
||||
</div>
|
||||
</ion-list>
|
||||
|
||||
<ion-list id="tab-button-icon-bottom">
|
||||
<ion-list-header>
|
||||
<ion-label> Inside Tab Button - Only Icon </ion-label>
|
||||
</ion-list-header>
|
||||
|
||||
<div class="ion-display-flex ion-align-items-center ion-justify-content-around ion-margin">
|
||||
<ion-tab-bar>
|
||||
<ion-tab-button href="" tab="tab-one" layout="label-hide">
|
||||
<ion-icon name="home"></ion-icon>
|
||||
<ion-badge size="small" vertical="top" color="danger"></ion-badge>
|
||||
</ion-tab-button>
|
||||
|
||||
<ion-tab-button tab="schedule" class="e2eTabTwoButton" layout="label-hide">
|
||||
<ion-icon name="globe"></ion-icon>
|
||||
<ion-badge size="small" vertical="top" color="primary">
|
||||
<ion-icon name="star"></ion-icon>
|
||||
</ion-badge>
|
||||
</ion-tab-button>
|
||||
|
||||
<ion-tab-button tab="tab-three" layout="label-hide">
|
||||
<ion-icon name="logo-facebook"></ion-icon>
|
||||
<ion-badge size="small" vertical="top" color="warning">999</ion-badge>
|
||||
</ion-tab-button>
|
||||
|
||||
<ion-tab-button tab="tab-four" class="e2eTabFourButton" layout="label-hide">
|
||||
<ion-icon name="chatbox"></ion-icon>
|
||||
<ion-badge vertical="top" color="success" size="small"></ion-badge>
|
||||
</ion-tab-button>
|
||||
</ion-tab-bar>
|
||||
</div>
|
||||
</ion-list>
|
||||
|
||||
<ion-list id="button-top">
|
||||
<ion-list-header>
|
||||
<ion-label> Inside Button - Top Placement </ion-label>
|
||||
|
||||
@ -7,6 +7,11 @@
|
||||
:host {
|
||||
--focus-ring-color: #{globals.$ion-border-focus-default};
|
||||
--focus-ring-width: #{globals.$ion-border-radius-025};
|
||||
--padding-top: #{globals.$ion-space-100};
|
||||
--padding-end: #{globals.$ion-space-400};
|
||||
--padding-bottom: #{globals.$ion-space-100};
|
||||
--padding-start: #{globals.$ion-space-400};
|
||||
|
||||
|
||||
@include globals.typography(globals.$ion-body-action-xs);
|
||||
|
||||
@ -48,6 +53,7 @@
|
||||
|
||||
.button-native {
|
||||
min-width: globals.$ion-scale-1200;
|
||||
min-height: globals.$ion-scale-1200;
|
||||
|
||||
overflow: visible;
|
||||
|
||||
@ -108,10 +114,6 @@
|
||||
@include globals.position(-2px);
|
||||
}
|
||||
|
||||
:host ::slotted(ion-badge.badge-vertical-top:empty) {
|
||||
@include globals.position(calc(globals.$ion-scale-100 * -1));
|
||||
}
|
||||
|
||||
:host ::slotted(ion-badge.badge-vertical-bottom) {
|
||||
@include globals.position(calc(50% - globals.$ion-scale-200));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user