-
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
Zoom Out: Hide inserters behind the experiment flag #61866
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: +82 B (0%) Total Size: 1.74 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.
Its usefulness is anyway arguable in browse styles?
__unstableContentRef={ __unstableContentRef } | ||
/> | ||
) } | ||
{ window.__experimentalEnableZoomedOutPatternsTab && |
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.
Is this how all experiments work? I don't love the window global 😊
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.
Yeah it's how we do it elsewhere.
Flaky tests detected in e738ee0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9194704033
|
* Zoom Out: Hide inserters behind the experiment flag * Enable the test before we run the E2E test Co-authored-by: scruffian <scruffian@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
* Zoom Out: Hide inserters behind the experiment flag * Enable the test before we run the E2E test Co-authored-by: scruffian <scruffian@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
What?
Hides the zoom out inserters behind the next experiment flag.
Why?
Until zoom out mode works well with the patterns tab we should disable these inserters. You still should be able to access them by enabling the experiment for testing purposes.
How?
Only outputs the inserters when the experiment is enabled.
Testing Instructions
Screenshots or screencast