-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Feature request:
Add an option to specify a class name, style URL or someone means of styling the element wrapping an md-snackbar.
What is the expected behavior?
Allow users to make snack bars different colors, or sizes if they need that flexibility.
What is the current behavior?
The component placed into an md-snackbar is wrapped in a container. This container has a dark background and a preset size. The inner component cannot style it's parent due to style encapsulation.
What are the steps to reproduce?
Show a snack bar using the mdSnackbar service.
What is the use-case or motivation for changing an existing behavior?
On my platform we use snack bars as part of our error handling. When an error occurs we would like to display a snack bar with a warning color to offer an affordable that an error occured.
Which versions of Angular, Material, OS, browsers are affected?
All
Is there anything else we should know?
Nope