-
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
Add prompt for drag and drop in Patterns tab in Zoom Out mode #65115
Conversation
Size Change: +176 B (+0.01%) Total Size: 1.78 MB
ℹ️ View Unchanged
|
Flaky tests detected in aa70586. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10774088900
|
Design wise, it's not quite on. Perhaps @WordPress/gutenberg-design can do a quick pass. |
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. |
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
I think we can drop the icon |
I'd echo that. I'd use the same 12px helper-text font size we use for other help text. Can be gray-900 to ensure contrast. |
Looks good, except we need to deal with that typographic widow. The
Noting that Safari doesn't support |
Looks good! |
<VStack spacing={ 4 }> | ||
{ currentCategoryPatterns.length > 0 && ( | ||
<> | ||
{ isZoomOutMode && ( |
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.
Do we only want the prompt in zoom out mode?
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.
If this looks like a useful information addition we should add it in general to the patterns tab.
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.
Code wise this looks good.
To be honest I'm not sold on the experience. I feel like drag and drop is a primitive affordance in Gutenberg and this feels like a strange place to teach users about it, but don't let that block this PR.
An alternative idea could be to add a reminder about drag and drop to the snackbar, when a pattern is inserted via a click rather than drag and drop.
Let's try it. Revert is super simple on this one. |
What?
Adds a small prompt to the Patterns inserter when in Zoom Out mode to encourage users to try drag and drop.
Why?
Currently it's not obviously that drag and drop is enabled. This is one option to encourage that.
How?
Add text.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast