-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Paragraph block can't be transform into Quote block #44452
Comments
I debugged this issue and found that was introduced when Quote V2 was introduced, specifically when the transforms logic was updated due to using inner blocks (reference). In Quote V1, we had a gutenberg/packages/block-library/src/quote/transforms.js Lines 62 to 91 in 9580611
The problem is that when we introduced the block transformation feature in the native version, we explicitly disabled support for wildcard block transform (reference). Nevertheless, it's not clear to me why we decided to do this based on the original PR and issue 🤔. I tried enabling support for wildcard block transform, by removing this part, and now I can transform the Paragraph block to the Quote block. However, this also enables other transformations like Paragraph block => Group block that were originally disabled. As far as I tested, all transformations work as expected and match the web version's behavior, so I'm wondering what exactly prevented us to enable all transformations ❓. Following the original issue, I see some comments about not supporting all transformations (comment reference) because some of them could be confusing to the user (e.g. Paragraph block => Columns block). However, I haven't found any technical argument that discouraged enabling all transformations, apart from not including the blocks that are unsupported in the native version. Being this said, maybe this is good timing to enable all missing transformations to users, wdyt? cc @iamthomasbishop as was involved in the original issue's discussion. |
I agree that enabling the missing transformations seems like a good path, so that we're matched up to the web as closely as possible. I think users would expect the functionality to work the same across platforms. If we feel that some transforms are illogical or confusing, I think it'd be best to open issues for wider community discussion, rather than diverging in the apps. |
My only concern about this change is that we'd need to check all transform combinations in case there are any unsupported or lead to errors. Apart from this, I agree that this seems like a good path.
Good point! I think we haven't reviewed the UX of transforming blocks since the original change was released. But definitely, if we identified some transform confusing we should open the discussion to the Gutenberg community and collect feedback there instead disabling the features in the app 👍 . |
Description
The Paragraph block in the web version can be transformed into a Quote block, however, this option is not available in the native version.
Step-by-step reproduction instructions
Expected behaviour
The Paragraph block can be transformed into a Quote block.
Actual behaviour
The Paragraph block CAN'T be transformed into a Quote block.
Screenshots or screen recording (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: