Skip to content

HTML block: The dimensions UI is displayed when the does not support Dimensions. #51723

@shimotmk

Description

@shimotmk

Description

The UI is displayed in a block that does not support Dimension.

Step-by-step reproduction instructions

  1. Paste the code below into the block editor.
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Button</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->

<!-- wp:html -->
Custom HTML
<!-- /wp:html --></div>
<!-- /wp:group -->
  1. Click on the custom HTML block and the Dimension panel is displayed.

  2. The values set in the Dimension panel are not saved and have no effect in the front end.

Screenshots, screen recording, code snippet

dimension.mp4

Environment info

WordPress 6.2.2
Gutenberg 16.0.0
Twenty Twenty-Three 1.1

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Labels

[Block] HTMLAffects the the HTML Block[Feature] Block settings menuThe block settings screen[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Feature] LayoutLayout block support, its UI controls, and style output.[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions