-
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
Improving the List block with basic HTML list types #17738
Comments
For the checks in the list, there could be an option where the user could upload an SVG/PNG image which could be used as a bullet. Also, whilst we're on the subject of improving the List block,I think there should be a number of ways that the numbers can be displayed (roman numerals, indented lists with 1, 1.1, 1.1.1 etc.) that the user can choose from. |
I wonder how much of this should be in the core block and how much should just be styles added by a plugin. Does the current list block expose the |
@paaljoachim Just wanted to let you know that I've just added few list block styles on EditorsKit Plugin. Here's the preview and I hope you'll love it. Cheers! |
How does that connected one look with nested lists? Or with text that wraps to a second line? |
I just tested this, and the attributes are only available on the outermost list. |
The style will also be applied on the nested list :) |
Design folks really need to go through this issue. Thanks a lot for sharing Jeffrey! I look forward to seeing your List Block improvements make it's way into GB Core. |
Let's get the design feedback label on this so we can dive into some thinking here. I do first off think we need to be cautious about what we add here as a lot can be done with a combination of styles and also a class. I'd be cautious as a result of my above comment to add a way to upload an image. I think there's a lot can be done with maybe another block style variation (maybe a couple), but I don't think making this too complex is the way to go. I also think this should be done under style variations over in toolbar. |
I actually like the block styles option that @phpbits proposed as a way to do this. We don't need to provide every possible bullet symbol, but a good few that are common to use.
This reminds me of the Navigation block and might be worth an exploration there if it hasn't happened yet. In either case, providing more bullet options sounds good to me. Using them as block styles opens them up for plugins to easily expand and add their own styles too. |
Please make nested lists stylable! This is easily possible with HTML and I can indeed achieve the same in editor by manually adding the
|
One focus area is to add styles to the List Block such as Jeffrey mentioned in his comment above. #17738 (comment) I would suggest that we add these styles into the Core List Block: Another would be checkboxes. |
It seems there's some consensus around adding a variety of bullets to the List block. Using the style variations for this purpose feels like the right way to go. Shall we move this to dev? |
Hey Jeffrey. @phpbits |
@zdenys What else do you have installed? |
Note: The EditorsKit plugin adds a justify option. |
The screenshots I provided are from a site with only Gutenberg plugin version 8.7.0. and Jetpack version 8.8. In fact, it may be coming from the latter as when I deactivated it, I could see the justify option disappear. |
@zdenys: Yes, the Jetpack plugins adds a justify format option to Gutenberg. |
I think this is more plugin territory. Unless we were to support any symbol / emoji, which might be worth exploring, specific style variations can quickly become dated while still needing to be supported for a long time. |
@CHEWX I think we should get this in for WP 5.6. |
I am just working on a legal document in Gutenberg and found that I couldn't style the nested lists with different numbering system ( lowercase or roman numerals inside numbered list). Editing the HTML didn't work either and I found this frustrating (assuming it's because Gutenberg isn't actually using HTML ). I had to add a CSS class to remove the list items of the nested lists and just type in the lowercase and roman numerals. |
The ability to have more options rather than bullets or I think it would be interesting to explore as possible style variations for the block! |
Hello, I am wondering if this will get implemented and when? It would also be nice to have the ability to add list style e.g. A) B) C) etc |
I think emoji is better than preset default style. [Idea]:
<ul style="list-style-type: "📌";">
...
</ul> [caveat]:
|
I feel this issue tries to address 2 different problems and should be split to better solve them.
Cosmetic list types are about Basic HTML list types are about What's at stake isn't the same. With no support for basic HTML types, nested ordered list are barely usable in Gutenberg. With no support for stars and emojis, unordered lists still work. |
@druxstr that's a good point, would be good to split. |
Changed the title of this issue and created a new one for cosmetic list types to better split things out: #45830 |
Yess! |
I shared some design thoughts in #51186 (comment) that might be relevant to this issue. |
Hey
My customer wants it to look like this:
This seems like a challenge for the list block.
There are multiple things to consider. Checkmarks, numbers, letters, roman numbers etc. Then also having the list horizontal instead of vertical.
I would suggest to have drop down of the prefix icons. Similar to what we do with alignment options in other blocks.
That could mean a drop down with name such as ordered list and the icon. Followed by names and icons of other options.
One would then check the drop down and select the type of icon one wants to use.
Mockup:
Additionally
Then also add an alignment option drop down similar to other blocks. To show the list in
Horizontal or vertical mode.
The text was updated successfully, but these errors were encountered: