Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to modify Toast CSS #1012

Open
shubham-bajaj opened this issue Jan 22, 2024 · 1 comment
Open

Unable to modify Toast CSS #1012

shubham-bajaj opened this issue Jan 22, 2024 · 1 comment

Comments

@shubham-bajaj
Copy link

const toastrConfig: Partial = {
closeButton: true,
progressBar: true,
timeOut: 10000,
toastClass: 'yourclass ngx-toastr'
// toastClass: 'custom-toastr',
// other configuration options...
};
.yourclass.toast-error{
background-color: blue !important;
}
can you please explain me why this is not working? am i doing anything wrong?

@adeniranjohn
Copy link

Did you import the ToastModule.forRoot() with the toastConfig(toast configuration) to your AppModule or thereabout.

I just tested using your details with the latest version@18.0.0 and it works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants