Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for additional CSS class on paper-toast #820

Merged
merged 2 commits into from
Sep 27, 2017

Conversation

pauln
Copy link
Contributor

@pauln pauln commented Sep 19, 2017

Due to paper-toast being tagless and wormholing the paper-toast-inner component, the class attribute needs to be passed through in order to allow additional CSS classes to be specified on the md-toast element. Additionally, the paperToaster service should support a toastClass option (see AM's $mdToast.simple() documentation) do that toasts opened using the service can each have their own additional classes.

I've updated the paperToaster demo in a separate commit, so that you can choose whether to demo it or not.

Adds support for supplying additional CSS classes on paper-toasts, including via the `toastClass` option in the `paper-toaster` service.
Includes some additional (S)CSS to set the toast background colour when md-accent or md-warn class is applied.
@xomaczar
Copy link
Contributor

@miguelcobain thoughts? I also have a need for something like that?

@miguelcobain miguelcobain merged commit 2a97df8 into miguelcobain:master Sep 27, 2017
@miguelcobain
Copy link
Owner

This is perfect. Thank you and sorry for the delay.
Closes #829.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants