Skip to content

Orientation Support: Not showing consistently across editors in Row block #39647

Closed

Description

@apeatling

Description

It's been reported that the orientation settings are not showing consistently. For example using the skatepark theme and adding a row block in the post editor results in orientation settings now showing at all:

image

Skatepark does not have anything in theme.json to hide these settings.

Step-by-step reproduction instructions

  1. Activate the skatepark theme
  2. Open the site editor
  3. Add a row block
  4. Notice that the orientation settings are unavailable.

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

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    [Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi
    on Mar 22, 2022
  2. mtias commented on Mar 22, 2022

    @mtias
    Member

    The block is actually being inserted with the flag set to false in some circumstances. It also seems this should be a block / theme config not a block attribute.

    <!-- wp:group {"layout":{"type":"flex","allowOrientation":false}} -->
    <div class="wp-block-group"></div>
    <!-- /wp:group -->
    
  3. andrewserong commented on Mar 23, 2022

    @andrewserong
    Contributor

    Just following up, the fix that @youknowriad put together in #39650 ensures that it's hidden in all cases for the Group / Row block — it looks like the "Transform to variation" should be used to switch orientation in this case, as the Group block needs to support floated layouts.

    As of #39532 the visibility of the orientation control can be set per-block at the block.json level.

  4. mtias commented on Mar 23, 2022

    @mtias
    Member

    @apeatling @andrewserong @youknowriad thinking a bit more about this, I think the orientation should be showing for the Row block. There's nothing inherent about rows being purely horizontal, and there's value in a vertically organized flex container that do stuff like space-between, etc. Maybe we want the name of the block to change to "Stack" or something like that for extra clarity, but I feel we are lacking that option and Group on its own doesn't provide it, so the transform to variation menu doesn't make much sense.

  5. youknowriad commented on Mar 23, 2022

    @youknowriad
    Contributor

    @mtias I'm trying that in #39690

  6. apeatling commented on Mar 24, 2022

    @apeatling
    ContributorAuthor

    "Stack" is common across other platforms (for example interface builder for iOS), and comes without the assumption of orientation. Thumbs up for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] BlocksOverall functionality of blocks[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[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