-
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
Query Loop block: Add 8 new patterns #44163
Query Loop block: Add 8 new patterns #44163
Conversation
I see that in this PR, the color slugs are changed to match Twenty Twenty-Three. Other core patterns use the background and foreground slugs. How can we keep this consistent so that the color works across themes? I am wondering if instead of slugs, all the core patterns should actually use inline colors? By using a hex color, the color will always be the same no matter what the theme is -and the pattern can ensure that the contrast is always high enough by using both a text and background color. |
I wonder if the posts table would be confusing for users of assistive technology, since visually, it is a table without table headers, but it is not a Colorful full width posts |
Nice, can we replace some of the existing patterns with these? Specifically for the query block, it seems like less is more. |
Thanks for the review @carolinan! I think I’ve fixed most of these notes:
Really like this idea but haven't had a chance to look into it!
Definitely! Here's my list of what I think we should keep/scrap out of this PR and the previously bundled patterns: This PR: ✅ Post feed Existing patterns: ❌ query standard posts |
In theory, if a FSE HTML template file includes one of the previous patterns, what will happen to that template when the pattern is removed? There was some pushback when the core style variations were removed, because theme developers where using them, so I think this should be considered. |
I do not know if this is still considered for 6.1 since it was not completed before the feature freeze. |
This pattern should now be updated with wide lines to match the screenshot. I'm also adding one more pattern adapted from @andersnoren's beautiful new Beaumont theme based on @annezazu's note in #44140. The screenshot has also been added to the description for this PR. There are a few things I wasn't sure how to move forward with:
@carolinan I noticed this file doesn't exist in the 6.1 folder — can I just make a new file there with the same name? Do you think the older/existing patterns that we'd like to keep should be moved there as well, or those can stay in 6.0?
I haven't removed any of the patterns mentioned for removal above because I wasn't sure where to move them in order for them to still be accessible in the inserter. Do you know @carolinan? Thanks again for all your guidance! |
I don't fully understand how the compatibility files work myself. -I am not sure if both the new and old patterns should be in a new 6.1 or 6.2 compat file. |
Yep, my understanding is it should be in 6.1 or 6.2 (the version that it will be released in). It would be a 6.2 folder if this can't be released in 6.1. A new folder may be needed for 6.2. I think it'd be fine to copy the file over to that folder and make changes to it. Make sure The final remaining task would be to require the new file in Lines 64 to 96 in 6ffdde0
|
Should we close this PR? We're already in the WP 6.7 release cycle. |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @critterverse, @apeatling. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Yeah, let's do it. For new patterns, let's loop (get it) back on this issue: #49280 |
Follow up to #30763, closes #44140
It's been a while since we've updated the bundled patterns for the Query Loop block. I wanted to share a few new options, especially some more text-based options as discussed in #44140
This PR adds 8 new patterns for the Query Loop block. If we move forward with adding some of these new patterns, we may also want to go through and remove some of the existing image-based ones. Here are names and screenshots of the patterns added:
Post feed
Post list cards
Post table
Two column text list
Two column with tags
Colorful full width posts
Featured post with post list
More posts
Post and date list
(Adapted from Beaumont theme)
Note: the last three patterns are combinations of blocks that contain a Query Loop block within.
Testing Instructions
Requested feedback
Let's figure out which of these patterns we'd like to add and which of the existing Query Loop patterns should be removed. cc @WordPress/gutenberg-design