Skip to content
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

List block: add support for layout (flex, grid) #57272

Open
annezazu opened this issue Dec 20, 2023 · 5 comments
Open

List block: add support for layout (flex, grid) #57272

annezazu opened this issue Dec 20, 2023 · 5 comments
Labels
[Block] List Affects the List Block [Feature] Layout Layout block support, its UI controls, and style output. [Feature] Nested / Inner Blocks Anything related to the experience of nested/inner blocks inside a larger container, like Group or P

Comments

@annezazu
Copy link
Contributor

Pulling this out of a recent blog post and video from a person using the Site Editor aiming for a specific layout as this would have saved some headaches.

@annezazu annezazu added [Block] List Affects the List Block [Feature] Layout Layout block support, its UI controls, and style output. labels Dec 20, 2023
@tellthemachines
Copy link
Contributor

tellthemachines commented Jan 5, 2024

Thanks Anne! Did you happen to note the timestamp for the relevant part of the video? It's super long and I'm finding it quite confusing.

Edit: I'd mostly like a bit more context around the the reasoning for adding specifically flex and grid layout types to lists. The list block isn't really prepared to support much more than plain text lists (the most you can currently do is add an inline image instead of text, but that comes with its own accessibility issues). It's not even possible to remove the bullet/number styling right now. Is the goal to just render plain text list items in a row instead of vertically?

@annezazu
Copy link
Contributor Author

annezazu commented Jan 5, 2024

I snagged this takeaway from Riad's comment. My understanding is that if the list block supported more layouts it would make creating what the video author did much easier to accomplish. I'd say the chunk from 29 min to 39 min is probably the best helpful for when the layout is being created.

@cbirdsong
Copy link

This would be a welcome addition, but I think it would not necessarily help with his problem? My read is he wanted to make something marked up as a list but with full inner block support. You can't make something like this and have it exist as an HTML list right now:

A list of upcoming events. Each item has the date in a colored block on the left and the time and name on multiple lines the right

@tellthemachines
Copy link
Contributor

Thanks Anne! @youknowriad, what did you have in mind here? As Cory and I mentioned above, List block is very limited in terms of content. Were you thinking in terms of allowing inner blocks inside List Items?

@youknowriad
Copy link
Contributor

Yes, the screenshot above is what I had in mind, you can also have horizontal lists using flexbox and yes, this will only make sense if list item block (at least with flex/grid layout) support inner blocks other than paragraphs

@tellthemachines tellthemachines added the [Feature] Nested / Inner Blocks Anything related to the experience of nested/inner blocks inside a larger container, like Group or P label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block [Feature] Layout Layout block support, its UI controls, and style output. [Feature] Nested / Inner Blocks Anything related to the experience of nested/inner blocks inside a larger container, like Group or P
Projects
None yet
Development

No branches or pull requests

4 participants