Skip to content

Commit 2303c16

Browse files
committed
fix(item): sliding item works with and without borders
closes #7081
1 parent 19a8670 commit 2303c16

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

src/components/item/item-sliding.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,14 @@ ion-item-sliding.active-slide {
8383
}
8484

8585
&.active-options-left ion-item-options[side=left] {
86+
width: 100%;
87+
8688
visibility: visible;
8789
}
8890

8991
&.active-options-right ion-item-options:not([side=left]) {
92+
width: 100%;
93+
9094
visibility: visible;
9195
}
9296
}
@@ -102,13 +106,6 @@ ion-item-sliding.active-slide {
102106
transition-timing-function: cubic-bezier(.65, .05, .36, 1);
103107
}
104108

105-
ion-item-sliding.active-swipe-right,
106-
ion-item-sliding.active-swipe-left {
107-
ion-item-options {
108-
width: 100%;
109-
}
110-
}
111-
112109
ion-item-sliding.active-swipe-right .button-expandable {
113110
order: 1;
114111

src/components/item/test/sliding/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ <h2>Normal button (no sliding)</h2>
221221
</ion-list>
222222

223223

224-
<ion-list>
224+
<ion-list no-lines>
225225
<ion-item-sliding *ngFor="let data of items" #item9>
226226
<ion-item text-wrap detail-push>
227227
<h3>ng-for {{data}}</h3>

src/components/list/list.ios.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ ion-list[inset] + ion-list[inset] {
182182
ion-list[no-lines],
183183
&.hairlines ion-list[no-lines] {
184184
ion-list-header,
185+
ion-item-options,
185186
.item,
186187
.item .item-inner {
187188
border-width: 0;

src/components/list/list.md.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ ion-list {
6363
left: 0;
6464
}
6565

66+
ion-item-options {
67+
border-bottom: 1px solid $list-md-border-color;
68+
}
69+
6670
ion-item-options button,
6771
ion-item-options [button] {
6872
display: inline-flex;
@@ -143,6 +147,7 @@ ion-list[inset] {
143147

144148
ion-list[no-lines] {
145149
.item,
150+
ion-item-options,
146151
.item .item-inner {
147152
border-width: 0;
148153
}

0 commit comments

Comments
 (0)