-
Notifications
You must be signed in to change notification settings - Fork 219
Mini Cart Block: Move away from using Modal component #8606
Comments
Oh, thanks, I wasn't aware about that PR! @kmanijak shouldn't we move away completely from |
Eventually we should, but there are two "factors" that contribute to that:
|
Thanks for the detailed explanation, @kmanijak! It makes a lot of sense.
Did you think about the best approach for this specific case (the |
Days ago I would vote for option 3, but that was without much dive into how Mini Cart uses Modal. After recently taking a look at the Mini Cart layout and checking all the styles, I think it actually makes a lot of sense to re-implement it. Seems like we're not using much of the Modal functionality in Mini Cart anyway (even sliding animation is a Drawer's thing, not Modal's). Having said that... I think it's worth a try to implement Drawer without Modal (especially since it's only used by Mini Cart) 👍 To be honest, I'd be happy to work on this (but obviously after the Products work) |
Makes sense. The decision to use
Nice! We can leave this as low priority for now so Alba and I focus on other tasks. |
Heads-up that it looks like if Coblocks is active, the Drawer styles are broken. See #6874 (comment) from @danielwrobert. Moving away from the Drawer WP component would probably fix that. |
As per #8452, we want to stop using
@wordpress/components
in the frontend of our blocks. This PR is about stopping usingModal
in the Mini Cart block.The text was updated successfully, but these errors were encountered: