I had created the ionic popup. Created a popover page and added action on button click to display popover from home page. but iam unable to change the width of the popover. below is the code;
home.page.html:
<ion-content> <ion-button expand="full" (click)="openPopover($Event)">Open popover</ion-button> </ion-content> home.page.ts:
async openPopover(ev: Event) { const popover = await this.popoverController.create({ component:PopoverPage, componentProps: { custom_id: this.value }, }); popover.present(); } popover.page.html:
<ion-content> <ion-list> <ion-item> this is popover </ion-item> <ion-item button color="danger" (click) = "closePopover()"> <ion-icon name="close" slot="start"></ion-icon> Close Popover </ion-item> </ion-list> </ion-content> popover.page.ts:
closePopover() { this.popoverController.dismiss(); } please assist me how can i change the width of the popover as i tried adding custom css to the ion-content of the popover page but its not working.