Skip to content

Commit

Permalink
Block Inspector: Restore bottm margin for RadioControl (#66688)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
4 people authored Nov 4, 2024
1 parent 4e6bd4d commit 03225e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
margin-bottom: 1.5em;
}

.components-base-control {
.components-base-control,
.components-radio-control {
&:where(:not(:last-child)) {
margin-bottom: $grid-unit-20;
}
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/latest-posts/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
/>
{ displayPostContent && (
<RadioControl
className="wp-block-latest-posts__post-content-radio"
label={ __( 'Show' ) }
selected={ displayPostContentRadio }
options={ [
Expand Down
11 changes: 0 additions & 11 deletions packages/block-library/src/latest-posts/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,3 @@
padding-left: 0;
}
}

// Apply the same styles that would be applied to
// ".block-editor-block-inspector .components-base-control"
// (see packages/block-editor/src/components/block-inspector/style.scss)
.wp-block-latest-posts__post-content-radio {
margin-bottom: #{ $grid-unit-30 };

&:last-child {
margin-bottom: $grid-unit-10;
}
}

0 comments on commit 03225e0

Please sign in to comment.