- Notifications
You must be signed in to change notification settings - Fork 17
Incorporate new widget addition panel #58
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
|
| Latest from @shaunandrews:
If anyone wants to patch the branch with these changes, feel free! |
|
Conflicts: widget-customizer.js widget-customizer.php
| @shaunandrews re: keyboard accessibility, see my most recent commit 3345120. You can now focus on the “Add a Widget” button, and then you select a widget by filtering it down and hitting Enter. The first visible widget is then added. If you hit Escape, then the new panel is removed and the focus is brought back to the original Add a Widget button. A first stab. |
| Cool. Good first start. There's a weird bug when tabbing over the add link. Sometimes hitting tab actually triggers the new widgets panel opened/closed. For the next round, it'd be great to be able to use the up/down arrows to navigation between the list of available widgets. Having Return add the top widget is OK, but often times a search pulls up multiple widgets and its possible I may want the second one in the results. Here's a quick sketch: |
Conflicts: widget-customizer.js widget-customizer.php
| @shaunandrews re:
Fixed in 0121381 |
| @shaunandrews re:
I've added lots of accessibility improvements, including up/down arrow to select a widget, but also the ability to tab through the widgets. The available widgets panel is now self-contained within a the I also discovered a problem with the Customizer which prevents keyboard navigation to invoke a Please review the changes! If good, I'll merge and do the v0.11 release. |
| @westonruter I think I uncommented that line to see what would happen :) While I really (really, really, really) hate wide widgets. I'm 90% sure we're going to get pushback from the Core Dev team, as well as lots of plugin/widget developers who rely on the ability to have wide widget panels. #18 is the best place to keep that discussion. |
| The arrow navigation seems to work, but its a little strange. Is it scrolling the div as well? I think the div should remain stationary until you hit the bottom widget in view. Does that make sense? Also, there's no way to tab back into the widget filter input. Is there anyway to tab to the widget-top in the customizer sidebar to expand/contract widget controls? |
It's not scrolling the container intentionally. When you up/down it just focuses on the adjacent widget template. It seems the browser is automatically doing some scrolling to make sure that it remains in the viewport. By adding focus to the widget template, it allows tab to then be used to navigate as well. I guess the scrolling behavior might be deactivated with
There is actually. You have to
Yes, this is what |
| @shaunandrews regarding:
I've implemented that in 727c09c. I'm going to proceed with merging this PR and doing another release of the plugin, and you can open new issues to address any problems you see (if any). |
Incorporate new widget addition panel

/cc @shaunandrews