Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group block - no way to transform to "Row" and vice-versa #35355

Closed
Sandstromer opened this issue Oct 5, 2021 · 2 comments
Closed

Group block - no way to transform to "Row" and vice-versa #35355

Sandstromer opened this issue Oct 5, 2021 · 2 comments
Labels
[Block] Group Affects the Group Block (and row, stack and grid variants) [Type] Bug An existing feature does not function as intended

Comments

@Sandstromer
Copy link

Sandstromer commented Oct 5, 2021

Description

With the new row variation on the group block, there does not appear to be any way to transform a standard group block to row (flex layout), or the other way around from row to group.

Implementing this would be a huge time saver, as currently if you have say a group with the default layout, the only way to transform it to the flex layout (row variation) is to add a new "Row" group block and copy or drag the inner content to the new block and then delete the old now empty block.

Additionally, with a row block, toggling the 'Inherit default layout' option does transform it to the standard non-flex layout, but there is then no way to transform it back to the row variation.

Step-by-step reproduction instructions

  1. add a Group block
  2. notice there is no option to transform to the "Row" variation.
  3. add a new Row block
  4. notice the only way to transform this to a standard Group block without flex layout, is to toggle the 'Inherit default layout' option on and then off.

Screenshots, screen recording, code snippet

No response

Environment info

WP 5.8.1
Gutenberg 11.6.0

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

@carolinan carolinan added the [Block] Group Affects the Group Block (and row, stack and grid variants) label Oct 5, 2021
@sdwire
Copy link

sdwire commented Jan 17, 2022

Perhaps even worse... you can (accidentally) transform a Row into a Group, but then you can't put it back.

In a Row, if you toggle on the "Inherit default layout" option, the Row will suddenly become a Group. But toggling the option back off again will not change it back to a Row. Once you accidentally turn it into a Group, there's no going back. From there you have to create a new Row and manually drag back in all of the contents.

@annezazu annezazu added the [Type] Bug An existing feature does not function as intended label Jan 24, 2022
@skorasaurus
Copy link
Member

@Sandstromer ; This was implemented in Gutenberg 12.6 - #36202 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Group Affects the Group Block (and row, stack and grid variants) [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

5 participants