Is there a way to customize the style (color, font-size, height) of lighting toast?
I'm trying with css but have no success.
Is there a way to customize the style (color, font-size, height) of lighting toast?
I'm trying with css but have no success.
Best Answer
Based on your comments, as you are using
force:showToast
, you won't be able to custom style the component. The Specification tab on the documentation provides the attributes that you can utilize for the look and feel of the component which is mainly usingkey
,mode
andtype
attributes.You will need to create a custom toast message based on SLDS for your use case where you can utilize custom CSS.