Skip to content

List View: Block selection (and focus transfer) works inconsistently based on whether a block is selected #66276

Open
@talldan

Description

Description

List View serves as an important accessibility tool, users can jump into List View using a shortcut, navigate blocks using arrow keys and usually jump back to a block in the canvas by selecting it in List View.

There's one case where this doesn't quite work - if a block is already selected, if you try selecting it again focus doesn't transfer to the canvas.

The semantics in List View don't really tell you this wouldn't work, all the block items are links to the blocks in the canvas.

The best outcome seems to be making sure this works and focus is transferred.

Step-by-step reproduction instructions

  1. Create a new post and add a few paragraph blocks
  2. Press Ctrl+Opt+O (on Mac) or Alt+Shift+O (on Windows/Linux) to open List View and note that the select block is focused in List View
  3. Navigate to another block and select it using Enter or Space, note that it moves focus back to the canvas
  4. Open List View again (Ctrl+Opt+O or Alt+Shift+O)
  5. Try selecting the already selected block using Enter or Space
  6. Observe that focus isn't moved.

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

Metadata

Assignees

No one assigned

    Labels

    [Feature] List ViewMenu 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] BugAn existing feature does not function as intended

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions