yew-bootstrap icon indicating copy to clipboard operation
yew-bootstrap copied to clipboard

Add animation to Modal component?

Open danya02 opened this issue 2 years ago • 1 comments

Right now, the yew_bootstrap::component::Modal will appear and disappear without animation, while the JS Bootstrap component has an optional fade-and-slide effect. That effect will happen if the div.modal also has a .fade, and if this class is added to the HTML produced by component::Modal, it also works. Maybe there should be a property that allows using this behavior?

danya02 avatar Aug 13 '23 06:08 danya02

I agree with your proposal; it sounds like it would be pretty easy to implement. A boolean property which would trigger adding the "fade" class to the set of classes added to the modal. If we aren't using the appendable classes pattern for this component, we certainly are elsewhere in the project.

If you make a PR for this I'll be happy to merge it!

isosphere avatar Aug 13 '23 14:08 isosphere