-
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
Global style changes: refactor output for a more flexible UI and grouping #59055
Conversation
Size Change: +169 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in cb0f9c2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7952687140
|
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. |
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.
Nice follow-up! The code change looks great to me (I like the array of tuples idea 👍), and it looks nice for me in the revisions panel:
The only visual thing that looked slightly off to me is the space between the Custom Styles toggle button and the list in the Save flyout. To my eyes, I'd put the list a little closer to the toggle, but I'm no designer!
It'd be good to see what @jasmussen or @jameskoster think when they get a chance to take a look, but once the designers are happy, this LGTM 👍
Oh, one other thing, it might be worth giving this a rebase to roll in #59101, otherwise some of the Typography panels throw an error (just in case anyone runs into it while testing). |
Good spotting, it does look a little vast. I'll update. Thanks for testing @andrewserong ! |
343485a
to
d826735
Compare
packages/block-editor/src/components/global-styles/get-global-styles-changes.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/global-styles/get-global-styles-changes.js
Show resolved
Hide resolved
packages/block-editor/src/components/global-styles/get-global-styles-changes.js
Show resolved
Hide resolved
packages/block-editor/src/components/global-styles/get-global-styles-changes.js
Outdated
Show resolved
Hide resolved
packages/editor/src/components/entities-saved-states/entity-type-list.js
Outdated
Show resolved
Hide resolved
packages/edit-site/src/components/global-styles/screen-revisions/revisions-buttons.js
Show resolved
Hide resolved
packages/block-editor/src/components/global-styles/get-global-styles-changes.js
Show resolved
Hide resolved
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.
Thank you!
d826735
to
5b66f47
Compare
Thanks, folks for testing this PR! |
remove top margin
5b66f47
to
cb0f9c2
Compare
…ping (#59055) * Refactoring output for a more flexible UI and grouping * update e2e test * Update comments and tests remove top margin * Localize comma separators and period Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
I just cherry-picked this PR to the cherry-pick-beta-2 branch to get it included in the next release: 234fb7d |
…ping (#59055) * Refactoring output for a more flexible UI and grouping * update e2e test * Update comments and tests remove top margin * Localize comma separators and period Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
What?
This PR refactors the return value of
getGlobalStylesChanges
to group changes into 'blocks', 'elements', 'settings', and 'styles'.Why?
Follow up to:
How?
Groups concatenated changes into 'blocks', 'elements', 'settings', and 'styles' groups, and adds the "group" name to the end of the concatenated string.
Testing Instructions
This change affects the save entities panel and the global styles revision items, both of which display global styles changes.
"Color, Typography settings."
Run the tests!
npm run test:unit packages/block-editor/src/components/global-styles/test/get-global-styles-changes.js
Screenshots or screencast
Before
After