gutenberg
gutenberg copied to clipboard
Inserter: Pattern tab visibility
What problem does this address?
When there is no block selected the pattern tab doesn't show:
Steps to reproduce.
- Open the Site Editor.
- Open the Inserter > Patterns > Any category.
- Click on the canvas in Zoomed-out view.
- Notice that the Insert isn't closed, and the Patterns tab is missing.
- Toggle inserter.
- Notice that Media tab is also missing
What is your proposed solution?
I think the patterns tab should always be there but if you select a pattern and we don't know where it should go, we inform the user somehow.
if you select a pattern and we don't know where it should go, we inform the user somehow.
A default result is better than an interruption, so always post at the start/end of sections list?
We solved a connected issue in https://github.com/WordPress/gutenberg/pull/61002. However in that issue the problem was knowing which block to select when switching to zoomed out mode. This issue however is about what happens when blocks become deselected in zoomed out mode.
Perhaps I'm misunderstanding, I'm not seeing this I think:
This issue is different now - we do show the patterns tab but it says this:
This is fine at the moment, but when we move to leaving the inserter always open I wonder if we'll need better messaging here?
Is this still relevant? I'm seeing this here on trunk:
https://github.com/user-attachments/assets/4e549ab2-55e1-47e3-9355-190b93cfa4d3
Try selecting a button block:
Closing in favour of https://github.com/WordPress/gutenberg/issues/61320