-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Styling of toasts send to ToastProvider #5922
Comments
It is a good feature to have, at least for |
@Herdo If you have any other ideas for styling, or new options, please give your proposals. |
@stsrki The only other thing I can think about right now is overriding the icon as well, in case you use a different icon library and want a consistent look. I'm good with the |
Good idea with the Icon. Thanks. |
@stsrki Wouldn't it be wiser to provide full customization right away? Not by passing all the parameters (because customizations aren't just about parameters), but rather by passing a Passing just |
What would RenderFragment do? |
That would be the
something like that... |
I would not go that route. The idea is to use ToastService as a simple API to show notifications. It is best to just stick with the options parameters to customize the appearance and behavior of the toast. |
@Herdo what do you mean by "overriding the icon"? Can you check the source and let me know what is the intended result of that line of code? |
The idea is to provide IconName as part of the options. And if defined we will override what is used by default. |
Is your feature request related to a problem? Please describe.
I am trying to do customize the styling of the toast messages created with the
ToastProvider
andIToastService
, but there are currently no options to style them at all.Describe the solution you'd like
The minimum would be optional css classes that could be passed along when using the
IToastService
methods.Additional context
I think it would be enough to have the additional class(es) on the toast itself, not the header and body.
The css rules would allow for styling those as well.
The text was updated successfully, but these errors were encountered: