From ccd109dfee1e3724c6c6ce860085bea640a7c17b Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Mon, 2 Nov 2015 15:43:00 -0500 Subject: [PATCH] refactor(toolbar): added the ability to add a search bar or segment in toolbar Removed ion-segments dependency on being in the ion-title as this should be for text only. References #356 --- ionic/components/segment/segment.scss | 1 + ionic/components/segment/test/basic/main.html | 60 +++++++++---------- ionic/components/toolbar/toolbar.ts | 2 +- 3 files changed, 29 insertions(+), 34 deletions(-) diff --git a/ionic/components/segment/segment.scss b/ionic/components/segment/segment.scss index 454970a783..a3ef84d259 100644 --- a/ionic/components/segment/segment.scss +++ b/ionic/components/segment/segment.scss @@ -7,6 +7,7 @@ $segment-button-padding: 0 16px !default; ion-segment { display: block; + width: 100%; } .ion-segment { diff --git a/ionic/components/segment/test/basic/main.html b/ionic/components/segment/test/basic/main.html index 3b4d5cc857..f692f8f488 100644 --- a/ionic/components/segment/test/basic/main.html +++ b/ionic/components/segment/test/basic/main.html @@ -1,14 +1,12 @@ - - - - Friends - - - Enemies - - - + + + Friends + + + Enemies + + @@ -17,16 +15,14 @@ - - - - Something - - - Else - - - + + + Something + + + Else + + @@ -87,17 +83,15 @@ - - - - Paid - - - Free - - - Top Grossing - - - + + + Paid + + + Free + + + Top Grossing + + diff --git a/ionic/components/toolbar/toolbar.ts b/ionic/components/toolbar/toolbar.ts index 8d7b5bdacb..78fdccde4f 100644 --- a/ionic/components/toolbar/toolbar.ts +++ b/ionic/components/toolbar/toolbar.ts @@ -60,7 +60,7 @@ export class ToolbarBase extends Ion { template: '
' + '' + - '' + + '' + '' + '' + '
' +