Widget Visibility: options not available when using the Accessibility mode
Steps to reproduce:
- Activate Jetpack and the Widget Visibility module
- Go to Appearance > Widgets in your dashboard
- Click on "Screen options"
- Enable the accessibility mode
- Click on "Edit" to edit a widget
- The widget visibility options are nowhere to be found.
Also reported here:
- http://wordpress.org/support/topic/widget-visibility-dont-show-any-button?replies=5
I'd love to get this in, but it won't fit for this release.
I got a chance to look into this issue. and in wp-admin/widgets.php around line 185 - 299 is where the form of the widget is outputted. and there is no hook to add more functions. the only way to add this, is by using javascript, but that accessibility mode is created for non js form.
Any input how to solve this? I can help with code it.
I think @ivankristianto is right in that there needs to be a hook in widgets.php before we can add anything in accessibility mode. Might it be worth opening a ticket on the main WordPress trac?
Adding a ticket in Core makes sense if a hook is needed. Before going too deep down that path, assuming a hook in Core was present, how would we display all of the various options without JS?
I feel like I must be missing something better, but the best option I can see right now would be to make the user select the rule type (category, author etc.) then click add to reload the page with a populated dropdown in place. The add and delete links could both be handled by linking back to admin/widgets.php with a custom query string, and our method could check for this in $_POST, and act accordingly before rendering the form on each reload. This would also mean saving the settings on every click of add or delete.
I ran into this today. Would be great if it could be picked up for v4.1. :) By the way, the JavaScript-based rule editor is perfectly accessible to screen reader software for the visually impaired. (Arguably, so is dragging and dropping, though it's not good UX.) I can't speak for other disabilities, but completely barring JS seems a bit harsh.
This issue has been marked as stale. This happened because:
- It has been inactive in the past 6 months.
- It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.
The issue persists as of Jetpack 7.8
This issue has been marked as stale. This happened because:
- It has been inactive in the past 6 months.
- It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.