Skip to content

The class "is-horizontal" is not added on front when row block (variation) is placed directly. #43665

@Humanify-nl

Description

@Humanify-nl

Description

I am super happy with the addition of the group classnames: is-horizontal or is-vertical for the variations, but they are not yet consistent.

When placing a Row block directly these classes do not get added on the front end. Only when the layout/orientation 'vertical' is triggered, and then set back to 'horizontal', it will get added to the block in the front end.

Step-by-step reproduction instructions

  1. Add a Row block by typing /row OR by selecting a few blocks and making them into a Row.
  2. Update page.
  3. Load the front. No 'is-horizontal' class on the block.
  4. Go back to edit page.
  5. Select the Row block and tick 'vertical' on in layout.orientation block settings panel, and switch it to 'horizontal' again (no need to update page in between).
  6. Update page.
  7. Load the front. Now there is a 'is-horizontal' class on the block.

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPres 6.0.1
  • No Gutenberg

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

No one assigned

    Labels

    [Block] GroupAffects the Group Block (and row, stack and grid variants)[Type] EnhancementA suggestion for improvement.

    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