diff --git a/src/components/card/card.ios.scss b/src/components/card/card.ios.scss index e2814af51a..aded02b555 100644 --- a/src/components/card/card.ios.scss +++ b/src/components/card/card.ios.scss @@ -59,7 +59,7 @@ ion-card { } > .item:last-child, - > ion-item-sliding:last-child .item { + > .item-wrapper:last-child .item { border-bottom: 0; } diff --git a/src/components/card/card.md.scss b/src/components/card/card.md.scss index 29bc246c33..415869daae 100644 --- a/src/components/card/card.md.scss +++ b/src/components/card/card.md.scss @@ -61,7 +61,7 @@ ion-card { } > .item:last-child, - > ion-item-sliding:last-child .item { + > .item-wrapper:last-child .item { border-bottom: 0; } diff --git a/src/components/card/card.wp.scss b/src/components/card/card.wp.scss index 26c12c7041..4b805fc3ea 100644 --- a/src/components/card/card.wp.scss +++ b/src/components/card/card.wp.scss @@ -62,7 +62,7 @@ ion-card { } > .item:last-child, - > ion-item-sliding:last-child .item { + > .item-wrapper:last-child .item { border-bottom: 0; } diff --git a/src/components/item/item-sliding.ts b/src/components/item/item-sliding.ts index 4b835a2da7..ba11cb3ae4 100644 --- a/src/components/item/item-sliding.ts +++ b/src/components/item/item-sliding.ts @@ -197,6 +197,7 @@ export class ItemSliding { constructor(@Optional() private _list: List, private _renderer: Renderer, private _elementRef: ElementRef) { _list.enableSlidingItems(true); _elementRef.nativeElement.$ionComponent = this; + _renderer.setElementClass(_elementRef.nativeElement, 'item-wrapper', true); } diff --git a/src/components/item/item.ios.scss b/src/components/item/item.ios.scss index 4701917f37..be7f4effde 100644 --- a/src/components/item/item.ios.scss +++ b/src/components/item/item.ios.scss @@ -201,7 +201,7 @@ ion-item-group { } .item:last-child .item-inner, - ion-item-sliding:last-child .item-inner { + .item-wrapper:last-child .item-inner { border: 0; } } diff --git a/src/components/item/item.md.scss b/src/components/item/item.md.scss index bacff0715d..03586296cd 100644 --- a/src/components/item/item.md.scss +++ b/src/components/item/item.md.scss @@ -192,7 +192,7 @@ ion-item-group { } .item:last-child .item-inner, - ion-item-sliding:last-child .item-inner { + .item-wrapper:last-child .item-inner { border: 0; } } diff --git a/src/components/list/list.ios.scss b/src/components/list/list.ios.scss index 09187c1b47..8fea4238b0 100644 --- a/src/components/list/list.ios.scss +++ b/src/components/list/list.ios.scss @@ -47,12 +47,12 @@ ion-list { } > .item:last-child, - > ion-item-sliding:last-child .item { + > .item-wrapper:last-child .item { border-bottom: 1px solid $list-ios-border-color; } > .item:last-child, - > ion-item-sliding:last-child { + > .item-wrapper:last-child { .item-inner { border-bottom: 0; } @@ -126,7 +126,7 @@ ion-list + ion-list { } > .item:last-child, - > ion-item-sliding:last-child .item { + > .item-wrapper:last-child .item { border-bottom-width: $hairlines-width; } } @@ -156,12 +156,12 @@ ion-list[inset] { } > .item:first-child, - > ion-item-sliding:first-child .item { + > .item-wrapper:first-child .item { border-top: 0; } > .item:last-child, - > ion-item-sliding:last-child .item { + > .item-wrapper:last-child .item { border-bottom: 0; } } diff --git a/src/components/list/list.md.scss b/src/components/list/list.md.scss index 986ff7fdb8..4b7018d77c 100644 --- a/src/components/list/list.md.scss +++ b/src/components/list/list.md.scss @@ -42,17 +42,17 @@ ion-list { } > .item:first-child, - > ion-item-sliding:first-child .item { + > .item-wrapper:first-child .item { border-top: 1px solid $list-md-border-color; } > .item:last-child, - > ion-item-sliding:last-child .item { + > .item-wrapper:last-child .item { border-bottom: 1px solid $list-md-border-color; } > .item:last-child, - > ion-item-sliding:last-child { + > .item-wrapper:last-child { ion-label, .item-inner { border-bottom: 0; diff --git a/src/components/list/list.wp.scss b/src/components/list/list.wp.scss index e2bb3664cf..e32ddf3d07 100644 --- a/src/components/list/list.wp.scss +++ b/src/components/list/list.wp.scss @@ -42,17 +42,17 @@ ion-list { } > .item:first-child, - > ion-item-sliding:first-child .item { + > .item-wrapper:first-child .item { border-top: 1px solid $list-wp-border-color; } > .item:last-child, - > ion-item-sliding:last-child .item { + > .item-wrapper:last-child .item { border-bottom: 1px solid $list-wp-border-color; } > .item:last-child, - > ion-item-sliding:last-child { + > .item-wrapper:last-child { ion-label, .item-inner { border-bottom: 0;