-
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 widgets editor more menu #31926
Add widgets editor more menu #31926
Conversation
Size Change: +2.55 kB (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
Looks great! Can we make it so that toggling the "Contain text cursor" setting doesn't make the menu's width jump around? Kapture.2021-05-19.at.10.40.40.mp4Also, not really related, but on mobile, you have to scroll right to see this new button in the toolbar. Maybe we should hide the "Widgets" title on smaller viewports. Kapture.2021-05-19.at.10.43.11.mp4 |
@@ -0,0 +1,66 @@ | |||
.edit-post-keyboard-shortcut-help-modal { |
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.
This and all the other class names should begin with edit-widgets
.
isModalActive, | ||
toggleModal, | ||
} ) { | ||
useShortcut( 'core/edit-post/keyboard-shortcuts', toggleModal, { |
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.
Maybe should be edit-widgets
?
Refactoring into |
4276707
to
c8e3476
Compare
@noisysocks That should all be addressed now. I made #31965 for refactoring to the interface package. |
Thank you! |
Failing tests are also failing in |
Why was this merged with failing tests? It's not because trunk is failing that that's ok? |
@ellatrix I understand that. The changes here are localised to the widget editors which have separate tests. The failing tests in Similarly, it's frustrating to see that |
Looks and works great. Super minor note to say it would be nice to add the "Preferences" subtitle (same style as "View" and "Tools") before the last option. |
Description
Closes #27564
Adds the more menu to the standalone widget editor. Follows the suggestion in #27564 (comment).
The code is a lot of copy and paste, because preferences are implemented in the
edit-post
package and not reusable across editors. There's a lot of scope for refactor of these preferences (either into their own package, or perhapsinterface
?).How has this been tested?
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist:
*.native.js
files for terms that need renaming or removal).