APIs & Integrations

GNilli
Member

Alerts

SOLVE

Hi, I'm working with UI Extensions and i noticed what seems like a bug or something.
When i follow the steps to create an AddAlert, like here in the page https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-extensi... , it seems that i cannot change the color, or in this case the variant, of the Alert.
Every type that I try, its always shown as the green version (success) even if I change it to Danger or whatever it is.

0 Upvotes
1 Accepted solution
dsmarion
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Alerts

SOLVE

Are you using the variant to change the color?  Can you show your code?
I notice that the examples use "error" as the variant but I believe this is incorrect.  You can see below the variant to show the alert in red is "danger" not "error".  Try experimenting with these using "info", Warning", etc.

dsmarion_0-1759774911585.png

 

Scott Marion
Senior Developer @ Thread Connected Marketing

View solution in original post

0 Upvotes
1 Reply 1
dsmarion
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Alerts

SOLVE

Are you using the variant to change the color?  Can you show your code?
I notice that the examples use "error" as the variant but I believe this is incorrect.  You can see below the variant to show the alert in red is "danger" not "error".  Try experimenting with these using "info", Warning", etc.

dsmarion_0-1759774911585.png

 

Scott Marion
Senior Developer @ Thread Connected Marketing
0 Upvotes