-
Notifications
You must be signed in to change notification settings - Fork 17
Show linkages between widget controls and widgets in preview #5
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
Conversation
|
I'm working on solving this issue. |
Adds effects to editing widgets, border effect on control hover, and scrolls to widget on input click.
Conflicts: widget-customizer.css widget-customizer.js
…omizer Conflicts: widget-customizer-preview.js widget-customizer.js
… control on widget preview click
…omizer into rfvcorreia-master
Add some phpDoc blocks, do some cleanup
Eliminate overloaded and abused wp_localized_script so we can export non-string data (registered sidebar objects)
Use new getControlInstanceForWidget API to find control instance for given widget rendered in sidebar
|
@rfvcorreia added a bunch of commits, worked out an API ( |
Widget flashes a highlight when hovering, clicking, or updating a widget. Move highlight and scrolling into methods. Add helper methods for getting getting elements.
Highlight and scroll widget into view in preview window
|
Note that this issue resolves a major usability problem illustrated by the user test video via @shaunandrews. Clicking a widget in the preview will now will open up the widget form control in the customizer panel. |
When beginning to edit a widget or when hitting Update, the preview window should scroll the widget into view, or make sure it is in view. Likewise, when hovering over a widget control, the widget in the preview window should highlight with a red outline, and likewise when clicking on a widget in the preview, the corresponding widget control should expand in the customizer panel.
This issue resolves a major usability problem illustrated by the user test video via @shaunandrews. Clicking a widget in the preview will now will open up the widget form control in the customizer panel.