alexbeletsky / ng-notifications-bar

Angular.js component for stylish and flexible top bar notifications.
http://beletsky.net/ng-notifications-bar
149 stars 52 forks source link

Is there an option to customize the background color of various notification types? #43

Open roymj88 opened 8 years ago

roymj88 commented 8 years ago

Hi,

Is there a way to add custom color/ class to the various notification options?

notifications.showError({
    message: 'Oops! Something bad just happened! (hides faster)',
    hideDelay: 1500, //ms
    hide: true //bool
    class: "custom-class" // With this, i could give different color schemes.
});

p.s: I love the color scheme, but this would standout way too much in my current application and hence i would love to have a feature where the class could be altered so that it can be tonned down a bit.

Cheers. Roy

alexbeletsky commented 8 years ago

Hey @roymj88, the easiest way is simply to override existing classes, with colors you need https://github.com/alexbeletsky/ng-notifications-bar/blob/master/css/ngNotificationsBar.css

alexbeletsky commented 8 years ago

I also like the idea of class as options, I'll be happy if you submit PR :)

kmhigashioka commented 8 years ago

I made a PR for this :)