Mobile: BottomSheet design tweaks v2#13855
Conversation
|
Hey @marecar3 ! I added some extra commits to implement the picker design by Thomas. This is how it looks now on Android (while iOS has no visual changes): By default those changes fixed wordpress-mobile/gutenberg-mobile#597 And I also took the opportunity to fix: I updated the description with a new test step. |
|
Thanks for the update @etoledom. I will take a look :) |
|
@etoledom One thing I just thought about regarding the case where we're using the Bottom Sheet component as a replacement/equivalent to iOS Visual example:
Something to consider moving forward. |
packages/editor/src/components/mobile/bottom-sheet/cell.native.js
Outdated
Show resolved
Hide resolved
|
Thank you @marecar3 for the review and for the fix! |
* Mobile BottomSheet: Added the posibility of selecting the cell separator style. * Mobile BottomSheet: Increased space between top and table * Mobile BottomSheet: Truncating long values at the middle of the string. * Fix lint issues * Fix syntax error to pass CI * Fix lint issue * Mobile Picker: Tweak Android styles. * Mobile BottomSheet: Simplified Android cell styling. * Mobile: Fix swipe to dismiss on BottomSheet * Fix lint issues * Mobile BottomSheet: Fixes sensibility of pan vs tap gestures on swipe to dismiss. * Fix lint issues * Fixed failed tests * Mobile BottomSheet cell: Removed unnecessary variable init. * Fixed set state after component is unmounted * Revert "Fixed set state after component is unmounted" This reverts commit 787df73.
* Mobile BottomSheet: Added the posibility of selecting the cell separator style. * Mobile BottomSheet: Increased space between top and table * Mobile BottomSheet: Truncating long values at the middle of the string. * Fix lint issues * Fix syntax error to pass CI * Fix lint issue * Mobile Picker: Tweak Android styles. * Mobile BottomSheet: Simplified Android cell styling. * Mobile: Fix swipe to dismiss on BottomSheet * Fix lint issues * Mobile BottomSheet: Fixes sensibility of pan vs tap gestures on swipe to dismiss. * Fix lint issues * Fixed failed tests * Mobile BottomSheet cell: Removed unnecessary variable init. * Fixed set state after component is unmounted * Revert "Fixed set state after component is unmounted" This reverts commit 787df73.


Description
This PR improves the design of the BottomSheet following wordpress-mobile/gutenberg-mobile#535 .
Also added fixed for:
wordpress-mobile/gutenberg-mobile#597
wordpress-mobile/gutenberg-mobile#596
fullWidth,leftMargin, andnone. If it's not specified, it will behave as before.To test:
gutenberg-mobilePR (BottomSheet design tweaks v2 wordpress-mobile/gutenberg-mobile#594).Swipe: