moff / angular2-flash-messages

Angular 2 flash messages module
52 stars 21 forks source link

Custom CSS not taking effect #28

Open redeemefy opened 7 years ago

redeemefy commented 7 years ago

I created a login component for my app. I'm adding a simple css rule to the login-user.component.css file to play around with the module.

.flash-messages {
    background-color: blue;
}

That simple rule is not taking any effect. I'm guessing that the module is imported correctly since the alert is showing on click and I can change messages and timeout. It is something else I need to do to make this work?

amar1995 commented 6 years ago

Same problem in my case. Any improvement is made to latest version ???

dduraeso commented 6 years ago

You need to put the css rules into the styles.css file for them to work.