mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00

committed by
Brandy Carney

parent
47ed69e7a4
commit
ace727e627
@ -15,6 +15,9 @@ $chip-button-size: 32px !default;
|
|||||||
/// @prop - Border radius of the icon in the chip
|
/// @prop - Border radius of the icon in the chip
|
||||||
$chip-icon-border-radius: 50% !default;
|
$chip-icon-border-radius: 50% !default;
|
||||||
|
|
||||||
|
/// @prop - Text alignment of the icon in the chip
|
||||||
|
$chip-icon-text-align: center !default;
|
||||||
|
|
||||||
/// @prop - Width and height of the icon in the chip
|
/// @prop - Width and height of the icon in the chip
|
||||||
$chip-icon-size: 32px !default;
|
$chip-icon-size: 32px !default;
|
||||||
|
|
||||||
@ -56,6 +59,7 @@ ion-chip ion-icon {
|
|||||||
|
|
||||||
font-size: $chip-icon-font-size;
|
font-size: $chip-icon-font-size;
|
||||||
line-height: $chip-icon-size;
|
line-height: $chip-icon-size;
|
||||||
|
text-align: $chip-icon-text-align;
|
||||||
}
|
}
|
||||||
|
|
||||||
ion-chip ion-avatar {
|
ion-chip ion-avatar {
|
||||||
|
@ -93,4 +93,14 @@
|
|||||||
</button>
|
</button>
|
||||||
</ion-chip>
|
</ion-chip>
|
||||||
|
|
||||||
|
<ion-item>
|
||||||
|
<ion-label>Chip Item</ion-label>
|
||||||
|
<ion-chip item-right #chip1>
|
||||||
|
<ion-icon name="pin" color="primary"></ion-icon>
|
||||||
|
<ion-label>Default</ion-label>
|
||||||
|
<button ion-button clear color="light" (click)="delete(chip1)">
|
||||||
|
<ion-icon name="close-circle"></ion-icon>
|
||||||
|
</button>
|
||||||
|
</ion-chip>
|
||||||
|
</ion-item>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
Reference in New Issue
Block a user