-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Mobile] Create cover block with only colour (from a default palette) without an image #23833
[Mobile] Create cover block with only colour (from a default palette) without an image #23833
Conversation
Thank you for the feedback @geriux . I agree with both your suggestions. |
71fec99
to
0cbe0c1
Compare
packages/block-editor/src/components/media-placeholder/index.native.js
Outdated
Show resolved
Hide resolved
Thank you for the review @geriux . I agree with both your suggestions and pushed the changes. |
0ec00f0
to
5812607
Compare
5812607
to
a152a4a
Compare
Hello @iamthomasbishop 👋 , |
Looks great! The empty block at first seems a bit tall (probably just because we're used to seeing shorter block placeholders), but I think the benefit of having it at the same size as its default application height is worth it. Unrelated side note for @geriux I'm thinking we should perform a compact notice event when a block is added to the canvas. I don't know if we want to add that as part of this work or via a separate ticket -- perhaps we should create a new one as an audit to document where/when we want to add these notices. |
Hello @iamthomasbishop and @chipsnyder 👋 , @iamthomasbishop Would it be ok to drop the black/white colors of the initial requirement and use just the theme colors in order to cover the case @chipsnyder reported above? |
Yea, that is fine. |
packages/block-editor/src/components/media-placeholder/index.native.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice work @antonis! Tested it on both iOS and Android as well as the demo app.
Hello @iamthomasbishop 👋 , The last two PRs of this feature are not ready yet. Specifically:
Should we ship this feature up to this point in Monday's release or revert it to ship it as a whole in the next release? cc @pinarol |
I'd be okay with shipping initially without those two things (custom color and the additional add-media button), assuming we can add these things in the next release or two. |
Fixes #23831 (parent wordpress-mobile/gutenberg-mobile#2275)
Related PRs:
Description
A palette with four colours (black, white and a couple of theme defaults) has been added bellow the Add Media Button. When the user taps on a colour indicator the block is created with the selected colour as background.
The latest design can be found here.
How has this been tested?
Screenshots
Types of changes
Enhancement
Checklist: