When a user logs out, I am using snackBar to display a message. I want to change the color of the panel from dark grey to another color and tried using the following solution:
panelClass: ['danger']
supposed to change the panel color to red ('danger'). However, this method does not work as intended:
message: string = 'You Have Logged out.';
open() {
this.snackBar.open(this.message, '', {
duration: 2000,
panelClass: ['danger'],
});
}
Does anyone know how I can change the panel color to something different?