Skip to content

Commit

Permalink
Pass toggleProps compact size
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed May 7, 2024
1 parent e9b7400 commit 930e082
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 5 additions & 1 deletion packages/edit-site/src/components/global-styles/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ function GlobalStylesActionMenu() {

return (
<GlobalStylesMenuFill>
<DropdownMenu icon={ moreVertical } label={ __( 'More' ) }>
<DropdownMenu
icon={ moreVertical }
label={ __( 'More' ) }
toggleProps={ { size: 'compact' } }
>
{ ( { onClose } ) => (
<>
<MenuGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,4 @@
display: flex;
}
}

// Emulate 'compact' button size, as Dropdown does not support compact yet.
.components-dropdown > .components-button.has-icon {
height: $grid-unit-40;
min-width: $grid-unit-40;
padding: $grid-unit-05;
}
}

0 comments on commit 930e082

Please sign in to comment.