-
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
List block: Add numbering type selection #51186
Conversation
@WordPress/gutenberg-design I have added the numbering options to the Inspector Panel as there were already some numbered list settings there, but another option would be to add a dropdown to the toolbar - what do you think? |
Size Change: +2.51 kB (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glendaviesnz Mostly wanted an early review on this for accessibility, like the fact this uses SelectControl
, found one typo. So far, this should be pretty easy for UI.
(Peeking into this PR, and love that this is here!) I'm wondering, if it would make sense to having something a touch more visual like the Text Transform button group in the Heading block for this? Although I recognize that to do that, we'd need new icons designed. |
Thank you Glen for beginning to explore these list styles features! There are various good suggestions above. |
Oh I'm so glad you said that @paaljoachim ! To be honest my initial instinct was also that this belongs in the toolbar, but typically I get push back in any suggested moves to the toolbar so I ignored my initial instinct to suggest that. 😅 |
@jasmussen are you thinking that would be under the |
The most important controls for a given block are usually in the toolbar and the sidebar settings. |
I really like it @jasmussen Joen! One reason why I mentioned the toolbar is because of the current List block options. My thinking was that we could instead of having the two icons ordered and unordered in the toolbar that we could have a drop down showing ordered, unordered etc etc. But the flyout you mention Joen has a lot more going for it. Gives a lot more flexibility in relation to styling and design. Which is very helpful. I am not sure how the current two icons in the toolbar would relate to the flyout though. It would be nice to create a mvp of the flyout version. Having an initial first version in place which can gradually be improved. |
@jasmussen Thanks for the designs. I think we should keep the scope of this PR to list options, so if you want to add some new issues for the drop caps that would be great. Also, just to clarify, this PR is also limited in scope to the numbering types, not the unordered list bullets, but your designs will work just as well for the numbering types I think and bullet types could be added later, although I think at the moment it was decided that bullet styling may be left to plugins to enhance. |
Sounds good. I opened these two issues for list block and drop cap:
I included a new mockup for number selection. Glen if you can take a look at that and see if the feature can eventually grow into that concept (notably replacing the entire list panel with a flyout that exists for the List block in the Styles/Typography panel), then I think this PR as-is can land. If the move from Settings tab to Styles tab is a larger issue, we might want to rethink the approach. Let me know! |
Thanks @jasmussen those designs look great. It doesn't seem like there will be any issues with moving the numbering/bullet types to the styles tab as a second step so I think it would be good to merge this change as is as you suggest in order to get it in by the 6.3 deadline, and then look to implement your designs post 6.3. It would be great to just go straight for your designs, but realistically I don't think we would get it all done and tested by next Wednesday with some of the other 6.3 work that also needs to be finished. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thought but can ignore.
Flaky tests detected in 171975d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5285432991
|
Co-authored-by: Alex Stine <alex.stine@yourtechadvisors.com>
8ac56e3
to
fc458c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Ramon <ramonjd@users.noreply.github.com>
Co-authored-by: Ramon <ramonjd@users.noreply.github.com>
Co-authored-by: Ramon <ramonjd@users.noreply.github.com>
Co-authored-by: Alex Stine <alex.stine@yourtechadvisors.com> Co-authored-by: Ramon <ramonjd@users.noreply.github.com>
Do we have any kind of rough ETA on this feature making it to release? We have so many clients who would love to add more legal documentation to their sites but are blocked without support for these additional list types! |
Hi @ed-richards I just checked WordPress 6.4 and it looks like the feature is in Core already: |
@ramonjd Oh fantastic! I spun up a fresh install to check yesterday and it wasn't there so I've probably missed something on my end. Thanks for the clarification 👍🏼 |
For anyone dropping by this issue. It can though be somewhat overlooked as it is not directly selectable through the toolbar. It is only seen in the sidebar. |
What?
Adds the ability to choose the number type to the List block, eg.
1, A, a, i, I
.Why?
Fixes: #17738
How?
Used the existing
type
attribute, that didn't seem to be used for anything currently.Testing Instructions
Screenshots or screencast
list-numbers.mp4