-
Notifications
You must be signed in to change notification settings - Fork 353
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
Archeo: fix image block widths #5634
Conversation
those IDs won't work on all sites if they already have images installed with that ID. Joen said that he was going to make a PR to fix the issue, I think we can patch with CSS instead of changing the markup while the fix makes it to GB |
Ah OK, I was wondering about the IDs. Thanks! I'll change this PR to a patch then. |
I've added a CSS patch for all Image Block images, using this selector: |
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
WordPress/gutenberg#39340 will fix the image issue and when that makes it to dotcom we can remove the CSS |
Changes proposed in this Pull Request:
This adds the
wp-image-
class and ID attribute to any image blocks in Archeo's patterns.Since WordPress/gutenberg#39045 was merged, only images that have the
wp-image-
class are targeted with the responsive styles. Without this class, the images are not resized to 100%:It looks like images in cover blocks and media + text blocks are not affected.
Do we need to run through all block themes and add these classes?