-
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
Block Inspector: Restore bottom margin for RadioControl #66688
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -112 B (-0.01%) Total Size: 1.81 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.
LGTM
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.
Thanks for the clean up here @t-hamano ✨
This is testing as advertised and follows the prior discussion on the original PR.
✅ Spacing for RadioControl looks correct now
Before | After |
---|---|
✅ Latest Posts' control spacing is now inline with other radio controls as previous inline comment indicated it should be.
I'll merge this so that it'll get included in RC 3. |
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: up1512001 <up1512001@git.wordpress.org> Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 9631601 |
Thanks for the review! |
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: up1512001 <up1512001@git.wordpress.org> Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
Fixes the problem found in this comment: #64582 (comment)
What?
This PR restores the bottom margin for the
RadioControl
component in the block inspector.Why?
In #64582, the
RadioControl
component is no longer composed of theBaseControl
component, and therefore no longer has the expected bottom margin in the Block Inspector.This results in no space between the RadioControl component and the next control unless the developer explicitly applies space via a gap or similar.
How?
Reapply the bottom margin to the
RadioControl
component in the block inspector. Also, remove the style for the Latest Post block, which is no longer needed.Testing Instructions
Run the following code in your browser console and confirm that there is a space between the two controls.
Details
Latest Post block
Notice that visual changes have occurred. But these visual changes should match the rules adopted in #64526:
24px
to16px
RadioControl
in the panel