-
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 styles revisions: reduce visibility check from 2 to 1 revision #53281
Conversation
…e are more than 0 revisions since there is the default with which we can compare the single revision
Size Change: -3 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
Flaky tests detected in 7b34eba. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5746576704
|
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.
Looks good, thank you!
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.
Thanks for the follow-up, this is working nicely for me, too! ✨
Thanks for the speedy reviews! 🚀 |
What?
Reduces the revisions count condition with which we determine whether to open the styles revisions panel from
1
to2
.Why?
Now that #52965 has merged, we can show the revisions panel when there are more than
0
revisions since there is the default with which we can compare the single revision.Previously, the panel was only available after 2 styles revisions were saved in the database.
This makes things consistent with the command center as well, which will allow opening the styles revisions panel after 1 revision.
Testing Instructions
Start off with no style revisions. You shouldn't be able to open the styles revision panel from the site editor sidebar or the global styles panel.
Now add a single revision, e.g., change the background color of the site and save.
The revisions panel should now be accessible from the site editor sidebar or the global styles panel.