Skip to content

Commit

Permalink
fix(toolbar): place iOS border on ion-header/footer
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jun 18, 2016
1 parent 8be0a9f commit 48c1ffd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/content/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ export class Content extends Ion {
this._scrollEle.style.paddingBottom = (this._paddingBottom > 0 ? this._paddingBottom + 'px' : '');
}

if (this._tabbarOnTop && this._tabs) {
if (this._tabbarOnTop !== null && this._tabs) {
if (this._tabbarOnTop) {
this._tabs.setTabbarPosition(this._headerHeight, -1);

Expand Down
2 changes: 1 addition & 1 deletion src/components/searchbar/test/toolbar/main.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ion-header>

<ion-navbar>
<ion-title>Test</ion-title>
<ion-title>Searchbar Toolbars</ion-title>
</ion-navbar>

</ion-header>
Expand Down
28 changes: 21 additions & 7 deletions src/components/toolbar/toolbar.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,44 @@ $navbar-ios-height: $toolbar-ios-height !default;
}


// iOS Toolbar Background
// iOS Header Toolbar
// --------------------------------------------------

.toolbar-background {
ion-header {
border: 0;
border-bottom-width: 1px;
border-style: solid;
border-color: $toolbar-ios-border-color;
background: $toolbar-ios-background;
}

&.hairlines .toolbar-background {
&.hairlines ion-header {
border-bottom-width: $hairlines-width;
}

.toolbar[position=bottom] .toolbar-background {

// iOS Footer Toolbar
// --------------------------------------------------

ion-footer {
border: 0;
border-top-width: 1px;
border-bottom-width: 0;
border-style: solid;
border-color: $toolbar-ios-border-color;
}

&.hairlines .toolbar[position=bottom] .toolbar-background {
&.hairlines ion-footer {
border-top-width: $hairlines-width;
}


// iOS Toolbar Background
// --------------------------------------------------

.toolbar-background {
background: $toolbar-ios-background;
}


// iOS Toolbar Content
// --------------------------------------------------

Expand Down

0 comments on commit 48c1ffd

Please sign in to comment.