Skip to content

Commit

Permalink
ComboboxControl: replace margin overides with new opt-in prop
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp committed Nov 23, 2022
1 parent 5d13d8e commit 2e4d99c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/avatar/user-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function UserControl( { value, onChange } ) {

return (
<ComboboxControl
__nextHasNoMarginBottom
label={ __( 'User' ) }
help={ __(
'Select the avatar user to display, if it is blank it will use the post/page author.'
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/post-author/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function PostAuthorEdit( {
authorOptions.length &&
( ( showCombobox && (
<ComboboxControl
__nextHasNoMarginBottom
label={ __( 'Author' ) }
options={ authorOptions }
value={ authorId }
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/page-attributes/parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export function PageAttributesParent() {

return (
<ComboboxControl
__nextHasNoMarginBottom
className="editor-page-attributes__parent"
label={ parentPageLabel }
value={ parentPostId }
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/post-author/combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function PostAuthorCombobox() {

return (
<ComboboxControl
__nextHasNoMarginBottom
label={ __( 'Author' ) }
options={ authorOptions }
value={ authorId }
Expand Down

0 comments on commit 2e4d99c

Please sign in to comment.