HubSpot / messenger

Growl-style alerts and messages for your app. #hubspot-open-source
http://github.hubspot.com/messenger/
MIT License
4.03k stars 408 forks source link

Can't override the theme on a single message? #126

Open gregveres opened 6 years ago

gregveres commented 6 years ago

Hi,

I have a single theme set for my application but now I am running into a situation where I want to use a lighter theme (air) for a different type of message. Since I am using typescript, I pulled in the typing file and it indicates that you can set theme: during a post. But when I try it, the message always comes out in the theme I have set in the Messenger options call for the page.

I tried it on the demo site (http://github.hubspot.com/messenger/docs/welcome/) as well and it didn't work there either.

is this supposed to work:

Messenger().post({
    message: "email draft autosaved", hideAfter: 1, type: "success", showCloseButton: false, theme: 'ice'
})

Or is that not a feature?

Thanks

akhzarjaved commented 3 years ago

This haven't answered yet ?