-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
fix fade animation for toast #27792
fix fade animation for toast #27792
Conversation
I think it is nice to have animation when showing too. |
I'm a bit mix matched about that 🤔 IMO a toast should be visible ASAP so the animation will slower the display |
Yes, let's allow the same approach as modal. https://getbootstrap.com/docs/4.1/components/modal/#remove-animation |
it work as the same of our Modal plugin, if you remove the |
I'm following Johann here. Toasts & modals both have a different purpose. |
@Johann-S, can you also remove the toasts from the DOM like we do with the alerts (https://deploy-preview-27792--twbs-bootstrap4.netlify.com/docs/4.1/components/alerts/#dismissing)? The problem with not removing them is that there's a margin above the second toast if we dismiss the first: https://deploy-preview-27792--twbs-bootstrap4.netlify.com/docs/4.1/components/toasts/#stacking |
The major OS's notification UI components have animation when display.
It is OK that there is no animation at default, but it should be allowed customization IMO. |
Ow, I like that customizable idea! |
Maybe we should merge this and make it customizable in a another PR? |
@XhmikosR, this is still an issue: #27792 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #27792 (comment)
@MartijnCuppens Not a blocker to me, at least. |
Removing from DOM will be handled in other ticket (#27807)
The customization of the show animation can be tackled in an other PR, so we should merge this one, except if you have any other concerns ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
If every UI item has fade-in animation, but toast doesn't, you'll get the clunky feeling. On the other side, 300ms animation is hardly a delay that would break the world, especially in the web app that already deals with latency because it may be waiting for API response, pooling the backend for events, using features like |
Alert don't have fade-in animation too. I don't understand your second point 😟 The animation delay can be changed but I don't think it's what you mean 🤔 |
My point is: web applications are not always realtime, most events are signalized to user with delay, so thinking that component animation is a problem is misguided. ;) |
Oh ok now I understand 👍 |
Fixes: #27779