Skip to content

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

@gregveres

Description

@gregveres

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions