-
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
Menu remains open after actions which moves focus #15313
Comments
Noting this is also inconsistent depending on the state of the "Top Toolbar" option, not sure what the argumentation behind this different behavior is:
|
The solution suggested in the issue sounds like the right way to proceed.
|
This is technically a duplicate of #14754. That being said, I think the titling and context included in the comments here prove more useful toward a solution. I'll close the other in favor of this. Including some specific comment text from #14754 in the debugging I had performed there: At #14754 (comment) :
At #14754 (comment) :
|
* Close block settings menu after removing block * Undo change to BlockToolbar component * Also close settings menu after other items See #15313 * Do not show BlockSettingsMenu if block is invalid * Use flow() * Block Editor: Select previous / next only when exists * Remove now unneeded isValid check
Menu remains open after actions which moves focus
Issue description
When the Unified Toolbar is being used, the Options menu remains open
after triggering an action that causes the keyboard focus to be moved to
the edit area. This results in a situation where the focus position
might be underneath the menu. The actions of duplicating a block,
inserting new content before or after a block, or removing a block, all
have this behaviour.
Obscuring the focus position is potentially confusing for sighted
keyboard users, since it may appear as though no item has focus, or make
it unclear as to where the focus position is. Additionally it is simply
difficult to view the content and moving keyboard focus to and from the
toolbar is cumbersome.
Remediation Guidance
Whenever an action in the Options menu causes the focus to move, the
menu should close automatically.
Relevant standards
(Level A)
AA)
Note: This issue may be a duplicate with other existing accessibility-related bugs in this project. This issue comes from the Gutenberg accessibility audit, performed by Tenon and funded by WP Campus. This issue is GUT-101 in Tenon's report
The text was updated successfully, but these errors were encountered: