-
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
Add text alignment controls to List block toolbar #6697
Comments
I'm not sure also about adding these to list. What is your thinking of adding to list? I'll note as have in other issues maybe considering if something should have alignment is a good step over assuming it should in all blocks? |
@karmatosed Well, you can text align Paragraph and Heading blocks, and List blocks are often intermixed with those, and it often looks weird to have a center-aligned Paragraph block followed by a left-aligned List block. |
I'm not convinced lists are the same treatment but if someone wants to work on a PR that's totally fine by me on this. |
I just discovered that just using I was envisioning the List to be placed on the right, but the list items would retain proper indentation. This is possible if you modify the HTML like so:
That produces a list that looks like this: Of course, this requires a wrapper So does this mean you should wrap the List block in something like the proposed Section block, or should block alignment tools be added to the List block? |
@karmatosed That’s what I realized… text alignment on a List block is pretty much useless. It is some sort of block alignment that I now realize is what I really wanted. Should open a new issue for that and close this one? |
I am still unsure you need it for lists but not against it as an option if you feel there is a use case. I can't see one right now so would encourage thinking about that first. I am closing this as a result. |
Client has been using "align center" on lists for many years now. Adding text-align:center to my UL works perfectly, but it's not user-friendly in the Gutenberg editor |
No way to align List blocks?
The Heading, Paragraph, and Subheading blocks all have text alignment controls in their block toolbars. (The Cover Image and Quote blocks do as well, but those blocks will soon be updated to use nested Paragraph and Heading blocks, so they do not really count.) For some reason, the List block currently lacks these controls.
Solution
Add the text alignment button controls to the block toolbar of the List block.
Related Issues and/or PRs
The text was updated successfully, but these errors were encountered: