Skip to content

Commit

Permalink
Fix incorrect usage of ItemGroup in the Image block filters panel. (W…
Browse files Browse the repository at this point in the history
…ordPress#67513)

* Fix incorrect usage of ItemGroup in the filters panel.

* Revert change for __next40pxDefaultSize.

* Restore empty line.

Co-authored-by: afercia <afercia@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
5 people authored and yogeshbhutkar committed Dec 18, 2024
1 parent 856b6c4 commit 2bac524
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
__experimentalToolsPanel as ToolsPanel,
__experimentalToolsPanelItem as ToolsPanelItem,
__experimentalItemGroup as ItemGroup,
__experimentalItem as Item,
__experimentalHStack as HStack,
__experimentalZStack as ZStack,
__experimentalDropdownContentWrapper as DropdownContentWrapper,
Button,
MenuGroup,
ColorIndicator,
DuotonePicker,
Expand Down Expand Up @@ -189,15 +189,12 @@ export default function FiltersPanel( {

return (
<ItemGroup isBordered isSeparated>
<Button
__next40pxDefaultSize
{ ...toggleProps }
>
<Item as="button" { ...toggleProps }>
<LabeledColorIndicator
indicator={ duotone }
label={ __( 'Duotone' ) }
/>
</Button>
</Item>
</ItemGroup>
);
} }
Expand Down

0 comments on commit 2bac524

Please sign in to comment.