-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
Description
Bug, feature request, or proposal:
Bug
What is the expected behavior?
When I supply a CSS class to snackbar via the extraClasses property, it should apply that class.
What is the current behavior?
The styles defined in that class are all overridden by other material styling.
What are the steps to reproduce?
In styles.css
:
.success-snackbar{
background-color: #FFF;
color: #AAA;
}
In my component:
this.snackBar.open("Hey", undefined, {
duration: 90000,
extraClasses: ['success-snackbar']
});
The class IS being applied when I look at it in the inspector, but both color
and background-color
are being overriden by other material styling.
What is the use-case or motivation for changing an existing behavior?
It isn't working.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.0.1
Material 2.0.0-beta.2
OS: macOS 10.12.4
Typescript: 2.2.2
Browsers: Chrome, Safari
Is there anything else we should know?
alialtun14 and AndreasSchmid1