-
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
Featured Image: Center placeholder chip contents #35417
Conversation
Size Change: -9 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
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.
Welcome to the department of subtleties 👌
Due to your line height comment I also tested whether it was subject to any line height bleed. It isn't, because it's set to zero on the parent, so this is the right fix. Nice.
Unrelated to this PR, though, I noticed the featured image in the post editor looks like this:
I do wonder whether that block should even be available in the individual post editor, though, seems like there are arguments for and against.
I'm not sure about this, but it makes sense to keep it for now since other post blocks are available. I also realized that one could not Reset/Remove the featured image using the block. Instead, you have to go to the Document sidebar to do this. Do you think the "Reset" menu item (similar to #35372) would also be beneficial here? |
This had been implemented and then removed here: #27291 . Things like that change often though 😄 |
@ntsekouras, what do you think should we add it back and make it part of the media replacement workflow? Site Logo Block Example |
TBH I'm not sure. I was the one that had added in the first place before removing it 😄 . Maybe @mcsf , @mtias or @jameskoster could share their thoughts if they think we should bring it back.. |
The replace pattern for both site logo and images are becoming nicely established. The original reason for not having a "Clear" action made good sense: what is its use if you can just delete the block? That still seems valid enough, honestly, and probably why it doesn't exist for the Image block either. It feels different for the Site Logo, though, since it saves at the theme level, and therefore needs a way to clear it at the theme level. |
The same argument can be made for the Featured Image block since data is also saved on post level (in meta). Removing block doesn't clear the meta field. |
Oh you're right, deleting the block doesn't remove the featured image. Might make sense then after all. |
Description
Correctly aligns Featured Image placeholder chip contents.
The bug might be hard to spot if the paragraph element has
line-height
applied. However, the issue became more visible after #35273.Closes #35297.
How has this been tested?
Screenshots
Types of changes
Bugfix
Checklist:
*.native.js
files for terms that need renaming or removal).