Unable to change Dialog Style

UI Components for Angular
Post Reply
ammarkhan91
Posts: 35
Joined: 22 Apr 2016, 23:22

23 Apr 2016, 12:31

One of my Angular component render a Dialog but I want to change it's z-index. And for that I wanted to change the z-index for the class 'ui-dialog'. So I have a component specific style sheet file, and in there I write a below rule that doesn't seems to be working. Please suggest

.ui-dialog {
z-index: 9999 !important;
}

ammarkhan91
Posts: 35
Joined: 22 Apr 2016, 23:22

23 Apr 2016, 23:56

Any help on this would be appreciated. If more detail required, please let me know.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Apr 2016, 07:59

Z-index is a dynamic property that is increased everytime an overlay is shown to display one top of other one so can't be a constant. Initial is 1000.

ammarkhan91
Posts: 35
Joined: 22 Apr 2016, 23:22

24 Apr 2016, 12:36

I see, so how could I fix my problem? I have a grid on my main page and there is a button to add new record. When click the dialog appear but it's header is not visible, and that can be fix by setting the z-index. Please check the below image

http://imgur.com/cTqivC9

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

26 Apr 2016, 20:14

What is the z-index of your topbar in your app, the black bar? I think it is more than 1000 right? Try making it 999.

ammarkhan91
Posts: 35
Joined: 22 Apr 2016, 23:22

26 Apr 2016, 23:35

Yes, that was the problem. Thanks so much.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

26 Apr 2016, 23:37

Good to hear, thank you.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests