Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds auxiliary class names for editor styles in the widgets editor #33388

Merged
merged 3 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
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