Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ionic 4-beta] Popover conflicts with bootstrap 4 #15589

Closed
beginor opened this issue Sep 13, 2018 · 1 comment
Closed

[ionic 4-beta] Popover conflicts with bootstrap 4 #15589

beginor opened this issue Sep 13, 2018 · 1 comment
Assignees

Comments

@beginor
Copy link

beginor commented Sep 13, 2018

[ionic 4-beta] Popover conflicts with bootstrap 4

When using ionic and bootstrap, the Popover component's style is confict with Bootstrap's Popover.

They all use .popover class, but bootstrap has defined max-width border background-color, this cause ionic popover component miss behavior.

screen shot 2018-09-14 at 06 52 47

screen shot 2018-09-14 at 06 52 53

current fix is add custom class to override bootstrap's popover:

.ion-popover {
  max-width: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  background-color: transparent !important;
}
public async showPopover($event: Event): Promise<void> {
    const popover = await this.popoverCtl.create({
        component: PopoverComponent,
        componentProps: {},
        event: $event,
        showBackdrop: true,
        cssClass: 'ion-popover'
    });
    await popover.present();
    const result = await popover.onDidDismiss();
    console.log(result);
}
@ionitron-bot ionitron-bot bot added the triage label Sep 13, 2018
@manucorporat manucorporat self-assigned this Sep 14, 2018
@ionitron-bot ionitron-bot bot removed the triage label Sep 14, 2018
@ionitron-bot
Copy link

ionitron-bot bot commented Oct 14, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants