-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Global styles: Alphabetize items. #66172
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -3 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
Flaky tests detected in c84ec55. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11367477382
|
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.
Personally, I lean towards keeping the current ordering.
Because when localized, it may not be alphabetical in the language. Also, there are locales that don't have an alphabet at all.
If there's something unnatural about the current ordering, how about considering sorting by meaning or importance instead of alphabetical?
Good points.
For one, I'd love to elevate background up higher, towards the top. |
I think it might be a good idea to consider the order of the block sidebar:
Taking this into consideration, one order I can think of is: Since Layout is the base section for the entire site, I prefer it to be at the top. Do you prefer to place Background above Layout? |
I would move Background all the way to the top, yes, and have colors below it. Both of those are very intuitive basic ways you can customize your site appearance pretty quickly. Typography is the next most intuitive, then layout and shadows can be towards the end. |
Yes, I'd think that's better than what ships in trunk 👍 👍 Happy to hear from others! Thank you. |
My feeling is that we need a larger re-organisation to group things like presets, site styles, blocks, etc. Until then I don't have a strong feeling about the order here, so I wouldn't object to moving 'Background' to the top. |
Do we try the approach of moving the Background to the top? Since this PR conflicts with the trunk branch, it might be a good idea to checkout again from the trunk branch, make changes, and force push. We may also want to update the PR title, description, and commit comment. |
Yes, I think it's easier to create a new PR for this. Unfortunately the next few days I'm unable to do this myself, but if you have bandwidth, I would appreciate the help! |
What?
Global styles has grown in items to the following:
That's, in order:
While there has arguably been some curation in the order of these, given recent additions, it's not clearly curated anymore. Especially if additional items were to be added, it would feel increasingly random. This PR alphabetizes:
This is slightly more predictable as far as scanning the page for a particular item.
Testing Instructions
Open the site editor, open the global styles inspector, and notice the new order of items there.