Asridh Kumar
Asridh Kumar

Reputation: 525

Angular snack bar increasing z-index not working?

Scenario :

It is possible by changing any css-z-index things ?

Upvotes: 1

Views: 1200

Answers (2)

Dinesh Gurjar
Dinesh Gurjar

Reputation: 528

all of them is working for me.

::ng-deep .cdk-overlay-container {
  z-index: 10000 !important;
}

or

.cdk-overlay-container {
    z-index: 99999999999999; 
}

or

:host /deep/ .cdk-overlay-pane{
   z-index: 1000;
 }

Upvotes: 0

user4676340
user4676340

Reputation:

Again, RTFM !

panelClass: string | string[]         Extra CSS classes to be added to the snack bar container.

Provide this as the config to your snackbar (or override the provider in your own module to apply it to every snackbar), and set the z-index in your given class.

Upvotes: 1

Related Questions