Skip to content

Commit

Permalink
Adds auxiliary class names for editor styles in the widgets editor (#…
Browse files Browse the repository at this point in the history
…33388)

Co-authored-by: Andrei Draganescu <github@andreidraganescu.info>
Co-authored-by: Robert Anderson <robert@noisysocks.com>
  • Loading branch information
3 people authored and youknowriad committed Jul 15, 2021
1 parent 1c20923 commit b7a3f1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/blocks/widget-area/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function WidgetAreaEdit( {
type="postType"
id={ `widget-area-${ id }` }
>
<WidgetAreaInnerBlocks />
<WidgetAreaInnerBlocks id={ id } />
</EntityProvider>
</DisclosureContent>
) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { useRef } from '@wordpress/element';
*/
import useIsDraggingWithin from './use-is-dragging-within';

export default function WidgetAreaInnerBlocks() {
export default function WidgetAreaInnerBlocks( { id } ) {
const [ blocks, onInput, onChange ] = useEntityBlockEditor(
'root',
'postType'
Expand All @@ -40,6 +40,7 @@ export default function WidgetAreaInnerBlocks() {

return (
<div
data-widget-area-id={ id }
className={ classnames(
'wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper',
{
Expand Down

0 comments on commit b7a3f1f

Please sign in to comment.