Wow i just got it
- display your modal with custom css like normal
const modal = await this.modalCtrl.create({
component: CustomModalPage,
cssClass: 'custom-modal'
});
await modal.present()
- create your custom css class for the modal
variable.scss
: root {
...
.custom-modal .modal-wrapper {
//modal positioning can be custom
//but needs the following
background: transparent !important;
}
}
- Finally remove the
edge
attribute from the fab, move the fab outside the<ion-content>
, and adjust the ion-content styling:
ion-content {
top: 44px; //ion-fab height
}
this achieved the following: