I want to disable background options while angular snackbar is being displayed. How to achieve this in angular 10?
Asked
Active
Viewed 584 times
-2
-
Does this answer your question? [Angular 5 and material - How to change the background color from SnackBar component](https://stackoverflow.com/questions/47560696/angular-5-and-material-how-to-change-the-background-color-from-snackbar-compon) – Andreas M. Apr 05 '21 at 06:47
1 Answers
1
Based on the answer here you have to add the panelClass
property to your snackBar configuration and set it to the CSS class which defines the background color.
To achieve your goal I assume you have to set the background class of your panelClass to transparent doing
.mycsssnackbartest {
background-color: transparent;
}

Andreas M.
- 36
- 5