Skip to content

Commit 31f62e7

Browse files
committedJun 9, 2016
fix(item): change ion-item-swiping to use .item-wrapper css instead
1 parent e5473b6 commit 31f62e7

9 files changed

+17
-16
lines changed
 

‎src/components/card/card.ios.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ion-card {
5959
}
6060

6161
> .item:last-child,
62-
> ion-item-sliding:last-child .item {
62+
> .item-wrapper:last-child .item {
6363
border-bottom: 0;
6464
}
6565

‎src/components/card/card.md.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ion-card {
6161
}
6262

6363
> .item:last-child,
64-
> ion-item-sliding:last-child .item {
64+
> .item-wrapper:last-child .item {
6565
border-bottom: 0;
6666
}
6767

‎src/components/card/card.wp.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ion-card {
6262
}
6363

6464
> .item:last-child,
65-
> ion-item-sliding:last-child .item {
65+
> .item-wrapper:last-child .item {
6666
border-bottom: 0;
6767
}
6868

‎src/components/item/item-sliding.ts

+1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export class ItemSliding {
197197
constructor(@Optional() private _list: List, private _renderer: Renderer, private _elementRef: ElementRef) {
198198
_list.enableSlidingItems(true);
199199
_elementRef.nativeElement.$ionComponent = this;
200+
_renderer.setElementClass(_elementRef.nativeElement, 'item-wrapper', true);
200201
}
201202

202203

‎src/components/item/item.ios.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ ion-item-group {
201201
}
202202

203203
.item:last-child .item-inner,
204-
ion-item-sliding:last-child .item-inner {
204+
.item-wrapper:last-child .item-inner {
205205
border: 0;
206206
}
207207
}

‎src/components/item/item.md.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ ion-item-group {
192192
}
193193

194194
.item:last-child .item-inner,
195-
ion-item-sliding:last-child .item-inner {
195+
.item-wrapper:last-child .item-inner {
196196
border: 0;
197197
}
198198
}

‎src/components/list/list.ios.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ ion-list {
4747
}
4848

4949
> .item:last-child,
50-
> ion-item-sliding:last-child .item {
50+
> .item-wrapper:last-child .item {
5151
border-bottom: 1px solid $list-ios-border-color;
5252
}
5353

5454
> .item:last-child,
55-
> ion-item-sliding:last-child {
55+
> .item-wrapper:last-child {
5656
.item-inner {
5757
border-bottom: 0;
5858
}
@@ -126,7 +126,7 @@ ion-list + ion-list {
126126
}
127127

128128
> .item:last-child,
129-
> ion-item-sliding:last-child .item {
129+
> .item-wrapper:last-child .item {
130130
border-bottom-width: $hairlines-width;
131131
}
132132
}
@@ -156,12 +156,12 @@ ion-list[inset] {
156156
}
157157

158158
> .item:first-child,
159-
> ion-item-sliding:first-child .item {
159+
> .item-wrapper:first-child .item {
160160
border-top: 0;
161161
}
162162

163163
> .item:last-child,
164-
> ion-item-sliding:last-child .item {
164+
> .item-wrapper:last-child .item {
165165
border-bottom: 0;
166166
}
167167
}

‎src/components/list/list.md.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ ion-list {
4242
}
4343

4444
> .item:first-child,
45-
> ion-item-sliding:first-child .item {
45+
> .item-wrapper:first-child .item {
4646
border-top: 1px solid $list-md-border-color;
4747
}
4848

4949
> .item:last-child,
50-
> ion-item-sliding:last-child .item {
50+
> .item-wrapper:last-child .item {
5151
border-bottom: 1px solid $list-md-border-color;
5252
}
5353

5454
> .item:last-child,
55-
> ion-item-sliding:last-child {
55+
> .item-wrapper:last-child {
5656
ion-label,
5757
.item-inner {
5858
border-bottom: 0;

‎src/components/list/list.wp.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ ion-list {
4242
}
4343

4444
> .item:first-child,
45-
> ion-item-sliding:first-child .item {
45+
> .item-wrapper:first-child .item {
4646
border-top: 1px solid $list-wp-border-color;
4747
}
4848

4949
> .item:last-child,
50-
> ion-item-sliding:last-child .item {
50+
> .item-wrapper:last-child .item {
5151
border-bottom: 1px solid $list-wp-border-color;
5252
}
5353

5454
> .item:last-child,
55-
> ion-item-sliding:last-child {
55+
> .item-wrapper:last-child {
5656
ion-label,
5757
.item-inner {
5858
border-bottom: 0;

0 commit comments

Comments
 (0)
Please sign in to comment.