-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Extraneous transforms on synced patterns #67710
Comments
What's your proposal? |
Hi packages/block-editor/src/components/block-toolbar/index.js Would appreciate some help on this one |
@Rishit30G, it depends on the proposed solution, which needs clarification. Do we disable transformations for synced patterns or just reduce the options? If the latter, then what options should remain? |
Thanks for addressing @Mamaduka , I was planning to limit the options once we get confirmation on which ones to keep |
@Rishit30G, have look at |
Thanks, I explored couple of helper functions in this order from selector.js and factory.js: |
Easiest thing might be to add an The details block already has similar to prevent wrapping itself in another details block: gutenberg/packages/block-library/src/details/transforms.js Lines 12 to 16 in 467e4a2
|
@Rishit30G Is this something you're still interested in working on? |
Hi @talldan |
Thanks for sharing insights @talldan 🙇🏻 |
Description:
Transforms for synced patterns are overly generous, even if transforms simply wrap content. This behavior can create confusion and lead to unintended transformations. Limiting transforms from synced patterns would provide a more intuitive experience.
Steps to Reproduce:
Expected:
Transform options should be limited for synced patterns to avoid unnecessary or unintended transformations.
Visual
The text was updated successfully, but these errors were encountered: