-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Regression: the new Block Inserter doesn't constrain tabbing #22858
Comments
I consider this an accessibility regression and I'd like to kindly ask to not release the new block inserter in this state in WordPress 5.5. The constraining behavior should be restored first. |
Noting that this applies to the "Patterns" tabs as well. |
@afercia I'm hoping to understand this one further. In the previous Inserter, it acted like a popover and constraining the tabbing worked well. In the current release, the Inserter is now a panel in which case would operate like other panels in the UI (ie. the Settings sidebar). The Settings Inspector does not constrain tabbing. Do panels require tab constraining to meet accessibility guidelines? |
Related core ticket just reported on the core Trac. Reporting here to highlight the fact if the new behavior can be confusing for mouses users, just imagine how much can be confusing for keyboard users and assistive technology users: Browse All Blocks sidebar missing close feature |
The accessibility team considers this issue a regression in the accessibility level of the block editor compared to WordPress 5.4. The team discussed this issue during last week's accessibility meeting on Slack and, making an effort for a reasonable proposal given where WordPress is in the release cycle, at the very least we recommend to implement a modal behavior. This wouldn't solve all the keyboard accessibility issues but it would be a good start. Then, this new implementation should be iterated later to refine and make it as accessible as possible. |
It is still unclear to me whether a solution for WordPress 5.5 has been identified. In absence of a solution, if WordPress 5.5 is released with the current implementation of the main inserter, I'm afraid the accessibility team won't have other options other than considering this an obvious regression in the accessibility level compared to WordPress 5.4. |
I'm not sure how constrain tabbing is a solution here because if we do that, folks will be able to tab from the outside to inside the panel but once they reach the panel, they'll be trapped there. It seems like it's better for usability to avoid constraining tabbing there to avoid tab traps. |
@youknowriad we (accessibility team) are asking for a modal behavior to be reasonable in our request. Should we ask for a complete revert instead? 🙂 What is the solution proposed by the Editor team? I'm afraid "do nothing" wouldn't be an acceptable answer. |
I think it's more a usability issue instead of an accessibility one. That said, when you design UIs it's always about tradeoffs. Having a modal is good sometimes but you're giving away usability in some cases as well there for instance:
Having a tab, you're adding some extra tab stops when navigating through the UI. So no solution is perfect IMO and it's a tradeoff in all cases. So my question would be, what's the best to design UIs that can be hidden/shown and these UIs are not popovers/modals, they are just part of the UI of the page? We already have this kind of UIs in the editor (the document settings) and we added the inserter now. I don't think these UIs are inaccessible by essence but I'd love to learn to improve their usability as much as we can. |
Nope. The fact that some elements that are in the tab sequence are "skipped" when exiting the inserter is an accessibility Regarding your question, we (accessibility team) objected to the mismatch between the orders since the very first "popover" implementation and always outlined that's an accessibility anti-pattern. For accessibility, any UI that "appears" in the page, whether it's an expandable panel or sidebar, needs to come directly after the control that opened it. Otherwise, it needs to be treated differently, implementing a modal behavior. This has always been oru recommendation. |
Related issues that highlight some confusion from users for this new UI: |
Thanks for #24429 🎉 I'll create a new issue to evaluate other potential accessibility problems of the new inserter implementation. As mentioned above in #22858 (comment) the lack of constrained tabbing was only one of the issues. There seem to be other accessibility concerns that would need to be better evaluated and tested by the team.
|
Describe the bug
The new Block Inserter doesn't constrain tabbing with the Tab key.
In the old one, tabbing was constrained. Although we're not treating the Block Inserter as a modal, I think the previous behavior was beneficial. Not sure about the reasoning behind the removal of the tabbing constraining. I'd appreciate anyone pointing me to the discussion where this behavior removal was considered.
To reproduce
Expected behavior
Tabbing to be constrained.
Editor version (please complete the following information):
The text was updated successfully, but these errors were encountered: