List View: Ensure consistent focus when closing the list view when no blocks are selected #54165
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).
What problem does this address?
As raised during review of #48708, when no blocks are selected within the list view in the post and site editors, upon closing the list view, focus is not consistently placed anywhere and so it can go nowhere. This is most obvious when using the keyboard shortcut to open and close the list view. The keyboard shortcut for closing the list view is alt+shift+o on Windows, and control+option+o on Mac.
What is your proposed solution?
When closing the list view, if no blocks are selected, try directing focus to the list view toggle button in the top toolbar.
The text was updated successfully, but these errors were encountered: