Conversation
- Remove the title - Make column number dynamic - Update width/height of icons - Update Button width/height - Update justifying to content behavior
debfeda to
858a17b
Compare
|
hey @iamthomasbishop could you go over the screenshots one last time? Especially the iPhone X ones, I applied safe area margins as an addition to already existing margins, I am not sure how they look actually. Thanks! |
|
@pinarol - Thanks for wrangling this!
This component has the style an behavior used in the Image block (and hopefully soon in the Links Settings too) |
|
@etoledom will try that, thanks! |
|
Let's wait till my BottomSheet update gets finished to review, I'll update the screenshots also. Currently labeling as not ready to review. |
|
Switching to BottomSheet turned out to be more troublesome than expected so @etoledom and I decided to ship that on a separate PR not to block this one. Removing the 'not ready to review' label. Let's keep on reviewing. |
|
This is looking really great, nice work @pinarol! This looks so close to the BottomSheet component that I just assumed it was using it 😄 I would also prefer that we use it if it's not a huge pain, because we get a bunch of wins as @etoledom mentioned in terms of sizing and constraints. A couple super tiny details that I'm curious about:
One more question: Where are we getting the block-type icons from? Are they dynamic, in that do they pull from somewhere or are we "hard-coding" them? Just curious as icons are/will be shifting a little bit over the next few months. |
etoledom
left a comment
There was a problem hiding this comment.
It looks super good! 🎉
There are a few visual/behavior details that can be fixed by using BottomSheet component, so those are not important for now. Let's focus on the buttons design and
after @iamthomasbishop's ✅
|
hey @iamthomasbishop 👋
It is 4, updating this as 8.
Normally without the safe area 12+6 = 18. 6 is the default bottom padding for each button item, 12 is the bottom padding of the container. But safe area brings an additional +34 in portrait mode and +21 in landscape mode. Here are some screenshots when I remove the extra 12 padding: Here are some screenshots when I remove that 18 padding completely: Which one do you prefer?
I am re-using what was already defined for common usage between web and mobile. I didn't hard code them so I think we'll be getting updates automatically. |
I prefer the last example (remove margin completely).
Perfect! 😄 |
- Update bottom padding for SafeArea screens - Update border-radius




Fix: #349
Some screenshots to demonstrate portrait/landscape modes for different number of items:
Resepecting Safe Area:
Android:
TO TEST
For WPiOS
Checkout the PRs branch to any arbitrary folder and cd .. to it
run yarn install, yarn start
Open XCode WPiOS on the latest develop
Clean build folder on Xcode, and then run the app
For WPAndroid
open grade.properties at WordPress-Android folder
add wp.BUILD_GUTENBERG_FROM_SOURCE = true to grade.properties
checkout the PRs branch in the subrepo of WordPress-Android repo
cd to WordPress-Android/libs/gutenberg-mobile
run yarn install, yarn start
yarn wpandroid on a separate terminal in the same directory
Test Steps: