-
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
Display Posts as Inline List #25505
Comments
I think what's interesting here is seeing how easy it'd be for a third party block to author this output using as many tools from |
@kjellr do you think this is achievable now with patterns? |
I love a Friday challenge! The answer is yes and no. It is not possible natively yet. These are the blockers there:
On the other hand, this sort of style is possible if you combine the pattern with block styles: This required some pretty aggressive CSS though. Blocks in the editor come with a lot of extra Using block styles is interesting as a proof-of-concept, but it obviously bars this from working in the upcoming Pattern Library. A native solution would be better. We should definitely give the featured image block its own size controls, and I think some sort of inline solution is worth including for the scenario outlined in #26899. Once we figure those out, I think this should work without any extra hacking. |
It seems like inner-blocks should have a display option for "inline". Though I have no clue how much mayhem that may unleash on the block wrappers :) cc @youknowriad @ellatrix |
This definitely seems like another "type" for the layout prop of "InnerBlocks" |
Why does inner blocks have to be concerned with "inline"? Inner blocks itself doesn't render any divs, it's up to the block to style all this. |
The container block needs to be set to inline so all the I'm not sure it should be done with Here is the case I'm thinking: trying to put an icon in front of the Post Categories block, we have an icon block and the category block, I'd like to piece them together as two inline blocks together. Here's an example with the post meta from TwentyNineteen: |
I created #31418 to suggest dimension controls on the Featured Image block. While it wouldn't necessarily enable the inline display discussed here, it would likely complement it nicely. |
Related: #25501 #25502 #25503
This particular example is a kind of "out-there" style, but we see posts displayed as an inline list.
To be clear, I'm not advocating all these examples as something the core Gutenberg needs to support 😄 It might make sense to be a third-party plugin. I just wanted to surface those examples to raise awareness of various use cases that the user might want to achieve with a query.
The text was updated successfully, but these errors were encountered: