Skip to content

Commit

Permalink
Update: Use small button on tools panel toggle (#35935)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Oct 26, 2021
1 parent 2266ff8 commit 2ecc9a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/components/src/tools-panel/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,10 @@ export const ToolsPanelHeader = css`
*/
.components-dropdown-menu {
margin: ${ space( -1 ) } 0;
height: ${ space( 6 ) };
.components-dropdown-menu__toggle {
padding: 0;
height: ${ space( 6 ) };
min-width: ${ space( 6 ) };
width: ${ space( 6 ) };
}
}
&&&& .components-dropdown-menu__toggle {
padding: 0;
min-width: ${ space( 6 ) };
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ const ToolsPanelHeader = (
icon={ dropDownMenuIcon }
label={ dropDownMenuLabelText }
menuProps={ { className: dropdownMenuClassName } }
toggleProps={ { isSmall: true } }
>
{ ( { onClose = noop } ) => (
<>
Expand Down

0 comments on commit 2ecc9a4

Please sign in to comment.