-
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
Improve and align application of lock icon in list view #60834
Comments
I personally think the two things are completely aligned here, though I agree the lock icons are confusing. The header, footer, site title, featured image are editable. They can be selected and interacted with in a limited sense, but they can't be moved because the layout/design is provided by the template entity. It's the same in a pattern with overrides, the blocks that have overrides can also be interacted with in a limited sense, but the layout/design is provided by the pattern entity. In both cases these blocks are shown in list view with a lock icon. In both cases there might also be a lot of other blocks that are completely hidden from view (e.g. groups that provide a layout, or other design elements). The only additional part in a page is that it has a completely freeform area—post content—which patterns don't have (but it could be a cool feature). The confusing thing for me is the way the locks in list view are shown, In both cases these blocks are only partially locked. |
You're right, I think I was testing with a simple template here, and all blocks were appearing while page editing. On further testing I see list view does strip out uneditable template blocks which is consistent with with partially synced patterns. I'll update the issue to focus on the lock icon. |
For reference here are all the states list view needs to entertain: Practically speaking content only editing is essentially the same as fully locked, so it's easy to see how we ended up with this treatment. But in the context of page editing, the lock icon appearing alongside blocks like title and featured image is a bit confusing – it suggests they aren't editable at all. Some provocations:
|
One additional argument in favor of this: we can think of contentOnly editing as "editing a custom block". It's not locked from being deleted, moved, or edited. Similar to synced patterns with overrides, this is the intended way to edit that particular block. I've argued separately that it would be interesting to explore a "flattening" of a contentOnly pattern so that it only shows up as a single block in the list view (unless you detach) — it might even be fun to allow a pattern author to choose the block icon. But that's a separate enhancement that would further diminish the need for a lock icon. |
I'm wondering if this is now solved with the changes in #61127 (and follow-ups) I'll close the issue, but feel free to reopen if there's anything remaining. |
Current state of affairs
When you edit a page with template preview on, list view shows the following:
When you edit a partially synced pattern instance, list view shows:
The problem
The lock icon is not entirely helpful for a couple of reasons:
Is there an alternative to the lock icon?
cc @WordPress/gutenberg-design
The text was updated successfully, but these errors were encountered: