-
Notifications
You must be signed in to change notification settings - Fork 37
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
Sheet component's closing animation is missing #68
Comments
I took a look at the source code for solid-ui's sheet component and I think I've figured out why. Currently there is only the animate-in effect of twindcss-animate. The animate-out effect is missing。 The expand and close effects of the sheet component above shadcn/ui are controlled by the data-* property selector. But soliid-ui's sheet component's primitive component is kobalte/Dialog, and its data-* attribute parameter is not explicitly given a value. So even if you add something like shadcn/ui's data-[epanded=true]: animatie-in, it won't work. |
I think I would be interested in solving this problem and contributing a pr... 😃 Do you have a better suggestion? @sek-consulting |
@declanchiu please do :) I need to fix this for my current project and would appreciate it! |
@declanchiu If you want to contribute feel free to do so :) I just merged the big changes back into the main branch so you can use that as a base without any worries. |
Thank you for your efforts @sek-consulting I'll try to fix this. 😄 |
Ok, I'll try to fix this, thanks for using solid-ui! 😄 |
https://www.solid-ui.com/docs/components/sheet |
I realized that the closing animation of the Sheet component is missing. The sheet component in shadcn/ui has a collapsing effect when it is closed.
The text was updated successfully, but these errors were encountered: