-
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
Image: Allow deprecated blocks to render border-radius #47766
Conversation
Size Change: +79 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
Flaky tests detected in d23603a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4099929200
|
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.
This tested well for me. With this PR applied:
✅ Images added to 6.0.1 with border radius displayed radius as expected in frontend with site updated to 6.1.1
✅ When same images loaded in editor the deprecations ran and style was moved to inner element so additional border radius CSS no longer applied
✅ Radius added to theme.json displayed as expected in editor and frontend, and was overridden by any user applied radius
✅ Correct radius displayed in image cropping tool
Fixes: #47422
What?
Allows deprecated Image blocks to continue rendering custom image border radii without resaving the posts.
Why?
Without this change, deprecated image blocks lose their border radii on the frontend.
How?
border-radius
style present on deprecated image blocks. This style forces the image blocksimg
to inherit the border radiusTesting Instructions
Screenshots or screencast
Frontend - Deprecated Image block with custom border radius
Editor - Cropping image with custom border radius & theme.json border radius style
Note: In before image above, a theme.json border-radius of
100px
was being applied to the innerimg
while the cropper possessed the correct custom border radius of50px
.