Skip to content

Commit

Permalink
Fix: Popover positions on the widget screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jun 17, 2019
1 parent 00c82b4 commit bf38a0d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/edit-widgets/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { navigateRegions } from '@wordpress/components';
import { navigateRegions, Popover, SlotFillProvider } from '@wordpress/components';

/**
* Internal dependencies
Expand All @@ -14,7 +14,7 @@ import Notices from '../notices';

function Layout( { blockEditorSettings } ) {
return (
<>
<SlotFillProvider>
<Header />
<Sidebar />
<Notices />
Expand All @@ -28,7 +28,8 @@ function Layout( { blockEditorSettings } ) {
blockEditorSettings={ blockEditorSettings }
/>
</div>
</>
<Popover.Slot />
</SlotFillProvider>
);
}

Expand Down

0 comments on commit bf38a0d

Please sign in to comment.