Problem/Motivation
From #3618906: [Meta] Forms sidebar accessibility issues
It's hard to get into the sidebar by keyboard.
Try: TAB to the toggle control, press ENTER to expand the sidebar, then TAB to enter the sidebar.
Since it's effectively functioning as a modal with regard to the rest of the form, it should probably have a keyboard trap (shouldn't be able to TAB out of it onto the obscured main form).
Or perhaps it should close when you TAB out of it so that the main form isn't obscured. This probably causes failure of WCAG SC 2.4.11 Focus Not Obscured (Minimum) (Level AA).The tab sequence within the sidebar is messed up. It goes: Revision log message -> close button -> Published.
From #3618906: [Meta] Forms sidebar accessibility issues:
For the close button, I'm fairly confident that we can just remove it, since the toggle button exists.
Comments
Comment #2
mherchelComment #3
mherchelCrediting @kentr in issue credit due do discovery in #3618906: [Meta] Forms sidebar accessibility issues
Comment #4
kentr commentedBy accident I think figured out why the tab sequence inside the sidebar is off.
There's a form container named
default_admin_sidebarthat contains the close button and thePublished(akastatus) field.But the element that contains all of the elements in the sidebar is actually the
advancedcontainer.This
default_admin_sidebarcontainer is inside theadvancedcontainer.So, the
Revision log messagefield precedes the close button in the DOM.In the DOM, the sidebar is
id="edit-advanced"and this inner element with the close button isid="edit-default-admin-sidebar".Comment #5
kentr commentedFrom #3619154: Accessibility fixes for Admin theme's sidebar toggle control:
Comment #6
kentr commentedThough, the open sidebar obscures the toggle button when the Navigation module is disabled.
IMO the presence of the close button is important in that case.
Comment #7
mgiffordCould we hide it if the Navigation module is enabled?
Comment #8
kentr commented@mgifford,
It's doable from a technical perspective. The theme has other code that changes when Navigation is enabled.