mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
refactor(item): added margin back in for ion-item-content and removed button tests and actions
references #279
This commit is contained in:
@ -81,11 +81,10 @@ $item-ios-sliding-content-bg: $list-ios-background-color !default;
|
||||
.item-inner {
|
||||
padding-right: ($item-ios-padding-right / 2);
|
||||
border-bottom: 1px solid $list-ios-border-color;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
[text-wrap] ion-item-content {
|
||||
padding: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom 0;
|
||||
ion-item-content {
|
||||
margin: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom 0;
|
||||
}
|
||||
|
||||
&.hairlines .item-inner {
|
||||
|
@ -75,12 +75,6 @@ ion-item-content {
|
||||
}
|
||||
}
|
||||
|
||||
.item[actions] {
|
||||
ion-item-content {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
[text-wrap] ion-item-content {
|
||||
white-space: normal;
|
||||
}
|
||||
|
@ -48,13 +48,6 @@
|
||||
</button>
|
||||
</ion-item>
|
||||
|
||||
<ion-item actions>
|
||||
<ion-item-content><button (click)="testClick($event)">Button 1</button></ion-item-content>
|
||||
<ion-item-content><button (click)="testClick($event)">Button 2</button></ion-item-content>
|
||||
<ion-item-content><button (click)="testClick($event)">Button 3</button></ion-item-content>
|
||||
<ion-item-content><button (click)="testClick($event)">Button 4</button></ion-item-content>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<button clear item-left (click)="testClick($event)">
|
||||
<icon navigate></icon>
|
||||
|
Reference in New Issue
Block a user