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

Multiple modals on the page #16

Open
alexandrursu opened this issue Sep 1, 2017 · 2 comments
Open

Multiple modals on the page #16

alexandrursu opened this issue Sep 1, 2017 · 2 comments

Comments

@alexandrursu
Copy link

alexandrursu commented Sep 1, 2017

If we try too use Multiple modals on the page there is an overlay issue. All popups use overlay from the latest popup in the DOM. It's causing big problems ... probably to solve this issue we need to change id's for overlays as well

@allenhwkim
Copy link
Contributor

This is by design not to use multiple modals like the same as browser alert or confirm. I don't see it as a big problem. I see opening multiple modals could be more chaotic.

@alexandrursu
Copy link
Author

So, we had a case where 3 modals were implemented, in navigation, in body and footer, this makes popup use only the latest overlay from the DOM.

To fix the problem I have added classes to each modal and then add following CSS to the container styles:

.popup-container {
  &.your-class {
    position: fixed;
    left: 50%;
    z-index: 999999999;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants