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

feat(modal): change modal's z-index manually, without modifying the dist CSS #2331

Open
eestein opened this issue Aug 1, 2017 · 3 comments

Comments

@eestein
Copy link

eestein commented Aug 1, 2017

Hi, is it possible to change the modal's z-index? Currently I display some alerts (swal) after some actions on modals and also I have a datepicker. They're both hidden behind the modal.

Is there a way to manually lower the z-index of the modal without modifying the dist CSS?

Thanks

@BogalooDev
Copy link

BogalooDev commented Aug 8, 2017

Markup :
[style.z-index]="getZIndexValue()"
and component code :

 getZIndexValue(): number {
    if (this.datepicker.isShown) {     
      return 1040;
    }
    return 1050;

  }

@eestein
Copy link
Author

eestein commented Aug 8, 2017

@BogalooDev thanks, I am changing the z-index and a few other properties within my component's CSS. I'm just trying to avoid doing that...

.dropdown-menu {
    z-index: 2060 !important;
    top: 100% !important;
    bottom: auto !important;
    margin-top: 36px !important;
}

@valorkin
Copy link
Member

valorkin commented Oct 2, 2017

@eestein modals sucks cuz, any dynamic components will be invisible
I will have to find some way to over come this

@YevheniiaMazur YevheniiaMazur changed the title Change modal's z-index feat(modal): change modal's z-index manually, without modifying the dist CSS Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants