-
Notifications
You must be signed in to change notification settings - Fork 112
Zoom out is not working on full page patterns #497
Comments
The theme already tried using margin 0. When the margin is set to 0, the patterns are too close to the other blocks. This becomes a problem as soon as the full width block has a background. |
It can not be set to the main, because the pattern can be inserted in any supported template, there can be more than one on any page, and there must absolutely not be two mains. What I mean is that the risk is that users uses the template that does not have a main, and then do not insert one of the patterns that has a main. |
I am talking here only about the full page patterns, which are meant to be used as that: full page. The individual ones can stay as they are. What would be your suggestion to fix the problem with zoom out? |
Another solution: in the full page pattern, wrap the patterns with colors inside an extra group block with margin 0. Like this for the landing for podcasts:
|
I don't think this is a problem since you can edit them outside of the zoom out. |
The full page patterns do not have a page template that can only be used with these exact patterns, nor is there a way to assign a template for them to use, where the main could be removed, and where the page title (post title block) could be removed. I opened a Gutenberg issue for this: WordPress/gutenberg#65812 |
I think we should increase the priority of this bug. It doesn't make sense to ship zoom-out and 2025 in the same release and 2025 doesn't work properly with zoom-out. We know zoom-out is optimized for top level sections within "main" container or without container. It's optimized for users that will create pages using patterns. I feel like we should align 2025 with that. |
Agreed. What about removing the wrapping group block from each page pattern and then remove the block gap effectively with margin 0 on those patterns within? |
I may be misunderstanding again, but like I already wrote in the comment above, the patterns started out with 0 top and bottom margin. So adding it again will resurface that problem. It is a low number of patterns where the user can not insert patterns between the pre-selected patterns when in zoom out mode. |
Since @MaggieCabrera had assigned her self to the issue, I expected a pull request so that this could be tested 👍 |
I am seeing another problem. zoom-out-2-oct-8.mp4 |
that is a different issue reported in GB that needs to be fixed there WordPress/gutenberg#65673 |
shuffle.tt5.movJust was testing TT5 with WP nightly and noticed that shuffling in zoom out is particularly painful for starter patterns as you go from lots of patterns in a page to just one. |
I don't believe there is a way to decide which patterns should be able to be shuffled between. |
Or does it only shuffle between items in the same category? Which category, then? |
Thanks everyone (especially @carolinan) for addressing this one. Highly appreciated. |
It's based on categories: WordPress/gutenberg#59251 |
Description
I have been testing TT5 with zoom out and I have encountered a problem with full page patterns:
Because there is a group containing all the patterns, zoom out detects that as a full section, and it doesn't let you insert patterns in between. If we remove that wrapper group:
The problem is that if we remove that wrapper group, we miss the
blockGap
value.I can't suggest a solution for this, there are options:
blockGap
issue on a per pattern basis. This would be the easy solution. Probably only the patterns with colored backgrounds need their margins set to 0 for this to workmain
, which I think it's also an option here, since it makes sense semantically, but I'll let the accessibility experts weigh in on that/cc @richtabor
The text was updated successfully, but these errors were encountered: