diff --git a/ionic/components/list/modes/material.scss b/ionic/components/list/modes/material.scss index fe1cfa4b66..a08a83aa6d 100644 --- a/ionic/components/list/modes/material.scss +++ b/ionic/components/list/modes/material.scss @@ -2,13 +2,19 @@ // Material Design List // -------------------------------------------------- -$list-md-header-padding: 16px $item-md-padding-right 16px $item-md-padding-left !default; +$list-md-margin-top: 16px !default; +$list-md-margin-right: 0 !default; +$list-md-margin-bottom: 16px !default; +$list-md-margin-left: 0 !default; +$list-md-header-padding: 0 $item-md-padding-right 16px $item-md-padding-left !default; $list-md-header-font-size: 1.4rem !default; $list-md-header-color: #858585 !default; .list[mode=md] { + margin: $list-md-margin-top $list-md-margin-right $list-md-margin-bottom $list-md-margin-left; + ion-header { padding: $list-md-header-padding; font-size: $list-md-header-font-size; @@ -16,3 +22,7 @@ $list-md-header-color: #858585 !default; } } + +.list[mode=md] + .list ion-header { + margin-top: -$list-md-margin-top; +} diff --git a/ionic/components/list/test/headers-footers/e2e.ts b/ionic/components/list/test/headers/e2e.ts similarity index 100% rename from ionic/components/list/test/headers-footers/e2e.ts rename to ionic/components/list/test/headers/e2e.ts diff --git a/ionic/components/list/test/headers-footers/index.ts b/ionic/components/list/test/headers/index.ts similarity index 100% rename from ionic/components/list/test/headers-footers/index.ts rename to ionic/components/list/test/headers/index.ts diff --git a/ionic/components/list/test/headers-footers/main.html b/ionic/components/list/test/headers/main.html similarity index 58% rename from ionic/components/list/test/headers-footers/main.html rename to ionic/components/list/test/headers/main.html index a4f8787634..98bfda4eef 100644 --- a/ionic/components/list/test/headers-footers/main.html +++ b/ionic/components/list/test/headers/main.html @@ -26,6 +26,16 @@ +
+ +
+ Home +
+
+ Where the heart is +
+
+ @@ -44,6 +54,16 @@ +
+ +
+ Star status +
+
+ Super +
+
+
@@ -72,4 +92,32 @@ +
+ +
+ Wine +
+
+ All the time +
+
+ +
+ + + +
+ +
+ New List, no header, Item 1 +
+
+ +
+ +
+ New List, no header, Item 2 +
+
+