-
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
Always preview style variations using desktop device type #66023
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: +19 B (0%) Total Size: 1.77 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.
packages/edit-site/src/components/global-styles/screen-style-variations.js
Outdated
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.
Tested and works as described plus it seem logical.
Flaky tests detected in f941d61. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11290723518
|
* always preview style variations using desktop device type * Improve comment --------- Co-authored-by: draganescu <andraganescu@git.wordpress.org> Co-authored-by: getdave <get_dave@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: juanfra <juanfra@git.wordpress.org>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 1ae3f5f |
* always preview style variations using desktop device type * Improve comment --------- Co-authored-by: draganescu <andraganescu@git.wordpress.org> Co-authored-by: getdave <get_dave@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: juanfra <juanfra@git.wordpress.org>
…66023) * always preview style variations using desktop device type * Improve comment --------- Co-authored-by: draganescu <andraganescu@git.wordpress.org> Co-authored-by: getdave <get_dave@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: juanfra <juanfra@git.wordpress.org>
What?
Closes #65991
Fixes the style variations preview when a device type is set, whcih currently zooms out the preview of small viewports.
Why?
The device viewports are already small, scaling them out results in an unuseable UI.
How?
Reset the device type when browse styles is invoked and the variation route is loaded. Always use the desktop device type to preview style variations.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
reset-device-type-browse-styles.mp4