HubSpot / messenger

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

Extra classes for actions and close button #82

Closed ardoramor closed 9 years ago

ardoramor commented 10 years ago

Although the examples show that you can bind events to actions with classes, the code does not support assignment of classes to actions. It would be good to add extraClasses parameter to per-action configuration. Also, extra classes for the close button.

geekjuice commented 9 years ago

Is there a particular use case you would need extraClasses? If it's for styling purposes, you could access each element via [data-action="{action}"] and the close button via [data-dismiss="alert"]. Other than that, adding extra classes to every portion of a Messenger dialog seems like overkill and added complexity.