Skip to content

Group Block Maximum Height style is actually being set as min-height #69610

@LukaszJaro

Description

@LukaszJaro

Description

When setting the maximum height in the editor for a group block, I expect the CSS property to reflect max-height but instead the min-height property is being set.

Step-by-step reproduction instructions

  1. Open playground instance
  2. Go to sample page
  3. Select a paragraph and group it
  4. Open the settings for the group block
  5. Select Styles Tab
  6. Under the Dimensions section, set the Maximum Height to any number
  7. Save and view on front-end
  8. Inspect the block and view the CSS properties that were applied

Screenshots, screen recording, code snippet

Set max height:

Image

View in front-end:

Image

Environment info

  • WP 6.7, PHP 8.2
  • Windows 10 or 11
  • Playground or non-playground instance has same issue
  • Make sure to select English (Canada) in playground instance

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] GroupAffects the Group Block (and row, stack and grid variants)[Status] Needs More InfoFollow-up required in order to be actionable.[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