-
Notifications
You must be signed in to change notification settings - Fork 359
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
Bootstrap 5 Support #887
Comments
yeah thats a good idea. they have a toast component now too... |
@FrancescoBorzi got any solution for rgba($fill-color, 0.999999) + "' d='" + $path + "'/%3E%3C/svg%3E"; ? |
EDIT: So it seems, we've got to edit code like
EDIT 2: Please also see @gabrie-allaigre's comment below. EDIT 3: @golayp's comment below about using |
Hello, I was wondering if you had an update on the bug above? Thanks a lot for your help Fabienne |
hi @FaabLondon , I haven't tried it recently so no updates from my side |
Hello. I made this work with BS5. I created a gist of my setup. I wrote a post and have a github repo of this working. |
This is still broken. Would be great if support for Bootstrap 5 could be prioritised - it's been out for quite a few months now and it looks like the fix is relatively straightforward. |
@Eonasdan thanks - I had actually looked at your gist (not the blog post) - I can see I'd be able to get it working using your approach but I really don't want to add bloat to my project to work around an incompatibility issue - I don't actually have any pressing need to upgrade from Bootstrap 4 to 5 right now, it's just concerning when I'm locked into an old version of a major library like Bootstrap. If it doesn't get fixed in the next few months I'll probably make use of your approach. |
@mrsegen Thanks You have to add a multiplication to the level I create a gist file for toastr-bs5-alert.scss |
Thanks for doing that @gabrie-allaigre but I agree with @wwarby not so much on "bloat" but more of a Band-Aid approach here since we have to add the file to the node_modules folder and/or edit the package.json to include a reference to the file:
I was able to resolve the build issue. However, our build pipeline fails as do each of our devs because they don't have the change in their node_modules folder. So, I would have to keep this file in the project and figure out a way to point to it without having to change toastrs package.json. I haven't tested yet to see if we get what we need from these styles but we'll see. Just hoping an update is done soon so we don't have to keep managing these patched fixes. Thanks! Does anyone here have any idea when this will get resolved? We don't have the option to use Bootstrap < 5. I have "ngx-toastr": "^14.2.1" and "@angular/animations": "^13.2.3" in an angular 13.2.3 project and getting: Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): ./src/styles.scss - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): |
I found a small issue on your code, you should add !important to all color of text in toastr since they are not apply correctly and reder as white text |
@golayp thanks for sharing that that helped! My limited understanding is that there are cases when it is considered an unhealthy practice and that there are cases when |
I've update my gist : https://gist.github.com/golayp/cd6f5c7ab8b23096f8a9cc422d34d9cf to ensure links are colored correctly according to the type of toast |
Hi @scttcper my feeling about new bootstrap toast component is that it is too UX heavy (lots of borders), maybe to ensure a maximum features compatibility, but in most case a simple box with the correct color is sufficient. It's why I used ngx-toastr for a while with complet user adherence. |
Hey, @scttcper. Could you please let me know what's left here so that we have a toastr-bs5-alert.scss officially included in the package? I'm personally interested in this, so I could have a look as long as someone sums up the issues. |
any new updates on this ? i'm interested as well since this package is always in my projects |
I am also interested in fixing this issue, any news about this? |
We have the same problem, hoping a fix coming soon.. |
@scttcper do you need something from us to land this? Bootstrap 4 is close to EOL. |
Adding my voice to the chorus. |
🎉 This issue has been resolved in version 16.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@scttcper would it be possible to backport the bootstrap5 support in v14.x and v15.x too? |
@scttcper thanks! Something must've gone wrong with the NPM release tho. I installed 16.0.0 and To be sure, I removed my node_modules, did Could you have missed something? I would reopen the issue but it looks like I can't.
Thank you! |
Thanks, I see now that it's fixed in 16.0.1. |
@siovene @scttcper The issue is indeed fixed in 16.0.1, but on the other hand ngx-toastr 16.0.1 throws errors when used with angular versions prior to v15. Does it work for you on angular v13 or v14 projects? Steps to reproduce:
|
latest version only works with 15 see the table https://github.com/scttcper/ngx-toastr#dependencies @mikeandtherest |
@scttcper That's what I figured before the table was updated. But still, ngx-toastr 15.2.2 doesn't have this issue fixed, i.e. toastr-bs4-alert.scss is still with errors and I can't import toastr-bs5-alert.scss, since it's not found. So unless I'm migrating to angular 15 (which is not possible unfortunately on our project), I'm out of ideas on how I can use the fix from ngx-toastr 16.0.1 on an angular 14 project. |
Just copy paste the css |
hey @scttcper, I am still facing the same issue even after updating to version 16.0.0 . I am using angular 15 |
My app is running with
ngx-toastr
version14.0.0
and Bootstrap 4.I use
toastr-bs4-alert.scss
and it works nicely.If I try to update it to Bootstrap 5, I get:
More info about my system:
The text was updated successfully, but these errors were encountered: