Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix search block using non-accessible toolbar dropdown
  • Loading branch information
talldan committed Jul 13, 2021
commit 2f6fd511653ff00f9cbc33689e675ffd0622d8cc
6 changes: 3 additions & 3 deletions packages/block-library/src/search/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
__experimentalUnitControl as UnitControl,
} from '@wordpress/block-editor';
import {
DropdownMenu,
ToolbarDropdownMenu,
MenuGroup,
MenuItem,
ToolbarGroup,
Expand Down Expand Up @@ -201,7 +201,7 @@ export default function SearchEdit( {
} }
className={ showLabel ? 'is-pressed' : undefined }
/>
<DropdownMenu
<ToolbarDropdownMenu
icon={ getButtonPositionIcon() }
label={ __( 'Change button position' ) }
>
Expand Down Expand Up @@ -242,7 +242,7 @@ export default function SearchEdit( {
</MenuItem>
</MenuGroup>
) }
</DropdownMenu>
</ToolbarDropdownMenu>

{ 'no-button' !== buttonPosition && (
<ToolbarButton
Expand Down