diff --git a/ionic/components/app/typography.scss b/ionic/components/app/typography.scss index e4843e315d..1f13d585ec 100644 --- a/ionic/components/app/typography.scss +++ b/ionic/components/app/typography.scss @@ -36,9 +36,13 @@ h1, h2, h3, h4, h5, h6 { line-height: $headings-line-height; margin-top: 1.6rem; margin-bottom: 1rem; +} - &:first-child { - margin-top: -0.3rem; +[padding] { + h1, h2, h3, h4, h5, h6 { + &:first-child { + margin-top: -0.3rem; + } } } diff --git a/ionic/components/searchbar/test/floating/main.html b/ionic/components/searchbar/test/floating/main.html index 54a5199fef..27eecacf83 100644 --- a/ionic/components/searchbar/test/floating/main.html +++ b/ionic/components/searchbar/test/floating/main.html @@ -1,5 +1,5 @@ -
Search - Default
+
Search - Default