Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

⚛️ Remove the wp-inner-blocks wrapper #76

@DAreRodz

Description

@DAreRodz

We need to get rid of the <wp-inner-blocks> element to avoid CSS issues like #50.

As @luisherranz proposed in #50 (comment), we can append the wp-inner-block attribute to those blocks that are the children of an interactive block.

<div class="wp-block-parent">
  <div>Some content</div>
  <div class="wp-block-child-1" wp-inner-block>Some child content</div>
  <div class="wp-block-child-2" wp-inner-block>More child content</div>
</div>

Note that we need a new attribute because:

  • using a regexp to find nodes with their class starting with wp-block-" could be not reliable enough
  • using the wp-block-type attribute would work only if children are interactive blocks as well

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions