From 4d57ccf2ef72c885f8dbba6c7c1a95fc6c85e83c Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 2 Oct 2019 11:42:17 -0400 Subject: [PATCH] fix(searchbar): update padding and button alignment fixes #19502 --- .../searchbar/test/toolbar/index.html | 36 ++++++++++++------- core/src/components/toolbar/toolbar.ios.scss | 8 +++-- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/core/src/components/searchbar/test/toolbar/index.html b/core/src/components/searchbar/test/toolbar/index.html index 46d54b66a31..cebf95934a4 100644 --- a/core/src/components/searchbar/test/toolbar/index.html +++ b/core/src/components/searchbar/test/toolbar/index.html @@ -16,70 +16,82 @@ + + Undo + Searchbar - Toolbar + + Clear + + + Undo + + + Clear + -
Search - Transparent Toolbar
+
Search - Transparent Toolbar
-
Search - Default Toolbar
+
Search - Default Toolbar
-
Search - Primary Toolbar
+
Search - Primary Toolbar
-
Search - Secondary Toolbar
+
Search - Secondary Toolbar
-
Search - Tertiary Toolbar
+
Search - Tertiary Toolbar
-
Search - Success Toolbar
+
Search - Success Toolbar
-
Search - Warning Toolbar
+
Search - Warning Toolbar
-
Search - Danger Toolbar
+
Search - Danger Toolbar
-
Search - Light Toolbar
+
Search - Light Toolbar
-
Search - Medium Toolbar
+
Search - Medium Toolbar
-
Search - Dark Toolbar
+
Search - Dark Toolbar
-
Search - Dark Toolbar, Primary Search
+
Search - Dark Toolbar, Primary Search
diff --git a/core/src/components/toolbar/toolbar.ios.scss b/core/src/components/toolbar/toolbar.ios.scss index 02f5649e33e..642fe16f646 100644 --- a/core/src/components/toolbar/toolbar.ios.scss +++ b/core/src/components/toolbar/toolbar.ios.scss @@ -38,7 +38,7 @@ // -------------------------------------------------- :host(.toolbar-searchbar) .toolbar-container { - @include padding(0); + @include padding(0, null); } // TODO - important is needed because searchbar is scoped @@ -47,12 +47,14 @@ height: 52px !important; padding-top: 1px !important; - padding-right: 16px !important; padding-bottom: 15px !important; - padding-left: 16px !important; /* stylelint-enable */ } +:host(.toolbar-searchbar) ::slotted(ion-buttons) { + align-self: start; +} + // iOS Toolbar Slot Placement // --------------------------------------------------