You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added example on how to style todos notification snack bar...
The gist of it is that it is an overlay component (similar to menu popup or dialog) so the popup part ( the notification itself ) is added to the end of the DOM tree just before closing </body> tag. This means that the layout doesn't belong to the todos component itself and has to be styled using global styles in todos.component.scss-theme.scss with global css class selector .todos-notification-overlay which was passed in configuration of the snack-bar.
Hope that helps!
That being said, I consider snack-bar pretty lacking in terms of customization and would be in favor of using custom notification service ( in CoreModule ) and corresponding NotificationComponent which will implement stuff like severity (eg info, warn, error, success ) and more complex action handling...
Also noticed that there is no theme applied to SnackBars when used.
The text was updated successfully, but these errors were encountered: