HTML Elements › Forums › Toast › Default color
Tagged: angular toast, custom elements, notification, smart elements, smart html elements, smart-toast, toast, web components
This topic contains 2 replies, has 2 voices, and was last updated by Michael20 8 months, 4 weeks ago.
Could you, please, tell me how to change the default color (light blue) of the toast element? I would like it to be green in order to notify successful operation.
Best regards, Mike
To do this, you just have to set element’s type property to “success”: <smart-toast type="success">Successful operation!!!</smart-toast>
<smart-toast type="success">Successful operation!!!</smart-toast>
You can use several “type” options to style easily the element – “info”, “warning”, “success”, “error”, “mail”, “time”.
Best Regards, Ivailo Ivanov
Smart HTML Elements Team https://www.htmlelements.com
Thanks, Ivailo, it works!
You must be logged in to reply to this topic.