'Always open list view' preference sets initial focus and starts tab sequence from the List View #57013
Labels
[Feature] List View
Menu item in the top toolbar to select blocks from a list of links.
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
Description
When the 'Always open list view' preference is enabled, initial keyboard focus in both the Post Editor and in the Site Editor is set to the first item within the List view.
This is clrearly unexpected and makes the tab sequence start from the wrong place, as a relevant part of the UI is just 'skipped',
Expected:
I do realize initial focus is a behaevior that is built-in in the List view component. With the default preferences, it is good that when the List view opens, fofucs is set to the List view. I'd argue that focus shold be set to the List view
role="region"
instead of to the first item but that's a separate issue. However, the List view should not get focus on editor load when 'Always open list view' is enabled.Screenshot of initial focus in the Post editor (same happens in the SIte editor):
Step-by-step reproduction instructions
Note: initial focus in the Site editor > edit mode is set to the editor canvas. That's wrong, see #51570
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: