Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(list): consecutive inset lists with headers
Browse files Browse the repository at this point in the history
manucorporat committed Oct 2, 2016
1 parent 3a75eb4 commit b31a426
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/list/list.ios.scss
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ $list-ios-header-background-color: transparent !default;
margin: 0 auto;
}

.list-ios + ion-list ion-list-header {
.list-ios:not([inset]) + ion-list ion-list-header {
margin-top: -$list-ios-margin-top;
padding-top: 0;
}
12 changes: 11 additions & 1 deletion src/components/list/test/inset/main.html
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@

<ion-content class="outer-content">

<ion-list inset>
<ion-list inset no-lines>

<ion-list-header>
Inset List Header
@@ -47,6 +47,16 @@

</ion-list>

<ion-list inset no-lines>
<ion-list-header>
List header 2
</ion-list-header>
<ion-item>
<ion-icon name="list" item-left></ion-icon>
item 1
<ion-icon name="arrow-forward" item-right></ion-icon>
</ion-item>
</ion-list>

<ion-list inset>

0 comments on commit b31a426

Please sign in to comment.