Hi, I´ve a custom component called searchtitle with this code: (ionic v3)
<ion-header>
<ion-navbar color="primary">
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title *ngIf="!searchBarOpened">mCard</ion-title>
<ion-buttons end>
<button ion-button icon-only (click)="searchBarOpened = true" *ngIf="!searchBarOpened">
<ion-icon name="search"></ion-icon>
</button>
</ion-buttons>
<ion-searchbar *ngIf="searchBarOpened" showCancelButton="true" (ionCancel)="searchBarOpened=false" color="primary"></ion-searchbar>
</ion-navbar>
</ion-header>
The component works and can be added and it is fully functional
Then I have a generated tab page ( ionic g tabs home )
home.html:
<searchtitle></searchtitle>
<ion-tabs tabsPlacement=top color="primary" tabsHighlight="true">
<ion-tab [root]="tab1Root" tabTitle="TAB1"></ion-tab>
<ion-tab [root]="tab2Root" tabTitle="TAB2"></ion-tab>
</ion-tabs>
The problem that I´m facing is that the header is overlapping the tabs, so the tabs are placed behind the header.
Any suggestion?.