-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Adds featured image toggle to media replace flow #41476
Adds featured image toggle to media replace flow #41476
Conversation
Size Change: +175 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
I find it confusing that when the featured image option is selected the other options aren't visible. There's a few reasons that I find it confusing:
|
I agree. What if we have the selected state active but keep the other "Open Media Library" and "Upload" present. And when you upload an image, or select from the media library, the This way, if the featured image is being used, you don't have to turn it off to use the other controls. But adding a separate image would make the Cover block use the new image instead of the featured image. |
@scruffian Yea, I'll spin off a diff PR to explore a pressed state for menu items that is less confusing. To be fair, the mockups in #40156 are cool and nice I only tried this PR with the simplest approach to get a hands on experience of moving that to the dropdown. @richtabor yep, I'll see that option in this PR 👏🏻 |
In 746e041 the options are preserved. I think this can be added like this, and I can follow up with a better UI for the dropdown's "selected" elements. |
746e041
to
7307ec0
Compare
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.
This raises the question of whether the Image block could replace the Post Featured Image block, but I'm not sure...
Fantastic work, @draganescu! Have you considered passing the new P.S. Happy to follow up with a PR. |
@Mamaduka I think this is a great observation and the reason the On the other hand the props list just grew with 2 items ... |
That's 1/3 of the core blocks that use the
It's the reason I thought composition might be a better option here. |
What?
Advances #40156. Adds featured image toggle to media replace flow, uses
cover block to showcase.
Why?
Having the media option in the same place seems more intuitive. The
toolbar block control seemed to bother many users and a lot of UX
feedback consistently asked for this toggle to be in the media replace
how.
Also, as other media blocks would like to have access to featured image
it's good to expose it through one common interface element.
How?
Adds a toggle to the dropdown. If the block that uses
MediaReplaceFlow
provides a featured image handler the toggle shows up. When featured
image is toggled on the other options are not visible.
Testing Instructions
the other media options are not visible
Screenshots or screencast
featured--image-replace-flow.mp4