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 <[email protected]>
Co-authored-by: up1512001 <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • Loading branch information
4 people authored and gutenbergplugin committed Nov 4, 2024
1 parent 2d7504e commit 9631601
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 @@ -242,7 +242,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 9631601

Please sign in to comment.