Skip to content

Commit

Permalink
fix(item): regression in expandable sliding option button
Browse files Browse the repository at this point in the history
fixes #8460
  • Loading branch information
manucorporat committed Oct 6, 2016
1 parent ec6615d commit 695d25c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/item/item-sliding.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ ion-item-sliding.active-slide {
// Item Expandable Animation
// --------------------------------------------------

.button-expandable {
button[expandable] {
flex-shrink: 0;

transition-duration: 0;
transition-property: none;
transition-timing-function: cubic-bezier(.65, .05, .36, 1);
}

ion-item-sliding.active-swipe-right .button-expandable {
ion-item-sliding.active-swipe-right button[expandable] {
order: 1;

padding-left: 90%;
Expand All @@ -115,7 +115,7 @@ ion-item-sliding.active-swipe-right .button-expandable {
transition-property: padding-left;
}

ion-item-sliding.active-swipe-left .button-expandable {
ion-item-sliding.active-swipe-left button[expandable] {
order: -1;

padding-right: 90%;
Expand Down
2 changes: 1 addition & 1 deletion src/components/item/test/sliding/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h2>RIGHT side - no icons</h2>
<h2>LEFT side - no icons</h2>
<p>I think I figured out how to get more Mountain Dew</p>
</a>
<ion-item-options side="left" (ionSwipe)="del($event)" *ngIf="slidingEnabled">
<ion-item-options side="left" *ngIf="slidingEnabled">
<button ion-button color="primary" (click)="archive(item1)">Archive</button>
<button ion-button color="danger" (click)="del(item1)">Delete</button>
</ion-item-options>
Expand Down

0 comments on commit 695d25c

Please sign in to comment.