Using latest Ionic/Angular, trying to make the segment stick up on the top when I have content below it that scrolls. I found online to use the slot=“fixed” parameter but then the ion-segment-button is transparent even though it stays on top. Is there an alternative to the slot fixed option that I could use? I’m guessing custom CSS but I have other segments that I wouldn’t want to change as their behaviour is fine as it is. Thanks!
<ion-content [fullscreen]="true" [scrollEvents]="true">
<ion-segment (ionChange)="segmentChanged($event)" value="dashboard" slot="fixed" color="primary">
<ion-segment-button value="dashboard">
<ion-label>Dashboard</ion-label>
</ion-segment-button>
<ion-segment-button value="details">
<ion-label>Details</ion-label>
</ion-segment-button>
</ion-segment>
<ion-grid *ngIf="segmentOption">
...
</ion-grid>
<ion-grid *ngIf="!segmentOption">
...
</ion-grid>
</ion-content>