This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
Rebuild widgets screen (and equivalent in Customizer) to use details and summary tags #224
Labels
status: in-progress
When an issue or PR is being worked on now.
type: feature request
New feature or request
Context
For greater accessibility (and significantly less reliance on JavaScript), half of the menu screen has already been rebuilt using
details
andsummary
tags. A PR will also soon be merged that rebuilds the admin dashboard and post screen metaboxes usingdetails
andsummary
tags.The logical next step is to re-build the widgets screen in the same manner. I have begun this task in a branch of my CP v2 fork at https://github.com/KTS915/ClassicPress-v2/tree/widgets
I am creating this issue partly to track progress and partly to invite help.
Implementation So Far
What I have done so far is as follows:
details
andsummary
tags.details
andsummary
tags.Possible Solution
What still needs to be done:
I have started work on the Customizer version of the widgets screen, but this needs more work to get it operating properly. In particular,there is athediv
that needs changing to aul
, but I haven't found where yet, anddetails
tags need to be made to open and close properly. (Seesrc/wp-admin/js/customize-widgets.js
.)I have made the same changes to the core Text widget as I made to the Custom HTML widget, but it still needs more work to operate properly as there is quite a lot more going on here (mainly because it also incorporates a TinyMCE instance). The relevant file issrc/wp-admin/js/widgets/text-widgets.js
.The core Audio, Image, Gallery, and Video widgets also need work. (I believe they all rely on themedia-widgets.js
file (insrc/wp-admin/js/widgets
) and I have already made the same edits to that file that I made to get the Custom HTML widget working, but they also need work on their own JS files (also insrc/wp-admin/js/widgets
).I haven't checked whether the "Orphaned Sidebar" works yet. (This is the sidebar to which widgets are moved when the theme is changed and there is no sidebar for a current widget in the new theme.)Will you be able to help with the implementation?
I have already started working on this at https://github.com/KTS915/ClassicPress-v2/tree/widgets
The text was updated successfully, but these errors were encountered: