From 93616c467697427db0e0c65a91818e84f80fbbb4 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Mon, 10 Oct 2016 15:46:45 +0200 Subject: [PATCH] fix(list): consecutive inset lists with headers fixes #8412 fixes #6164 --- src/components/list/list.ios.scss | 2 +- src/components/list/test/inset/main.html | 45 +++++++++++++++++------- 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/src/components/list/list.ios.scss b/src/components/list/list.ios.scss index c362b0886fc..b5327b76afb 100644 --- a/src/components/list/list.ios.scss +++ b/src/components/list/list.ios.scss @@ -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]) + .list-ios:not([inset]) ion-list-header { margin-top: -$list-ios-margin-top; padding-top: 0; } diff --git a/src/components/list/test/inset/main.html b/src/components/list/test/inset/main.html index 87ce25a3d90..68b72f90ed4 100644 --- a/src/components/list/test/inset/main.html +++ b/src/components/list/test/inset/main.html @@ -18,10 +18,10 @@ - + - Inset List Header + List Header 1 @@ -29,11 +29,6 @@ List Link Item 1 - - - List Link Item 2 - - Toggle @@ -44,18 +39,42 @@ - + + + - + + + List header 2 + + + + item 1 + + + + + List header 3 + + + + item 1 + + + + List header 4 + + + + item 1 + +