-
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
Groups with contentOnly locking should not be transformable into other variations #64661
Comments
There may be validity in not having transforms at all for contentOnly locked group blocks? |
I'd agree. If need be we can build an edit affordance, like there is for synced overridable patterns. Or you would just need to detach. By switching from row to stack, for example, it substantially alters the appearance of most patterns that were meant to be the former. |
I started looking briefly. We could completely short-circuit the block switcher in the toolbar, but I think the rest would have to be done at the block level, at least for Group blocks. |
Testing stuff over here: What do folks think should happen when multiple blocks are selected? My guess is that if a single block among multiple select is locked, then we shouldn't show the transformation options. The other option is to show them and (try to) only apply the transformation to the non-locked blocks. |
Would it be reasonable/possible to omit the individual-level transform, and keep only the container-level transforms, i.e. "I want to group a paragraph with a content-only locked pattern"? If that's at all hard, I'd also tend to support your instinct:
|
Hmm, I'm not sure they're filterable off the top of my hat, but I can have a quick look next week 🤔 |
I would say: go with the simplest option. |
I wonder if some PRs might need rebasing and that's why this is still coming up in demos...etc? |
Yup! Pretty sure that's what's going on. Closing this. Thanks! |
I propose that when contentOnly locking is in place on a group block, the pattern should not have have transform controls.
contentOnly
is a form of flattening/locking the innerBlocks, which when transformed does not typically result in a positive experience (as you can't manipulate the blocks further anyhow to try and fix it).Current
CleanShot.2024-08-20.at.20.04.07.mp4
The text was updated successfully, but these errors were encountered: