Skip to content

Image block: aspect ratio control disappears with wide or full alignment #72055

@benoitchantre

Description

@benoitchantre

Description

The aspect ratio control isn't displayed for an image block using a wide or full width aspect ratio.

Step-by-step reproduction instructions

  1. Add an image block to the post content
  2. Check the block settings and see that the aspect ratio control is visible
  3. Set the alignment to wide or full
  4. Check the block settings and see that the aspect ratio control is not visible

Screenshots, screen recording, code snippet

No response

Environment info

Tested on playground.wordpress.net
(you need to wrap the image in a group block to get a wrapper that set inner blocks to use content width)

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ImageAffects the Image Block[Status] DuplicateUsed to indicate that a current issue matches an existing one and can be closed[Type] BugAn existing feature does not function as intended

    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