Update UX for quick order list mobile view #3733
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary:
Updates quick order list mobile view to hide the
remove allbutton if the product has no variants in the cart, and display the loading spinner for pending requests.Why are these changes introduced?
Found this behavior while testing V15.3.0 release and it seemed unexpected, confirmed desired behavior with @Oliviammarcello from UX. From the existing code it looks like this was the original intent and probably just got missed at some point.
Note there is a layout shift when the button is shown/hidden. Olivia and I paired and determined the layout shift is preferable to maintaining the spacing, since (1) that makes it seem like the component padding is incorrect and (2) we already have a layout shift when going through the remove all flow already.
Before
https://screenshot.click/26-59-n5ou5-3gs0f.mp4
After
https://screenshot.click/26-57-n82jf-ggk7a.mp4
Demo links
Checklist